rust/compiler/rustc_borrowck/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
..
constraints Remove ordering traits from rustc_borrowck::constraints::OutlivesConstraint 2022-01-19 13:12:26 -06:00
diagnostics diagnostics: do not give Option::as_ref suggestion for complex match 2022-03-19 15:54:30 -07:00
region_infer add #[rustc_pass_by_value] to more types 2022-03-08 15:39:52 +01:00
type_check Improve AdtDef interning. 2022-03-11 13:31:24 +11:00
borrow_set.rs
borrowck_errors.rs rename ErrorReported -> ErrorGuaranteed 2022-03-02 09:45:25 -06:00
constraint_generation.rs Overhaul RegionKind and Region. 2022-02-15 16:08:52 +11:00
consumers.rs
dataflow.rs
def_use.rs
facts.rs
invalidation.rs Remove no longer used MutateMode enum 2022-01-12 18:51:31 +01:00
lib.rs Take &mut Diagnostic in emit_diagnostic. 2022-03-20 20:36:08 +01:00
location.rs add #[rustc_pass_by_value] to more types 2022-03-08 15:39:52 +01:00
member_constraints.rs
nll.rs add #[rustc_pass_by_value] to more types 2022-03-08 15:39:52 +01:00
path_utils.rs
place_ext.rs
places_conflict.rs 3 - Make more use of let_chains 2022-02-27 11:10:20 -03:00
prefixes.rs
renumber.rs Overhaul Const. 2022-02-15 16:19:59 +11:00
universal_regions.rs Replace &mut DiagnosticBuilder, in signatures, with &mut Diagnostic. 2022-02-23 05:38:19 +00:00
used_muts.rs