about summary refs log tree commit diff
path: root/compiler/rustc_query_system/src/error.rs
diff options
context:
space:
mode:
authorMartin Zacho <hi@martinzacho.net>2025-01-06 09:04:22 +0100
committerMartin Zacho <hi@martinzacho.net>2025-01-06 09:43:05 +0100
commit38e10e56198759b37595c48c43441a3cafa390a4 (patch)
tree1b7562710d76deb2052c356ccf375c44f0003a7f /compiler/rustc_query_system/src/error.rs
parent83853ccdc3ac840c26aed112f854a3264f9cb614 (diff)
downloadrust-38e10e56198759b37595c48c43441a3cafa390a4.tar.gz
rust-38e10e56198759b37595c48c43441a3cafa390a4.zip
improve diagnostics for const eval query overflow
Diffstat (limited to 'compiler/rustc_query_system/src/error.rs')
-rw-r--r--compiler/rustc_query_system/src/error.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_query_system/src/error.rs b/compiler/rustc_query_system/src/error.rs
index 860f2e66915..4d5a944b179 100644
--- a/compiler/rustc_query_system/src/error.rs
+++ b/compiler/rustc_query_system/src/error.rs
@@ -84,14 +84,14 @@ pub struct QueryOverflow {
     #[primary_span]
     pub span: Option<Span>,
     #[subdiagnostic]
-    pub layout_of_depth: Option<LayoutOfDepth>,
+    pub note: Option<QueryOverflowNote>,
     pub suggested_limit: Limit,
     pub crate_name: Symbol,
 }
 
 #[derive(Subdiagnostic)]
-#[note(query_system_layout_of_depth)]
-pub struct LayoutOfDepth {
+#[note(query_system_overflow_note)]
+pub struct QueryOverflowNote {
     pub desc: String,
     pub depth: usize,
 }