Description
Right now, install_ice_hook
hard-codes the bug report url to "https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md"
:
rust/compiler/rustc_driver_impl/src/lib.rs
Line 1192 in 6502613
For tools, this is not correct; rustdoc at least wants T-rustdoc
instead of T-compiler
, and other tools want different repositories altogether. I'm opening this bug here because it's relevant to all tools, even though the original context was for clippy.
Fixing this seems a little tricky since DEFAULT_HOOK
can't take an argument and doesn't have access to TyCtxt, but maybe we can solve this with thread-locals or something similar?
cc @rust-lang/rustdoc @rust-lang/clippy @rust-lang/miri @rust-lang/rustfmt
_Originally posted by @ingomancer in rust-lang/rust-clippy#10529