diff options
| author | Martin Zacho <hi@martinzacho.net> | 2025-01-06 09:04:22 +0100 |
|---|---|---|
| committer | Martin Zacho <hi@martinzacho.net> | 2025-01-06 09:43:05 +0100 |
| commit | 38e10e56198759b37595c48c43441a3cafa390a4 (patch) | |
| tree | 1b7562710d76deb2052c356ccf375c44f0003a7f /compiler/rustc_query_system/src/error.rs | |
| parent | 83853ccdc3ac840c26aed112f854a3264f9cb614 (diff) | |
| download | rust-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.rs | 6 |
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, } |
