about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-03-26 00:54:54 +0000
committerbors <bors@rust-lang.org>2022-03-26 00:54:54 +0000
commit2d85270bdf22d19072392ee15cff64de762c8315 (patch)
tree7e55d152336d517232ec879be4c330d4517fb864 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parentb7b0dad656075e0d0e57cc189d7f0a4d29f9301e (diff)
parent94c727eccf0d8befe27aca4050cbb880a6e0343b (diff)
downloadrust-2d85270bdf22d19072392ee15cff64de762c8315.tar.gz
rust-2d85270bdf22d19072392ee15cff64de762c8315.zip
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.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions