fork/rust

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

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

master
635 B20 linesraw
1error[E0658]: the `#[rustc_safe_intrinsic]` attribute is used internally to mark intrinsics as safe
2  --> $DIR/feature-gate-safe-intrinsic.rs:1:1
3   |
4LL | #[rustc_safe_intrinsic]
5   | ^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = help: add `#![feature(rustc_attrs)]` to the crate attributes to enable
8
9error: attribute should be applied to intrinsic functions
10  --> $DIR/feature-gate-safe-intrinsic.rs:1:1
11   |
12LL | #[rustc_safe_intrinsic]
13   | ^^^^^^^^^^^^^^^^^^^^^^^
14...
15LL | fn safe() {}
16   | ------------ not an intrinsic function
17
18error: aborting due to 2 previous errors
19
20For more information about this error, try `rustc --explain E0658`.