File tree Expand file tree Collapse file tree 3 files changed +1
-9
lines changed Expand file tree Collapse file tree 3 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,6 @@ fn main() {
4848 cmd. arg ( arg) ;
4949 }
5050
51- // Bootstrap's Cargo-command builder sets this variable to the current Rust version; let's pick
52- // it up so we can make rustdoc print this into the docs
53- if let Some ( version) = env:: var_os ( "RUSTDOC_CRATE_VERSION" ) {
54- cmd. arg ( "--crate-version" ) . arg ( version) ;
55- }
56-
5751 // Needed to be able to run all rustdoc tests.
5852 if let Some ( ref x) = env:: var_os ( "RUSTDOC_RESOURCE_SUFFIX" ) {
5953 // This "unstable-options" can be removed when `--resource-suffix` is stabilized
Original file line number Diff line number Diff line change @@ -745,7 +745,6 @@ impl<'a> Builder<'a> {
745745 . env ( "RUSTDOC_LIBDIR" , self . rustc_libdir ( compiler) )
746746 . env ( "CFG_RELEASE_CHANNEL" , & self . config . channel )
747747 . env ( "RUSTDOC_REAL" , self . rustdoc ( compiler) )
748- . env ( "RUSTDOC_CRATE_VERSION" , self . rust_version ( ) )
749748 . env ( "RUSTC_BOOTSTRAP" , "1" )
750749 . arg ( "-Winvalid_codeblock_attributes" ) ;
751750 if self . config . deny_warnings {
@@ -1271,7 +1270,7 @@ impl<'a> Builder<'a> {
12711270 }
12721271
12731272 // For `cargo doc` invocations, make rustdoc print the Rust version into the docs
1274- cargo . env ( "RUSTDOC_CRATE_VERSION" , self . rust_version ( ) ) ;
1273+ rustdocflags . arg ( "--crate-version" ) . arg ( & self . rust_version ( ) ) ;
12751274
12761275 // Environment variables *required* throughout the build
12771276 //
Original file line number Diff line number Diff line change @@ -599,7 +599,6 @@ impl Step for RustdocTheme {
599599 . env ( "RUSTDOC_LIBDIR" , builder. sysroot_libdir ( self . compiler , self . compiler . host ) )
600600 . env ( "CFG_RELEASE_CHANNEL" , & builder. config . channel )
601601 . env ( "RUSTDOC_REAL" , builder. rustdoc ( self . compiler ) )
602- . env ( "RUSTDOC_CRATE_VERSION" , builder. rust_version ( ) )
603602 . env ( "RUSTC_BOOTSTRAP" , "1" ) ;
604603 if let Some ( linker) = builder. linker ( self . compiler . host , true ) {
605604 cmd. env ( "RUSTC_TARGET_LINKER" , linker) ;
You can’t perform that action at this time.
0 commit comments