fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: 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 3 | 4LL | unsf(); 5 | ^^^^^^ call to unsafe function 6 | 7 = note: consult the function's documentation for information on how to avoid undefined behavior 8note: the lint level is defined here 9 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:4:9 10 | 11LL | #![deny(unsafe_op_in_unsafe_fn)] 12 | ^^^^^^^^^^^^^^^^^^^^^^ 13 14error: dereference of raw pointer is unsafe and requires unsafe block (error E0133) 15 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:15:5 16 | 17LL | *PTR; 18 | ^^^^ dereference of raw pointer 19 | 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 21 22error: use of mutable static is unsafe and requires unsafe block (error E0133) 23 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:17:5 24 | 25LL | VOID = (); 26 | ^^^^ use of mutable static 27 | 28 = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior 29 30error: unnecessary `unsafe` block 31 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:20:5 32 | 33LL | unsafe {} 34 | ^^^^^^ unnecessary `unsafe` block 35 | 36note: the lint level is defined here 37 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:5:9 38 | 39LL | #![deny(unused_unsafe)] 40 | ^^^^^^^^^^^^^ 41 42error: 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 44 | 45LL | unsf(); 46 | ^^^^^^ call to unsafe function 47 | 48 = note: consult the function's documentation for information on how to avoid undefined behavior 49note: the lint level is defined here 50 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:26:8 51 | 52LL | #[deny(warnings)] 53 | ^^^^^^^^ 54 = note: `#[deny(unsafe_op_in_unsafe_fn)]` implied by `#[deny(warnings)]` 55 56error: dereference of raw pointer is unsafe and requires unsafe block (error E0133) 57 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:31:5 58 | 59LL | *PTR; 60 | ^^^^ dereference of raw pointer 61 | 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 63 64error: use of mutable static is unsafe and requires unsafe block (error E0133) 65 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:33:5 66 | 67LL | VOID = (); 68 | ^^^^ use of mutable static 69 | 70 = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior 71 72error: unnecessary `unsafe` block 73 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:35:5 74 | 75LL | unsafe {} 76 | ^^^^^^ unnecessary `unsafe` block 77 78error: unnecessary `unsafe` block 79 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:49:14 80 | 81LL | unsafe { unsafe { unsf() } } 82 | ------ ^^^^^^ unnecessary `unsafe` block 83 | | 84 | because it's nested under this `unsafe` block 85 86error[E0133]: call to unsafe function `unsf` is unsafe and requires unsafe block 87 --> $DIR/rfc-2585-unsafe_op_in_unsafe_fn.rs:76:5 88 | 89LL | unsf(); 90 | ^^^^^^ call to unsafe function 91 | 92 = note: consult the function's documentation for information on how to avoid undefined behavior 93 94error[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 96 | 97LL | unsf(); 98 | ^^^^^^ call to unsafe function 99 | 100 = note: consult the function's documentation for information on how to avoid undefined behavior 101 102error: aborting due to 11 previous errors 103 104For more information about this error, try `rustc --explain E0133`.