diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-22 18:32:06 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-28 08:33:25 +1100 |
| commit | 6588f5b7494afdd9bff016b786daad2e96739b97 (patch) | |
| tree | e40d8aded653ae0083a96765f4ac53ad0b565a89 /compiler/rustc_query_impl/src | |
| parent | 1e4f9e302c63ee126a4db8ec2cf3fa396dc74d52 (diff) | |
| download | rust-6588f5b7494afdd9bff016b786daad2e96739b97.tar.gz rust-6588f5b7494afdd9bff016b786daad2e96739b97.zip | |
Rename `Diagnostic` as `DiagInner`.
I started by changing it to `DiagData`, but that didn't feel right. `DiagInner` felt much better.
Diffstat (limited to 'compiler/rustc_query_impl/src')
| -rw-r--r-- | compiler/rustc_query_impl/src/plumbing.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_query_impl/src/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs index 5917d79983d..c7baca86d93 100644 --- a/compiler/rustc_query_impl/src/plumbing.rs +++ b/compiler/rustc_query_impl/src/plumbing.rs @@ -7,7 +7,7 @@ use crate::rustc_middle::ty::TyEncoder; use crate::QueryConfigRestored; use rustc_data_structures::stable_hasher::{Hash64, HashStable, StableHasher}; use rustc_data_structures::sync::Lock; -use rustc_errors::Diagnostic; +use rustc_errors::DiagInner; use rustc_index::Idx; use rustc_middle::dep_graph::dep_kinds; @@ -125,7 +125,7 @@ impl QueryContext for QueryCtxt<'_> { self, token: QueryJobId, depth_limit: bool, - diagnostics: Option<&Lock<ThinVec<Diagnostic>>>, + diagnostics: Option<&Lock<ThinVec<DiagInner>>>, compute: impl FnOnce() -> R, ) -> R { // The `TyCtxt` stored in TLS has the same global interner lifetime |
