]> git.lizzy.rs Git - rust.git/commit
Fix `rustdoc --version` when used with download-rustc
authorJoshua Nelson <jnelson@cloudflare.com>
Wed, 9 Nov 2022 08:52:59 +0000 (02:52 -0600)
committerJoshua Nelson <jnelson@cloudflare.com>
Wed, 9 Nov 2022 08:54:51 +0000 (02:54 -0600)
commita68ec2205335e2c3de8ba56fb6a31b99f10c95a6
tree240c87f61d31e116c19d2fa1a6b5ff2d0e8ed223
parent7eef946fc0e0eff40e588eab77b09b287accbec3
Fix `rustdoc --version` when used with download-rustc

Previously, rustdoc would unconditionally report the version that *rustc* was compiled with.
That showed things like `nightly-2022-10-30`, which wasn't right, since this was a `dev` build compiled from source.

Fix it by changing `rustc_driver::version` to a macro expanded at invocation time.
compiler/rustc_codegen_cranelift/src/debuginfo/mod.rs
compiler/rustc_driver/src/lib.rs
compiler/rustc_interface/src/lib.rs
compiler/rustc_interface/src/util.rs
src/librustdoc/config.rs
src/librustdoc/html/layout.rs