File tree 3 files changed +1
-9
lines changed
3 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,6 @@ fn main() {
48
48
cmd. arg ( arg) ;
49
49
}
50
50
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
-
57
51
// Needed to be able to run all rustdoc tests.
58
52
if let Some ( ref x) = env:: var_os ( "RUSTDOC_RESOURCE_SUFFIX" ) {
59
53
// 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> {
745
745
. env ( "RUSTDOC_LIBDIR" , self . rustc_libdir ( compiler) )
746
746
. env ( "CFG_RELEASE_CHANNEL" , & self . config . channel )
747
747
. env ( "RUSTDOC_REAL" , self . rustdoc ( compiler) )
748
- . env ( "RUSTDOC_CRATE_VERSION" , self . rust_version ( ) )
749
748
. env ( "RUSTC_BOOTSTRAP" , "1" )
750
749
. arg ( "-Winvalid_codeblock_attributes" ) ;
751
750
if self . config . deny_warnings {
@@ -1271,7 +1270,7 @@ impl<'a> Builder<'a> {
1271
1270
}
1272
1271
1273
1272
// 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 ( ) ) ;
1275
1274
1276
1275
// Environment variables *required* throughout the build
1277
1276
//
Original file line number Diff line number Diff line change @@ -599,7 +599,6 @@ impl Step for RustdocTheme {
599
599
. env ( "RUSTDOC_LIBDIR" , builder. sysroot_libdir ( self . compiler , self . compiler . host ) )
600
600
. env ( "CFG_RELEASE_CHANNEL" , & builder. config . channel )
601
601
. env ( "RUSTDOC_REAL" , builder. rustdoc ( self . compiler ) )
602
- . env ( "RUSTDOC_CRATE_VERSION" , builder. rust_version ( ) )
603
602
. env ( "RUSTC_BOOTSTRAP" , "1" ) ;
604
603
if let Some ( linker) = builder. linker ( self . compiler . host , true ) {
605
604
cmd. env ( "RUSTC_TARGET_LINKER" , linker) ;
You can’t perform that action at this time.
0 commit comments