.env("RUSTDOC_REAL", self.rustdoc(compiler))
.env("RUSTC_BOOTSTRAP", "1");
- // cfg(bootstrap), can be removed on the next beta bump
- if compiler.stage == 0 {
- cmd.arg("-Winvalid_codeblock_attributes");
- } else {
- cmd.arg("-Wrustdoc::invalid_codeblock_attributes");
- }
+ cmd.arg("-Wrustdoc::invalid_codeblock_attributes");
if self.config.deny_warnings {
cmd.arg("-Dwarnings");
// fixed via better support from Cargo.
cargo.env("RUSTC_LINT_FLAGS", lint_flags.join(" "));
- // cfg(bootstrap), can be removed on the next beta bump
- if compiler.stage == 0 {
- rustdocflags.arg("-Winvalid_codeblock_attributes");
- } else {
- rustdocflags.arg("-Wrustdoc::invalid_codeblock_attributes");
- }
+ rustdocflags.arg("-Wrustdoc::invalid_codeblock_attributes");
}
if mode == Mode::Rustc {