Skip to content

Commit 12b6d32

Browse files
Remove unused error codes from error_codes.rs and from EXEMPTED_FROM_TEST constant
1 parent 22a702d commit 12b6d32

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

compiler/rustc_error_codes/src/error_codes.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ E0783: include_str!("./error_codes/E0783.md"),
609609
// E0540, // multiple rustc_deprecated attributes
610610
E0544, // multiple stability levels
611611
// E0548, // replaced with a generic attribute input check
612-
E0553, // multiple rustc_const_unstable attributes
612+
// E0553, // multiple rustc_const_unstable attributes
613613
// E0555, // replaced with a generic attribute input check
614614
// E0558, // replaced with a generic attribute input check
615615
// E0563, // cannot determine a type for this `impl Trait` removed in 6383de15
@@ -620,10 +620,9 @@ E0783: include_str!("./error_codes/E0783.md"),
620620
// E0612, // merged into E0609
621621
// E0613, // Removed (merged with E0609)
622622
E0625, // thread-local statics cannot be accessed at compile-time
623-
E0629, // missing 'feature' (rustc_const_unstable)
624-
// rustc_const_unstable attribute must be paired with stable/unstable
625-
// attribute
626-
E0630,
623+
// E0629, // missing 'feature' (rustc_const_unstable)
624+
// E0630, // rustc_const_unstable attribute must be paired with stable/unstable
625+
// attribute
627626
E0632, // cannot provide explicit generic arguments when `impl Trait` is
628627
// used in argument position
629628
E0640, // infer outlives requirements

src/tools/tidy/src/error_codes_check.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ use regex::Regex;
1111

1212
// A few of those error codes can't be tested but all the others can and *should* be tested!
1313
const EXEMPTED_FROM_TEST: &[&str] = &[
14-
"E0227", "E0279", "E0280", "E0313", "E0315", "E0377", "E0461", "E0462", "E0464", "E0465",
15-
"E0473", "E0474", "E0475", "E0476", "E0479", "E0480", "E0481", "E0482", "E0483", "E0484",
16-
"E0485", "E0486", "E0487", "E0488", "E0489", "E0514", "E0519", "E0523", "E0554", "E0570",
17-
"E0640", "E0717", "E0729",
14+
"E0227", "E0279", "E0280", "E0313", "E0377", "E0461", "E0462", "E0464", "E0465", "E0476",
15+
"E0482", "E0514", "E0519", "E0523", "E0554", "E0570", "E0640", "E0717", "E0729",
1816
];
1917

2018
// Some error codes don't have any tests apparently...

0 commit comments

Comments
 (0)