You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #116818 - Nilstrieb:stop-submitting-bug-reports, r=wesleywiser
Stop telling people to submit bugs for internal feature ICEs
This keeps track of usage of internal features, and changes the message to instead tell them that using internal features is not supported.
I thought about several ways to do this but now used the explicit threading of an `Arc<AtomicBool>` through `Session`. This is not exactly incremental-safe, but this is fine, as this is set during macro expansion, which is pre-incremental, and also only affects the output of ICEs, at which point incremental correctness doesn't matter much anyways.
See [MCP 620.](rust-lang/compiler-team#596)

Copy file name to clipboardExpand all lines: compiler/rustc_driver_impl/messages.ftl
+1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
driver_impl_ice = the compiler unexpectedly panicked. this is a bug.
2
2
driver_impl_ice_bug_report = we would appreciate a bug report: {$bug_report_url}
3
+
driver_impl_ice_bug_report_internal_feature = using internal features is not supported and expected to cause internal compiler errors when used incorrectly
3
4
driver_impl_ice_exclude_cargo_defaults = some of the compiler flags provided by cargo are hidden
0 commit comments