1
Fork 0
rust/compiler/rustc_parse/src
Guillaume Gomez a5945b5d8d
Rollup merge of #121669 - nnethercote:count-stashed-errs-again, r=estebank
Count stashed errors again

Stashed diagnostics are such a pain. Their "might be emitted, might not" semantics messes with lots of things.

#120828 and #121206 made some big changes to how they work, improving some things, but still leaving some problems, as seen by the issues caused by #121206. This PR aims to fix all of them by restricting them in a way that eliminates the "might be emitted, might not" semantics while still allowing 98% of their benefit. Details in the individual commit logs.

r? `@oli-obk`
2024-02-29 17:08:38 +01:00
..
lexer Rollup merge of #121724 - nnethercote:LitKind-Err-for-floats, r=fmease 2024-02-29 00:17:00 +01:00
parser Overhaul how stashed diagnostics work, again. 2024-02-29 11:08:27 +11:00
errors.rs Remove unused diagnostic struct 2024-02-29 14:14:21 +08:00
lib.rs Rename DiagnosticBuilder as Diag. 2024-02-28 08:55:35 +11:00
validate_attr.rs Add ErrorGuaranteed to ast::ExprKind::Err 2024-02-25 22:24:31 +01:00