This repository was archived by the owner on May 28, 2025. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 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 =
223223    .not_an_extern_crate_label =  not an `extern crate` item 
224224    .note =  read <https://doc.rust-lang.org/unstable-book/language-features/doc-masked.html> for more information 
225225
226+ passes_doc_rust_logo = 
227+     the `#[doc(rust_logo)]` attribute is used for Rust branding 
228+ 
226229passes_doc_test_literal =  `#![doc(test(...)]` does not take a literal 
227230
228231passes_doc_test_takes_list = 
@@ -595,6 +598,9 @@ passes_remove_fields =
595598     *[ other ]  fields 
596599     } 
597600
601+ passes_repr_align_function = 
602+     `repr(align)` attributes on functions are unstable 
603+ 
598604passes_repr_conflicting = 
599605    conflicting representation hints 
600606
Original file line number Diff line number Diff line change @@ -1142,7 +1142,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
11421142     /// of one item. Read the documentation of [`check_doc_inline`] for more information. 
11431143     /// 
11441144     /// [`check_doc_inline`]: Self::check_doc_inline 
1145-      #[ allow( rustc:: untranslatable_diagnostic) ]   // FIXME: make this translatable 
11461145     fn  check_doc_attrs ( 
11471146        & self , 
11481147        attr :  & Attribute , 
@@ -1220,7 +1219,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
12201219                                    & self . tcx . sess , 
12211220                                    sym:: rustdoc_internals, 
12221221                                    meta. span ( ) , 
1223-                                     "the `#[doc(rust_logo)]` attribute is used for Rust branding" , 
1222+                                     fluent :: passes_doc_rust_logo , 
12241223                                ) 
12251224                                . emit ( ) ; 
12261225                            } 
@@ -1736,7 +1735,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
17361735    } 
17371736
17381737    /// Checks if the `#[repr]` attributes on `item` are valid. 
1739-      #[ allow( rustc:: untranslatable_diagnostic) ]   // FIXME: make this translatable 
17401738     fn  check_repr ( 
17411739        & self , 
17421740        attrs :  & [ Attribute ] , 
@@ -1793,7 +1791,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
17931791                            & self . tcx . sess , 
17941792                            sym:: fn_align, 
17951793                            hint. span ( ) , 
1796-                             "`repr(align)` attributes on functions are unstable" , 
1794+                             fluent :: passes_repr_align_function , 
17971795                        ) 
17981796                        . emit ( ) ; 
17991797                    } 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments