fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
845 B31 linesraw
1error[E0453]: allow(unsafe_code) incompatible with previous forbid
2  --> $DIR/reasons-forbidden.rs:25:13
3   |
4LL |     unsafe_code,
5   |     ----------- `forbid` level set here
6...
7LL |     #[allow(unsafe_code)]
8   |             ^^^^^^^^^^^ overruled by previous forbid
9   |
10   = note: our errors & omissions insurance policy doesn't cover unsafe Rust
11
12error: usage of an `unsafe` block
13  --> $DIR/reasons-forbidden.rs:29:5
14   |
15LL | /     unsafe {
16LL | |
17LL | |
18LL | |         *a_billion_dollar_mistake
19LL | |     }
20   | |_____^
21   |
22   = note: our errors & omissions insurance policy doesn't cover unsafe Rust
23note: the lint level is defined here
24  --> $DIR/reasons-forbidden.rs:14:5
25   |
26LL |     unsafe_code,
27   |     ^^^^^^^^^^^
28
29error: aborting due to 2 previous errors
30
31For more information about this error, try `rustc --explain E0453`.