File tree Expand file tree Collapse file tree 5 files changed +10
-25
lines changed Expand file tree Collapse file tree 5 files changed +10
-25
lines changed Original file line number Diff line number Diff line change @@ -914,7 +914,7 @@ pub(crate) struct ExpectedItem<'a> {
914
914
}
915
915
916
916
#[ derive( Diagnostic ) ]
917
- #[ diag( builtin_macros_naked_functions_testing_attribute, code = E0798 ) ]
917
+ #[ diag( builtin_macros_naked_functions_testing_attribute, code = E0736 ) ]
918
918
pub struct NakedFunctionTestingAttribute {
919
919
#[ primary_span]
920
920
#[ label( builtin_macros_naked_attribute) ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -536,7 +536,6 @@ E0794: 0794,
536
536
E0795 : 0795 ,
537
537
E0796 : 0796 ,
538
538
E0797 : 0797 ,
539
- E0798 : 0798 ,
540
539
) ;
541
540
)
542
541
}
Original file line number Diff line number Diff line change @@ -10,30 +10,30 @@ use std::arch::asm;
10
10
11
11
#[ test]
12
12
#[ naked]
13
- //~^ ERROR [E0798 ]
13
+ //~^ ERROR [E0736 ]
14
14
fn test_naked ( ) {
15
15
unsafe { asm ! ( "" , options( noreturn) ) } ;
16
16
}
17
17
18
18
#[ should_panic]
19
19
#[ test]
20
20
#[ naked]
21
- //~^ ERROR [E0798 ]
21
+ //~^ ERROR [E0736 ]
22
22
fn test_naked_should_panic ( ) {
23
23
unsafe { asm ! ( "" , options( noreturn) ) } ;
24
24
}
25
25
26
26
#[ ignore]
27
27
#[ test]
28
28
#[ naked]
29
- //~^ ERROR [E0798 ]
29
+ //~^ ERROR [E0736 ]
30
30
fn test_naked_ignore ( ) {
31
31
unsafe { asm ! ( "" , options( noreturn) ) } ;
32
32
}
33
33
34
34
#[ bench]
35
35
#[ naked]
36
- //~^ ERROR [E0798 ]
36
+ //~^ ERROR [E0736 ]
37
37
fn bench_naked ( ) {
38
38
unsafe { asm ! ( "" , options( noreturn) ) } ;
39
39
}
Original file line number Diff line number Diff line change 1
- error[E0798 ]: cannot use `#[naked]` with testing attributes
1
+ error[E0736 ]: cannot use `#[naked]` with testing attributes
2
2
--> $DIR/naked-functions-testattrs.rs:12:1
3
3
|
4
4
LL | #[test]
5
5
| ------- function marked with testing attribute here
6
6
LL | #[naked]
7
7
| ^^^^^^^^ `#[naked]` is incompatible with testing attributes
8
8
9
- error[E0798 ]: cannot use `#[naked]` with testing attributes
9
+ error[E0736 ]: cannot use `#[naked]` with testing attributes
10
10
--> $DIR/naked-functions-testattrs.rs:20:1
11
11
|
12
12
LL | #[test]
13
13
| ------- function marked with testing attribute here
14
14
LL | #[naked]
15
15
| ^^^^^^^^ `#[naked]` is incompatible with testing attributes
16
16
17
- error[E0798 ]: cannot use `#[naked]` with testing attributes
17
+ error[E0736 ]: cannot use `#[naked]` with testing attributes
18
18
--> $DIR/naked-functions-testattrs.rs:28:1
19
19
|
20
20
LL | #[test]
21
21
| ------- function marked with testing attribute here
22
22
LL | #[naked]
23
23
| ^^^^^^^^ `#[naked]` is incompatible with testing attributes
24
24
25
- error[E0798 ]: cannot use `#[naked]` with testing attributes
25
+ error[E0736 ]: cannot use `#[naked]` with testing attributes
26
26
--> $DIR/naked-functions-testattrs.rs:35:1
27
27
|
28
28
LL | #[bench]
@@ -32,4 +32,4 @@ LL | #[naked]
32
32
33
33
error: aborting due to 4 previous errors
34
34
35
- For more information about this error, try `rustc --explain E0798 `.
35
+ For more information about this error, try `rustc --explain E0736 `.
You can’t perform that action at this time.
0 commit comments