rust/compiler/rustc_expand/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
..
mbe Shrink MatcherPosRepetition. 2022-03-25 12:35:56 +11:00
mut_visit rustc_ast: Turn MutVisitor::token_visiting_enabled into a constant 2021-10-18 00:23:24 +03:00
parse re-format with new rustfmt 2021-11-30 13:08:41 -05:00
tokenstream Rework SESSION_GLOBALS API to prevent overwriting it 2021-07-08 16:16:28 +02:00
base.rs rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
build.rs Include ignore message in libtest output 2022-02-24 17:36:36 -05:00
config.rs Move the set of features to the features query. 2022-03-03 18:08:30 +01:00
expand.rs Auto merge of #94584 - pnkfelix:inject-use-suggestion-sites, r=ekuber 2022-03-15 03:56:33 +00:00
lib.rs Remove MatcherPosHandle. 2022-03-21 10:08:29 +11:00
mbe.rs Eliminate TokenTreeOrTokenTreeSlice. 2022-03-23 07:13:31 +11:00
module.rs Associate multiple with a crate too. 2022-03-03 18:45:25 -05:00
placeholders.rs Associate multiple with a crate too. 2022-03-03 18:45:25 -05:00
proc_macro_server.rs Take &mut Diagnostic in emit_diagnostic. 2022-03-20 20:36:08 +01:00
proc_macro.rs rustc_error: make ErrorReported impossible to construct 2022-03-16 10:35:24 -05:00
tests.rs Rework SESSION_GLOBALS API to prevent overwriting it 2021-07-08 16:16:28 +02:00