Rollup merge of #110989 - jyn514:bug-report-url, r=WaffleLapkin
Make the BUG_REPORT_URL configurable by tools This greatly simplifies how hard it is to set a custom bug report url; previously tools had to copy the entire hook implementation. I haven't changed clippy in case they want to make the change upstream instead of the subtree, but I'm happy to do so here if the maintainers want - cc ````@rust-lang/clippy```` Fixes https://github.com/rust-lang/rust/issues/109486.
This commit is contained in:
commit
8ec84dd523
7 changed files with 118 additions and 114 deletions
|
@ -156,15 +156,19 @@ pub fn main() {
|
|||
}
|
||||
}
|
||||
|
||||
rustc_driver::install_ice_hook();
|
||||
rustc_driver::install_ice_hook(
|
||||
"https://github.com/rust-lang/rust/issues/new\
|
||||
?labels=C-bug%2C+I-ICE%2C+T-rustdoc&template=ice.md",
|
||||
|_| (),
|
||||
);
|
||||
|
||||
// When using CI artifacts (with `download_stage1 = true`), tracing is unconditionally built
|
||||
// When using CI artifacts with `download-rustc`, tracing is unconditionally built
|
||||
// with `--features=static_max_level_info`, which disables almost all rustdoc logging. To avoid
|
||||
// this, compile our own version of `tracing` that logs all levels.
|
||||
// NOTE: this compiles both versions of tracing unconditionally, because
|
||||
// - The compile time hit is not that bad, especially compared to rustdoc's incremental times, and
|
||||
// - Otherwise, there's no warning that logging is being ignored when `download_stage1 = true`.
|
||||
// NOTE: The reason this doesn't show double logging when `download_stage1 = false` and
|
||||
// - Otherwise, there's no warning that logging is being ignored when `download-rustc` is enabled
|
||||
// NOTE: The reason this doesn't show double logging when `download-rustc = false` and
|
||||
// `debug_logging = true` is because all rustc logging goes to its version of tracing (the one
|
||||
// in the sysroot), and all of rustdoc's logging goes to its version (the one in Cargo.toml).
|
||||
init_logging();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue