File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -726,7 +726,7 @@ impl<'a> Builder<'a> {
726726            . env ( "RUSTDOC_REAL" ,  self . rustdoc ( compiler) ) 
727727            . env ( "RUSTDOC_CRATE_VERSION" ,  self . rust_version ( ) ) 
728728            . env ( "RUSTC_BOOTSTRAP" ,  "1" ) 
729-             . arg ( "-Dinvalid_codeblock_attributes " ) ; 
729+             . arg ( "-Winvalid_codeblock_attributes " ) ; 
730730        if  self . config . deny_warnings  { 
731731            cmd. arg ( "-Dwarnings" ) ; 
732732        } 
@@ -1144,6 +1144,7 @@ impl<'a> Builder<'a> {
11441144
11451145            if  self . config . deny_warnings  { 
11461146                lint_flags. push ( "-Dwarnings" ) ; 
1147+                 rustdocflags. arg ( "-Dwarnings" ) ; 
11471148            } 
11481149
11491150            // FIXME(#58633) hide "unused attribute" errors in incremental 
@@ -1162,7 +1163,7 @@ impl<'a> Builder<'a> {
11621163            // fixed via better support from Cargo. 
11631164            cargo. env ( "RUSTC_LINT_FLAGS" ,  lint_flags. join ( " " ) ) ; 
11641165
1165-             rustdocflags. arg ( "-Dinvalid_codeblock_attributes " ) ; 
1166+             rustdocflags. arg ( "-Winvalid_codeblock_attributes " ) ; 
11661167        } 
11671168
11681169        if  let  Mode :: Rustc  | Mode :: Codegen  = mode { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments