about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-10-26 02:08:07 +0000
committerbors <bors@rust-lang.org>2023-10-26 02:08:07 +0000
commit6d674af86191239e9c866341f3aeea035090dc93 (patch)
treeb72bef80f6712a968428a4cca909e8617b6e9dd8 /compiler/rustc_parse/src/parser/expr.rs
parent278eaf509d0871c5aa09b6b5fec9dc72226578e2 (diff)
parent9d42b1e2683644d81e37d55468257cd612d906f6 (diff)
downloadrust-6d674af86191239e9c866341f3aeea035090dc93.tar.gz
rust-6d674af86191239e9c866341f3aeea035090dc93.zip
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](https://github.com/rust-lang/rust/assets/48135649/be661f05-b78a-40a9-b01d-81ad2dbdb690)
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions