Files
rust/compiler
Matthias Krüger 347c478d88 Rollup merge of #103964 - clubby789:lint-enclosing-unsafe, r=compiler-errors
Give a specific lint for unsafety not being inherited

In cases like
```rs
static mut FOO: u64 = 0;
fn main() {
    unsafe {static BAR: u64 = FOO;}
}
```
and
```rs
fn foo() {
  unsafe {
    fn bar() {
      unsafe_call();
    }
  }
}
```
Specifically inform the user that the unsafety is not inherited for the seperate enclosing items
Fixes #94077
r? compiler-errors
`@rustbot` label +A-diagnostics
2022-11-04 18:52:29 +01:00
..
2022-10-23 10:09:44 +02:00
2022-10-31 00:41:12 -04:00
2022-09-29 16:49:04 +09:00
2022-10-23 10:09:44 +02:00
2022-10-29 20:28:38 +11:00
2022-11-03 18:52:16 +00:00