about summary refs log tree commit diff
path: root/compiler/rustc_query_system/src/query/mod.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-02-22 18:32:06 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-02-28 08:33:25 +1100
commit6588f5b7494afdd9bff016b786daad2e96739b97 (patch)
treee40d8aded653ae0083a96765f4ac53ad0b565a89 /compiler/rustc_query_system/src/query/mod.rs
parent1e4f9e302c63ee126a4db8ec2cf3fa396dc74d52 (diff)
downloadrust-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_system/src/query/mod.rs')
-rw-r--r--compiler/rustc_query_system/src/query/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_query_system/src/query/mod.rs b/compiler/rustc_query_system/src/query/mod.rs
index 02b3c740b63..0aefe553a34 100644
--- a/compiler/rustc_query_system/src/query/mod.rs
+++ b/compiler/rustc_query_system/src/query/mod.rs
@@ -21,7 +21,7 @@ use crate::dep_graph::DepKind;
 use crate::dep_graph::{DepNodeIndex, HasDepContext, SerializedDepNodeIndex};
 use rustc_data_structures::stable_hasher::Hash64;
 use rustc_data_structures::sync::Lock;
-use rustc_errors::Diagnostic;
+use rustc_errors::DiagInner;
 use rustc_hir::def::DefKind;
 use rustc_span::def_id::DefId;
 use rustc_span::Span;
@@ -89,7 +89,7 @@ pub struct QuerySideEffects {
     /// Stores any diagnostics emitted during query execution.
     /// These diagnostics will be re-emitted if we mark
     /// the query as green.
-    pub(super) diagnostics: ThinVec<Diagnostic>,
+    pub(super) diagnostics: ThinVec<DiagInner>,
 }
 
 impl QuerySideEffects {
@@ -135,7 +135,7 @@ pub trait QueryContext: HasDepContext {
         self,
         token: QueryJobId,
         depth_limit: bool,
-        diagnostics: Option<&Lock<ThinVec<Diagnostic>>>,
+        diagnostics: Option<&Lock<ThinVec<DiagInner>>>,
         compute: impl FnOnce() -> R,
     ) -> R;