File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 11# Translation  
22
3+ <div  class =" warning " >
4+ rustc's current diagnostics translation infrastructure (as of
5+ <!--  date-check -->   October 2024
6+ ) unfortunately causes some friction for compiler contributors, and the current
7+ infrastructure is mostly pending a redesign that better addresses needs of both
8+ compiler contributors and translation teams. Note that there is no current
9+ active redesign proposals (as of
10+ <!--  date-check -->   October 2024
11+ )!
12+ 
13+ Please see the tracking issue < https://github.com/rust-lang/rust/issues/132181 > 
14+ for status updates.
15+ 
16+ We have downgraded the internal lints ` untranslatable_diagnostic `  and
17+ ` diagnostic_outside_of_impl ` . Those internal lints previously required new code
18+ to use the current translation infrastructure. However, because the translation
19+ infra is waiting for a yet-to-be-proposed redesign and thus rework, we are not
20+ mandating usage of current translation infra. Use the infra if you * want to*  or
21+ otherwise makes the code cleaner, but otherwise sidestep the translation infra
22+ if you need more flexibility.
23+ </div >
24+ 
325rustc's diagnostic infrastructure supports translatable diagnostics using
426[ Fluent] .
527
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments