about summary refs log tree commit diff
path: root/compiler/rustc_log/src/lib.rs
AgeCommit message (Collapse)AuthorLines
2025-01-07Avoid naming variables `str`Josh Triplett-2/+2
This renames variables named `str` to other names, to make sure `str` always refers to a type. It's confusing to read code where `str` (or another standard type name) is used as an identifier. It also produces misleading syntax highlighting.
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-1/+1
2024-07-29Reformat `use` declarations.Nicholas Nethercote-4/+3
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-06-12Bump tracing-tree and allow rendering lines againOli Scherer-0/+8
2024-05-30remove tracing tree indent lineslcnr-1/+0
2024-05-21Use Backtrace::force_capture instead of Backtrace::capture in rustc_logMichael Woerister-1/+3
2024-04-16Construct `SourceMap` at the same time as `SessionGlobals`.Nicholas Nethercote-1/+1
Currently `SourceMap` is constructed slightly later than `SessionGlobals`, and inserted. This commit changes things so they are done at the same time. Benefits: - `SessionGlobals::source_map` changes from `Lock<Option<Lrc<SourceMap>>>` to `Option<Lrc<SourceMap>>`. It's still optional, but mutability isn't required because it's initialized at construction. - `set_source_map` is removed, simplifying `run_compiler`, which is good because that's a critical function and it's nice to make it simpler. This requires moving things around a bit, so the necessary inputs are available when `SessionGlobals` is created, in particular the `loader` and `hash_kind`, which are no longer computed by `build_session`. These inputs are captured by the new `SourceMapInputs` type, which is threaded through various places.
2024-03-03rustc_log: expose tracing-tree "wraparound" in an env varRalf Jung-1/+18
2024-02-06Invert diagnostic lints.Nicholas Nethercote-3/+0
That is, change `diagnostic_outside_of_impl` and `untranslatable_diagnostic` from `allow` to `deny`, because more than half of the compiler has be converted to use translated diagnostics. This commit removes more `deny` attributes than it adds `allow` attributes, which proves that this change is warranted.
2023-11-11rustc_log: provide a way to init logging based on the values, not names, of ↵Ralf Jung-11/+34
the env vars
2023-10-10use env variable to control thread ids in rustc_logSparrowLii-3/+8
2023-10-02Fix a comment.Nicholas Nethercote-2/+2
Compiling any part of the compiler will almost certainly require Nightly.
2023-07-30inline format!() args up to and including rustc_middleMatthias Krüger-1/+1
2023-04-10Stabilize IsTerminalJosh Triplett-1/+0
closes: https://github.com/rust-lang/rust/issues/98070
2023-04-04write threads info into log only when debuggingSparrowLii-1/+1
2023-02-11Rollup merge of #107895 - matthiaskrgr:cl, r=compiler-errorsMatthias Krüger-1/+1
remove redundant clones
2023-02-10remove redundant clonesMatthias Krüger-1/+1
2023-02-10fix rustc_log doctestRalf Jung-3/+3
2023-02-09avoid duplicating the RUSTC_LOG env var nameRalf Jung-6/+0
2023-02-07Replace a command line flag with an env var to allow tools to initialize the ↵Oli Scherer-17/+4
tracing loggers at their own discretion
2023-01-12Add log-backtrace option to show backtraces along with loggingYuki Omoto-2/+56
2023-01-05Fix `uninlined_format_args` for some compiler cratesnils-2/+1
Convert all the crates that have had their diagnostic migration completed (except save_analysis because that will be deleted soon and apfloat because of the licensing problem).
2022-10-16Use IsTerminal in rustc_logJosh Triplett-3/+4
2022-08-18Add diagnostic translation lints to crates that don't emit them5225225-0/+3
2022-05-26clippy::complexity fixesMatthias Krüger-7/+1
clone_on_copy useless_format bind_instead_of_map filter_map_identity useless_conversion map_flatten unnecessary_unwrap
2022-05-11rustc_log: add env var to set verbose entry/exit behaviorRalf Jung-0/+13
2022-01-03Make rustc_log doc test runnableDavid Tolnay-1/+1
2022-01-03Justify why rustc_log existsDavid Tolnay-0/+37
2022-01-03Extract init_env_logger to crateDavid Tolnay-0/+78