Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 02cff1f

Browse files
committedMar 21, 2025
stabilize naked_functions
1 parent be73c1f commit 02cff1f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+149
-273
lines changed
 

‎tests/ui/asm/naked-functions-testattrs.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
error[E0736]: cannot use `#[naked]` with testing attributes
2-
--> $DIR/naked-functions-testattrs.rs:12:1
2+
--> $DIR/naked-functions-testattrs.rs:11:1
33
|
44
LL | #[test]
55
| ------- function marked with testing attribute here
66
LL | #[naked]
77
| ^^^^^^^^ `#[naked]` is incompatible with testing attributes
88

99
error[E0736]: cannot use `#[naked]` with testing attributes
10-
--> $DIR/naked-functions-testattrs.rs:20:1
10+
--> $DIR/naked-functions-testattrs.rs:19:1
1111
|
1212
LL | #[test]
1313
| ------- function marked with testing attribute here
1414
LL | #[naked]
1515
| ^^^^^^^^ `#[naked]` is incompatible with testing attributes
1616

1717
error[E0736]: cannot use `#[naked]` with testing attributes
18-
--> $DIR/naked-functions-testattrs.rs:28:1
18+
--> $DIR/naked-functions-testattrs.rs:27:1
1919
|
2020
LL | #[test]
2121
| ------- function marked with testing attribute here
2222
LL | #[naked]
2323
| ^^^^^^^^ `#[naked]` is incompatible with testing attributes
2424

2525
error[E0736]: cannot use `#[naked]` with testing attributes
26-
--> $DIR/naked-functions-testattrs.rs:35:1
26+
--> $DIR/naked-functions-testattrs.rs:34:1
2727
|
2828
LL | #[bench]
2929
| -------- function marked with testing attribute here

‎tests/ui/asm/naked-functions-unused.aarch64.stderr

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: unused variable: `a`
2-
--> $DIR/naked-functions-unused.rs:17:32
2+
--> $DIR/naked-functions-unused.rs:16:32
33
|
44
LL | pub extern "C" fn function(a: usize, b: usize) -> usize {
55
| ^ help: if this is intentional, prefix it with an underscore: `_a`
@@ -12,55 +12,55 @@ LL | #![deny(unused)]
1212
= note: `#[deny(unused_variables)]` implied by `#[deny(unused)]`
1313

1414
error: unused variable: `b`
15-
--> $DIR/naked-functions-unused.rs:17:42
15+
--> $DIR/naked-functions-unused.rs:16:42
1616
|
1717
LL | pub extern "C" fn function(a: usize, b: usize) -> usize {
1818
| ^ help: if this is intentional, prefix it with an underscore: `_b`
1919

2020
error: unused variable: `a`
21-
--> $DIR/naked-functions-unused.rs:28:38
21+
--> $DIR/naked-functions-unused.rs:27:38
2222
|
2323
LL | pub extern "C" fn associated(a: usize, b: usize) -> usize {
2424
| ^ help: if this is intentional, prefix it with an underscore: `_a`
2525

2626
error: unused variable: `b`
27-
--> $DIR/naked-functions-unused.rs:28:48
27+
--> $DIR/naked-functions-unused.rs:27:48
2828
|
2929
LL | pub extern "C" fn associated(a: usize, b: usize) -> usize {
3030
| ^ help: if this is intentional, prefix it with an underscore: `_b`
3131

3232
error: unused variable: `a`
33-
--> $DIR/naked-functions-unused.rs:36:41
33+
--> $DIR/naked-functions-unused.rs:35:41
3434
|
3535
LL | pub extern "C" fn method(&self, a: usize, b: usize) -> usize {
3636
| ^ help: if this is intentional, prefix it with an underscore: `_a`
3737

3838
error: unused variable: `b`
39-
--> $DIR/naked-functions-unused.rs:36:51
39+
--> $DIR/naked-functions-unused.rs:35:51
4040
|
4141
LL | pub extern "C" fn method(&self, a: usize, b: usize) -> usize {
4242
| ^ help: if this is intentional, prefix it with an underscore: `_b`
4343

4444
error: unused variable: `a`
45-
--> $DIR/naked-functions-unused.rs:46:40
45+
--> $DIR/naked-functions-unused.rs:45:40
4646
|
4747
LL | extern "C" fn trait_associated(a: usize, b: usize) -> usize {
4848
| ^ help: if this is intentional, prefix it with an underscore: `_a`
4949

5050
error: unused variable: `b`
51-
--> $DIR/naked-functions-unused.rs:46:50
51+
--> $DIR/naked-functions-unused.rs:45:50
5252
|
5353
LL | extern "C" fn trait_associated(a: usize, b: usize) -> usize {
5454
| ^ help: if this is intentional, prefix it with an underscore: `_b`
5555

5656
error: unused variable: `a`
57-
--> $DIR/naked-functions-unused.rs:54:43
57+
--> $DIR/naked-functions-unused.rs:53:43
5858
|
5959
LL | extern "C" fn trait_method(&self, a: usize, b: usize) -> usize {
6060
| ^ help: if this is intentional, prefix it with an underscore: `_a`
6161

6262
error: unused variable: `b`
63-
--> $DIR/naked-functions-unused.rs:54:53
63+
--> $DIR/naked-functions-unused.rs:53:53
6464
|
6565
LL | extern "C" fn trait_method(&self, a: usize, b: usize) -> usize {
6666
| ^ help: if this is intentional, prefix it with an underscore: `_b`

‎tests/ui/asm/naked-functions-unused.rs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
//@[x86_64] only-x86_64
44
//@[aarch64] only-aarch64
55
#![deny(unused)]
6-
#![feature(naked_functions)]
76
#![crate_type = "lib"]
87

98
pub trait Trait {
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.