File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -725,7 +725,9 @@ impl<'a> Builder<'a> {
725
725
. env ( "CFG_RELEASE_CHANNEL" , & self . config . channel )
726
726
. env ( "RUSTDOC_REAL" , self . rustdoc ( compiler) )
727
727
. env ( "RUSTDOC_CRATE_VERSION" , self . rust_version ( ) )
728
- . env ( "RUSTC_BOOTSTRAP" , "1" ) ;
728
+ . env ( "RUSTC_BOOTSTRAP" , "1" )
729
+ . arg ( "--deny" )
730
+ . arg ( "invalid_codeblock_attribute" ) ;
729
731
730
732
// Remove make-related flags that can cause jobserver problems.
731
733
cmd. env_remove ( "MAKEFLAGS" ) ;
@@ -838,7 +840,8 @@ impl<'a> Builder<'a> {
838
840
// FIXME: It might be better to use the same value for both `RUSTFLAGS` and `RUSTDOCFLAGS`,
839
841
// but this breaks CI. At the very least, stage0 `rustdoc` needs `--cfg bootstrap`. See
840
842
// #71458.
841
- let rustdocflags = rustflags. clone ( ) ;
843
+ let mut rustdocflags = rustflags. clone ( ) ;
844
+ rustdocflags. arg ( "--deny" ) . arg ( "invalid_codeblock_attribute" ) ;
842
845
843
846
if let Ok ( s) = env:: var ( "CARGOFLAGS" ) {
844
847
cargo. args ( s. split_whitespace ( ) ) ;
You can’t perform that action at this time.
0 commit comments