File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
rustc_error_messages/locales/en-US Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -371,3 +371,5 @@ lint-builtin-trivial-bounds = {$predicate_kind_name} bound {$predicate} does not
371
371
372
372
lint-builtin-ellipsis-inclusive-range-patterns = `...` range patterns are deprecated
373
373
.suggestion = use `..=` for an inclusive range
374
+
375
+ lint-builtin-unnameable-test-items = cannot test inner items
Original file line number Diff line number Diff line change @@ -1915,7 +1915,7 @@ impl<'tcx> LateLintPass<'tcx> for UnnameableTestItems {
1915
1915
let attrs = cx. tcx . hir ( ) . attrs ( it. hir_id ( ) ) ;
1916
1916
if let Some ( attr) = cx. sess ( ) . find_by_name ( attrs, sym:: rustc_test_marker) {
1917
1917
cx. struct_span_lint ( UNNAMEABLE_TEST_ITEMS , attr. span , |lint| {
1918
- lint. build ( "cannot test inner items" ) . emit ( ) ;
1918
+ lint. build ( fluent :: lint :: builtin_unnameable_test_items ) . emit ( ) ;
1919
1919
} ) ;
1920
1920
}
1921
1921
}
You can’t perform that action at this time.
0 commit comments