11error: call to unsafe function is unsafe and requires unsafe block (error E0133)
2-   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:9 :5
2+   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:12 :5
33   |
44LL |     unsf();
55   |     ^^^^^^ call to unsafe function
66   |
77note: the lint level is defined here
8-   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:1 :9
8+   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:4 :9
99   |
1010LL | #![deny(unsafe_op_in_unsafe_fn)]
1111   |         ^^^^^^^^^^^^^^^^^^^^^^
1212   = note: consult the function's documentation for information on how to avoid undefined behavior
1313
1414error: dereference of raw pointer is unsafe and requires unsafe block (error E0133)
15-   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:11 :5
15+   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:14 :5
1616   |
1717LL |     *PTR;
1818   |     ^^^^ dereference of raw pointer
1919   |
2020   = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
2121
2222error: use of mutable static is unsafe and requires unsafe block (error E0133)
23-   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:13 :5
23+   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:16 :5
2424   |
2525LL |     VOID = ();
2626   |     ^^^^^^^^^ use of mutable static
2727   |
2828   = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
2929
3030error: unnecessary `unsafe` block
31-   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:16 :5
31+   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:19 :5
3232   |
3333LL |     unsafe {}
3434   |     ^^^^^^ unnecessary `unsafe` block
3535   |
3636note: the lint level is defined here
37-   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:2 :9
37+   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:5 :9
3838   |
3939LL | #![deny(unused_unsafe)]
4040   |         ^^^^^^^^^^^^^
4141
4242error: call to unsafe function is unsafe and requires unsafe block (error E0133)
43-   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:24 :5
43+   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:27 :5
4444   |
4545LL |     unsf();
4646   |     ^^^^^^ call to unsafe function
4747   |
4848note: the lint level is defined here
49-   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:22 :8
49+   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:25 :8
5050   |
5151LL | #[deny(warnings)]
5252   |        ^^^^^^^^
5353   = note: `#[deny(unsafe_op_in_unsafe_fn)]` implied by `#[deny(warnings)]`
5454   = note: consult the function's documentation for information on how to avoid undefined behavior
5555
5656error: dereference of raw pointer is unsafe and requires unsafe block (error E0133)
57-   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:26 :5
57+   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:29 :5
5858   |
5959LL |     *PTR;
6060   |     ^^^^ dereference of raw pointer
6161   |
6262   = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
6363
6464error: use of mutable static is unsafe and requires unsafe block (error E0133)
65-   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:28 :5
65+   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:31 :5
6666   |
6767LL |     VOID = ();
6868   |     ^^^^^^^^^ use of mutable static
6969   |
7070   = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
7171
7272error: unnecessary `unsafe` block
73-   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:30 :5
73+   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:33 :5
7474   |
7575LL |     unsafe {}
7676   |     ^^^^^^ unnecessary `unsafe` block
7777
7878error: unnecessary `unsafe` block
79-   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:44 :14
79+   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:47 :14
8080   |
8181LL |     unsafe { unsafe { unsf() } }
8282   |     ------   ^^^^^^ unnecessary `unsafe` block
8383   |     |
8484   |     because it's nested under this `unsafe` block
8585
8686error: unnecessary `unsafe` block
87-   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:55 :5
87+   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:58 :5
8888   |
8989LL | unsafe fn allow_level() {
9090   | ----------------------- because it's nested under this `unsafe` fn
@@ -93,7 +93,7 @@ LL |     unsafe { unsf() }
9393   |     ^^^^^^ unnecessary `unsafe` block
9494
9595error: unnecessary `unsafe` block
96-   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:67 :9
96+   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:70 :9
9797   |
9898LL | unsafe fn nested_allow_level() {
9999   | ------------------------------ because it's nested under this `unsafe` fn
@@ -102,15 +102,15 @@ LL |         unsafe { unsf() }
102102   |         ^^^^^^ unnecessary `unsafe` block
103103
104104error[E0133]: call to unsafe function is unsafe and requires unsafe block
105-   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:73 :5
105+   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:76 :5
106106   |
107107LL |     unsf();
108108   |     ^^^^^^ call to unsafe function
109109   |
110110   = note: consult the function's documentation for information on how to avoid undefined behavior
111111
112112error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
113-   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:77 :9
113+   --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:80 :9
114114   |
115115LL |         unsf();
116116   |         ^^^^^^ call to unsafe function
0 commit comments