You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0658]: use of unstable library feature 'naked_functions'
2
+
--> $DIR/feature-gate-naked_functions.rs:9:5
3
+
|
4
+
LL | naked_asm!("", options(noreturn))
5
+
| ^^^^^^^^^
6
+
|
7
+
= note: see issue #90957 <https://github.com/rust-lang/rust/issues/90957> for more information
8
+
= help: add `#![feature(naked_functions)]` to the crate attributes to enable
9
+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
10
+
11
+
error[E0658]: use of unstable library feature 'naked_functions'
12
+
--> $DIR/feature-gate-naked_functions.rs:17:5
13
+
|
14
+
LL | naked_asm!("", options(noreturn))
15
+
| ^^^^^^^^^
16
+
|
17
+
= note: see issue #90957 <https://github.com/rust-lang/rust/issues/90957> for more information
18
+
= help: add `#![feature(naked_functions)]` to the crate attributes to enable
19
+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
20
+
1
21
error[E0658]: the `#[naked]` attribute is an experimental feature
2
-
--> $DIR/feature-gate-naked_functions.rs:5:1
22
+
--> $DIR/feature-gate-naked_functions.rs:6:1
3
23
|
4
24
LL | #[naked]
5
25
| ^^^^^^^^
@@ -9,7 +29,7 @@ LL | #[naked]
9
29
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
10
30
11
31
error[E0658]: the `#[naked]` attribute is an experimental feature
12
-
--> $DIR/feature-gate-naked_functions.rs:12:1
32
+
--> $DIR/feature-gate-naked_functions.rs:14:1
13
33
|
14
34
LL | #[naked]
15
35
| ^^^^^^^^
@@ -18,23 +38,33 @@ LL | #[naked]
18
38
= help: add `#![feature(naked_functions)]` to the crate attributes to enable
19
39
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
20
40
41
+
error[E0658]: use of unstable library feature 'naked_functions'
42
+
--> $DIR/feature-gate-naked_functions.rs:3:5
43
+
|
44
+
LL | use std::arch::naked_asm;
45
+
| ^^^^^^^^^^^^^^^^^^^^
46
+
|
47
+
= note: see issue #90957 <https://github.com/rust-lang/rust/issues/90957> for more information
48
+
= help: add `#![feature(naked_functions)]` to the crate attributes to enable
49
+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
50
+
21
51
error[E0133]: use of inline assembly is unsafe and requires unsafe function or block
22
-
--> $DIR/feature-gate-naked_functions.rs:8:5
52
+
--> $DIR/feature-gate-naked_functions.rs:9:5
23
53
|
24
-
LL | asm!("", options(noreturn))
25
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of inline assembly
54
+
LL | naked_asm!("", options(noreturn))
55
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of inline assembly
26
56
|
27
57
= note: inline assembly is entirely unchecked and can cause undefined behavior
28
58
29
59
error[E0133]: use of inline assembly is unsafe and requires unsafe function or block
30
-
--> $DIR/feature-gate-naked_functions.rs:15:5
60
+
--> $DIR/feature-gate-naked_functions.rs:17:5
31
61
|
32
-
LL | asm!("", options(noreturn))
33
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of inline assembly
62
+
LL | naked_asm!("", options(noreturn))
63
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of inline assembly
34
64
|
35
65
= note: inline assembly is entirely unchecked and can cause undefined behavior
36
66
37
-
error: aborting due to 4 previous errors
67
+
error: aborting due to 7 previous errors
38
68
39
69
Some errors have detailed explanations: E0133, E0658.
40
70
For more information about an error, try `rustc --explain E0133`.
0 commit comments