1
Fork 0
rust/compiler/rustc_expand/src
bors 6d674af861 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.](https://github.com/rust-lang/compiler-team/issues/596)

![image](be661f05-b78a-40a9-b01d-81ad2dbdb690)
2023-10-26 02:08:07 +00:00
..
mbe Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
mut_visit rustc_ast: Turn MutVisitor::token_visiting_enabled into a constant 2021-10-18 00:23:24 +03:00
parse Auto merge of #114115 - nnethercote:less-token-tree-cloning, r=petrochenkov 2023-07-28 01:21:27 +00:00
tokenstream Remove TokenStreamBuilder. 2022-10-05 12:42:54 +11:00
base.rs rustc: Move features from Session to GlobalCtxt 2023-08-11 16:51:50 +08:00
build.rs Parse generic const items 2023-07-28 22:21:33 +02:00
config.rs Stop telling people to submit bugs for internal feature ICEs 2023-10-25 23:23:04 +02:00
errors.rs Mention the syntax for use on mod foo; if foo doesn't exist 2023-10-21 15:56:01 +00:00
expand.rs Enable incremental-relative-spans by default. 2023-09-07 20:21:13 +00:00
lib.rs docs: add Rust logo to more compiler crates 2023-10-16 15:38:08 -07:00
mbe.rs Move macro_rules diagnostics to diagnostics module 2022-11-20 13:06:44 +01:00
module.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
placeholders.rs Remove MacDelimiter. 2023-08-03 09:03:30 +10:00
proc_macro.rs inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
proc_macro_server.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
tests.rs Remove a bool for color in favor of the WriteColor trait wrapping colored and uncolored printing 2023-07-31 09:34:36 +00:00