rust/compiler/rustc_driver
Manish Goregaokar 70c04a2fd1
Rollup merge of #104184 - jyn514:rustdoc-version, r=davidtwco
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.

cc https://github.com/rust-lang/rust/issues/103206#issuecomment-1284123084
2022-11-09 15:39:07 -05:00
..
src Rollup merge of #104184 - jyn514:rustdoc-version, r=davidtwco 2022-11-09 15:39:07 -05:00
Cargo.toml rustc_typeck to rustc_hir_analysis 2022-09-27 10:37:23 +02:00
README.md mv compiler to compiler/ 2020-08-30 18:45:07 +03:00

README.md

The driver crate is effectively the "main" function for the rust compiler. It orchestrates the compilation process and "knits together" the code from the other crates within rustc. This crate itself does not contain any of the "main logic" of the compiler (though it does have some code related to pretty printing or other minor compiler options).

For more information about how the driver works, see the rustc dev guide.