This repository was archived by the owner on May 28, 2025. It is now read-only.
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> {
914914}
915915
916916#[ derive( Diagnostic ) ]
917- #[ diag( builtin_macros_naked_functions_testing_attribute, code = E0798 ) ]
917+ #[ diag( builtin_macros_naked_functions_testing_attribute, code = E0736 ) ]
918918pub struct NakedFunctionTestingAttribute {
919919 #[ primary_span]
920920 #[ 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,
536536E0795 : 0795 ,
537537E0796 : 0796 ,
538538E0797 : 0797 ,
539- E0798 : 0798 ,
540539 ) ;
541540 )
542541}
Original file line number Diff line number Diff line change @@ -10,30 +10,30 @@ use std::arch::asm;
1010
1111#[ test]
1212#[ naked]
13- //~^ ERROR [E0798 ]
13+ //~^ ERROR [E0736 ]
1414fn test_naked ( ) {
1515 unsafe { asm ! ( "" , options( noreturn) ) } ;
1616}
1717
1818#[ should_panic]
1919#[ test]
2020#[ naked]
21- //~^ ERROR [E0798 ]
21+ //~^ ERROR [E0736 ]
2222fn test_naked_should_panic ( ) {
2323 unsafe { asm ! ( "" , options( noreturn) ) } ;
2424}
2525
2626#[ ignore]
2727#[ test]
2828#[ naked]
29- //~^ ERROR [E0798 ]
29+ //~^ ERROR [E0736 ]
3030fn test_naked_ignore ( ) {
3131 unsafe { asm ! ( "" , options( noreturn) ) } ;
3232}
3333
3434#[ bench]
3535#[ naked]
36- //~^ ERROR [E0798 ]
36+ //~^ ERROR [E0736 ]
3737fn bench_naked ( ) {
3838 unsafe { asm ! ( "" , options( noreturn) ) } ;
3939}
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
22 --> $DIR/naked-functions-testattrs.rs:12:1
33 |
44LL | #[test]
55 | ------- function marked with testing attribute here
66LL | #[naked]
77 | ^^^^^^^^ `#[naked]` is incompatible with testing attributes
88
9- error[E0798 ]: cannot use `#[naked]` with testing attributes
9+ error[E0736 ]: cannot use `#[naked]` with testing attributes
1010 --> $DIR/naked-functions-testattrs.rs:20:1
1111 |
1212LL | #[test]
1313 | ------- function marked with testing attribute here
1414LL | #[naked]
1515 | ^^^^^^^^ `#[naked]` is incompatible with testing attributes
1616
17- error[E0798 ]: cannot use `#[naked]` with testing attributes
17+ error[E0736 ]: cannot use `#[naked]` with testing attributes
1818 --> $DIR/naked-functions-testattrs.rs:28:1
1919 |
2020LL | #[test]
2121 | ------- function marked with testing attribute here
2222LL | #[naked]
2323 | ^^^^^^^^ `#[naked]` is incompatible with testing attributes
2424
25- error[E0798 ]: cannot use `#[naked]` with testing attributes
25+ error[E0736 ]: cannot use `#[naked]` with testing attributes
2626 --> $DIR/naked-functions-testattrs.rs:35:1
2727 |
2828LL | #[bench]
@@ -32,4 +32,4 @@ LL | #[naked]
3232
3333error: aborting due to 4 previous errors
3434
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