Skip to content

Commit 0ed639f

Browse files
committed
merge error codes
1 parent 4596ce6 commit 0ed639f

File tree

5 files changed

+10
-25
lines changed

5 files changed

+10
-25
lines changed

compiler/rustc_builtin_macros/src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)]
918918
pub struct NakedFunctionTestingAttribute {
919919
#[primary_span]
920920
#[label(builtin_macros_naked_attribute)]

compiler/rustc_error_codes/src/error_codes/E0798.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

compiler/rustc_error_codes/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,6 @@ E0794: 0794,
536536
E0795: 0795,
537537
E0796: 0796,
538538
E0797: 0797,
539-
E0798: 0798,
540539
);
541540
)
542541
}

tests/ui/asm/naked-functions-testattrs.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,30 @@ use std::arch::asm;
1010

1111
#[test]
1212
#[naked]
13-
//~^ ERROR [E0798]
13+
//~^ ERROR [E0736]
1414
fn test_naked() {
1515
unsafe { asm!("", options(noreturn)) };
1616
}
1717

1818
#[should_panic]
1919
#[test]
2020
#[naked]
21-
//~^ ERROR [E0798]
21+
//~^ ERROR [E0736]
2222
fn test_naked_should_panic() {
2323
unsafe { asm!("", options(noreturn)) };
2424
}
2525

2626
#[ignore]
2727
#[test]
2828
#[naked]
29-
//~^ ERROR [E0798]
29+
//~^ ERROR [E0736]
3030
fn test_naked_ignore() {
3131
unsafe { asm!("", options(noreturn)) };
3232
}
3333

3434
#[bench]
3535
#[naked]
36-
//~^ ERROR [E0798]
36+
//~^ ERROR [E0736]
3737
fn bench_naked() {
3838
unsafe { asm!("", options(noreturn)) };
3939
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
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
|
44
LL | #[test]
55
| ------- function marked with testing attribute here
66
LL | #[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
|
1212
LL | #[test]
1313
| ------- function marked with testing attribute here
1414
LL | #[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
|
2020
LL | #[test]
2121
| ------- function marked with testing attribute here
2222
LL | #[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
|
2828
LL | #[bench]
@@ -32,4 +32,4 @@ LL | #[naked]
3232

3333
error: 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`.

0 commit comments

Comments
 (0)