about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/errors.rs
diff options
context:
space:
mode:
authornidnogg <henriquevt98@gmail.com>2022-08-18 01:54:11 -0300
committernidnogg <henriquevt98@gmail.com>2022-08-21 23:22:50 -0300
commit6af8e46a9af03b94baec980d188798a58f3eb75c (patch)
treecf12141dad38c8774ce269e2f47b0deb4026c302 /compiler/rustc_const_eval/src/errors.rs
parent0b71ffca18a9f4a9515773b2c23d13f501d1e08f (diff)
downloadrust-6af8e46a9af03b94baec980d188798a58f3eb75c.tar.gz
rust-6af8e46a9af03b94baec980d188798a58f3eb75c.zip
Finished const_eval module migration, moving onto sibling folders
Diffstat (limited to 'compiler/rustc_const_eval/src/errors.rs')
-rw-r--r--compiler/rustc_const_eval/src/errors.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_const_eval/src/errors.rs b/compiler/rustc_const_eval/src/errors.rs
index 01619dee0e4..1a0faad2c2c 100644
--- a/compiler/rustc_const_eval/src/errors.rs
+++ b/compiler/rustc_const_eval/src/errors.rs
@@ -87,3 +87,11 @@ pub(crate) struct TransientMutBorrowErrRaw {
     pub span: Span,
     pub kind: ConstContext,
 }
+
+#[derive(SessionDiagnostic)]
+#[error(const_eval::const_evaL_max_num_nodes_exceeded)]
+pub(crate) struct MaxNumNodesExceeded {
+    #[primary_span]
+    pub span: Span,
+    pub s: String,
+}