rust/compiler/rustc_trait_selection/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
..
traits Auto merge of #95149 - cjgillot:once-diag, r=estebank 2022-03-26 00:54:54 +00:00
autoderef.rs Filter OnceNote in diagnostic infra. 2022-03-20 20:36:26 +01:00
infer.rs Revert "Auto merge of #91491 - spastorino:revert-91354, r=oli-obk" 2021-12-12 12:34:46 +08:00
lib.rs suggest enabling generic_const_exprs feature if const is unevaluatable 2022-03-09 14:47:50 -08:00
opaque_types.rs Overhaul Const. 2022-02-15 16:19:59 +11:00