rust/compiler/rustc_driver_impl
Stypox fc96ca8bba
Use closure to allow passing custom tracing layers
The previous method, where a layer would be passed directly,
required to pass a "no-op" layer when no custom layer was needed.
This should have in theory worked, however having a no-op layer
seems to change the way the tracing lib applies filters internally,
leading to some debug!() being printed despite them being out of
the minimum level for the filters. Note however that this behavior
was very inconsistent, and e.g. some debug!() would get printed
and some others wouldn't, for no apparent reason.
2025-06-11 10:42:50 +02:00
..
src Use closure to allow passing custom tracing layers 2025-06-11 10:42:50 +02:00
Cargo.toml compiler & tools: bump windows crate to dedupe versions 2025-05-17 15:26:38 +03:00
messages.ftl Move some calls to before calling codegen_crate 2025-03-21 13:23:07 +00:00
README.md Update out-dated link 2024-10-06 18:08:28 +08:00

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.