rust/compiler/rustc_const_eval/src
bors c74925438c Auto merge of #95149 - cjgillot:once-diag, r=estebank
Remove `Session::one_time_diagnostic`

This is untracked mutable state, which modified the behaviour of queries.
It was used for 2 things: some full-blown errors, but mostly for lint declaration notes ("the lint level is defined here" notes).

It is replaced by the diagnostic deduplication infra which already exists in the diagnostic emitter.
A new diagnostic level `OnceNote` is introduced specifically for lint notes, to deduplicate subdiagnostics.

As a drive-by, diagnostic emission takes a `&mut` to allow dropping the `SubDiagnostic`s.
2022-03-26 00:54:54 +00:00
..
const_eval rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
interpret Rollup merge of #95221 - RalfJung:check_and_deref_ptr, r=oli-obk 2022-03-23 22:13:24 +01:00
transform Auto merge of #95149 - cjgillot:once-diag, r=estebank 2022-03-26 00:54:54 +00:00
util Improve AdtDef interning. 2022-03-11 13:31:24 +11:00
lib.rs Switch bootstrap cfgs 2022-02-25 08:00:52 -05:00