File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,9 @@ passes_doc_masked_only_extern_crate =
223
223
.not_an_extern_crate_label = not an `extern crate` item
224
224
.note = read <https://doc.rust-lang.org/unstable-book/language-features/doc-masked.html> for more information
225
225
226
+ passes_doc_rust_logo =
227
+ the `#[doc(rust_logo)]` attribute is used for Rust branding
228
+
226
229
passes_doc_test_literal = `#![doc(test(...)]` does not take a literal
227
230
228
231
passes_doc_test_takes_list =
@@ -595,6 +598,9 @@ passes_remove_fields =
595
598
*[ other ] fields
596
599
}
597
600
601
+ passes_repr_align_function =
602
+ `repr(align)` attributes on functions are unstable
603
+
598
604
passes_repr_conflicting =
599
605
conflicting representation hints
600
606
Original file line number Diff line number Diff line change @@ -1142,7 +1142,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
1142
1142
/// of one item. Read the documentation of [`check_doc_inline`] for more information.
1143
1143
///
1144
1144
/// [`check_doc_inline`]: Self::check_doc_inline
1145
- #[ allow( rustc:: untranslatable_diagnostic) ] // FIXME: make this translatable
1146
1145
fn check_doc_attrs (
1147
1146
& self ,
1148
1147
attr : & Attribute ,
@@ -1220,7 +1219,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
1220
1219
& self . tcx . sess ,
1221
1220
sym:: rustdoc_internals,
1222
1221
meta. span ( ) ,
1223
- "the `#[doc(rust_logo)]` attribute is used for Rust branding" ,
1222
+ fluent :: passes_doc_rust_logo ,
1224
1223
)
1225
1224
. emit ( ) ;
1226
1225
}
@@ -1736,7 +1735,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
1736
1735
}
1737
1736
1738
1737
/// Checks if the `#[repr]` attributes on `item` are valid.
1739
- #[ allow( rustc:: untranslatable_diagnostic) ] // FIXME: make this translatable
1740
1738
fn check_repr (
1741
1739
& self ,
1742
1740
attrs : & [ Attribute ] ,
@@ -1793,7 +1791,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
1793
1791
& self . tcx . sess ,
1794
1792
sym:: fn_align,
1795
1793
hint. span ( ) ,
1796
- "`repr(align)` attributes on functions are unstable" ,
1794
+ fluent :: passes_repr_align_function ,
1797
1795
)
1798
1796
. emit ( ) ;
1799
1797
}
You can’t perform that action at this time.
0 commit comments