1
Fork 0
rust/compiler/rustc_middle/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
..
dep_graph Adopt let_else in even more places 2022-02-16 22:43:39 +01:00
hir impl_header -> impl_subject 2022-03-22 10:35:17 -03:00
infer Inline UnifyKey::index and UnifyKey::from_index 2022-02-15 19:07:06 +01:00
middle Filter OnceNote in diagnostic infra. 2022-03-20 20:36:26 +01:00
mir Rollup merge of #95179 - b-naber:eval-in-try-unify, r=lcnr 2022-03-25 01:34:30 +01:00
query Auto merge of #95280 - InfRandomness:infrandomness/Dtorck_clarification, r=oli-obk 2022-03-25 14:16:13 +00:00
thir use NonHirLiteral instead of ScalarLiteral, move pattern related code to pat_is_poly in IsThirPolymorphic 2022-03-23 11:34:33 +01:00
traits Auto merge of #95280 - InfRandomness:infrandomness/Dtorck_clarification, r=oli-obk 2022-03-25 14:16:13 +00:00
ty Auto merge of #95280 - InfRandomness:infrandomness/Dtorck_clarification, r=oli-obk 2022-03-25 14:16:13 +00:00
util Use AddAssign impl 2021-11-09 23:47:36 +01:00
arena.rs Swap DtorckConstraint to DropckConstraint 2022-03-24 20:35:35 +01:00
lib.rs remove [async output] from impl Future 2022-03-22 19:41:34 -07:00
lint.rs Filter OnceNote in diagnostic infra. 2022-03-20 20:36:26 +01:00
macros.rs Rename TypeFolderFallible to FallibleTypeFolder 2021-12-02 16:14:18 +00:00
metadata.rs resolve/metadata: Stop encoding macros as reexports 2022-02-24 22:55:40 +03:00
tests.rs
thir.rs use NonHirLiteral instead of ScalarLiteral, move pattern related code to pat_is_poly in IsThirPolymorphic 2022-03-23 11:34:33 +01:00