1 error: call to unsafe function `unsf` is unsafe and requires unsafe block (error E0133)
2 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:12:5
5 | ^^^^^^ call to unsafe function
7 = note: consult the function's documentation for information on how to avoid undefined behavior
8 note: the lint level is defined here
9 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:4:9
11 LL | #![deny(unsafe_op_in_unsafe_fn)]
12 | ^^^^^^^^^^^^^^^^^^^^^^
14 error: dereference of raw pointer is unsafe and requires unsafe block (error E0133)
15 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:15:5
18 | ^^^^ dereference of raw pointer
20 = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
22 error: use of mutable static is unsafe and requires unsafe block (error E0133)
23 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:17:5
26 | ^^^^ use of mutable static
28 = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
30 error: unnecessary `unsafe` block
31 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:20:5
34 | ^^^^^^ unnecessary `unsafe` block
36 note: the lint level is defined here
37 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:5:9
39 LL | #![deny(unused_unsafe)]
42 error: call to unsafe function `unsf` is unsafe and requires unsafe block (error E0133)
43 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:28:5
46 | ^^^^^^ call to unsafe function
48 = note: consult the function's documentation for information on how to avoid undefined behavior
49 note: the lint level is defined here
50 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:26:8
52 LL | #[deny(warnings)]
54 = note: `#[deny(unsafe_op_in_unsafe_fn)]` implied by `#[deny(warnings)]`
56 error: dereference of raw pointer is unsafe and requires unsafe block (error E0133)
57 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:31:5
60 | ^^^^ dereference of raw pointer
62 = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
64 error: use of mutable static is unsafe and requires unsafe block (error E0133)
65 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:33:5
68 | ^^^^ use of mutable static
70 = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
72 error: unnecessary `unsafe` block
73 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:35:5
76 | ^^^^^^ unnecessary `unsafe` block
78 error: unnecessary `unsafe` block
79 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:49:14
81 LL | unsafe { unsafe { unsf() } }
82 | ------ ^^^^^^ unnecessary `unsafe` block
84 | because it's nested under this `unsafe` block
86 error[E0133]: call to unsafe function `unsf` is unsafe and requires unsafe block
87 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:76:5
90 | ^^^^^^ call to unsafe function
92 = note: consult the function's documentation for information on how to avoid undefined behavior
94 error[E0133]: call to unsafe function `unsf` is unsafe and requires unsafe function or block
95 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:81:9
98 | ^^^^^^ call to unsafe function
100 = note: consult the function's documentation for information on how to avoid undefined behavior
102 error: aborting due to 11 previous errors
104 For more information about this error, try `rustc --explain E0133`.