about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/errors.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-09-11 23:09:11 +0200
committerRalf Jung <post@ralfj.de>2023-09-14 22:34:05 +0200
commit9ac8b363e3227fdc08634ce445b7787aa0fa6bba (patch)
treefa4ccae3cb361f63c1aa533ddd6921a1b7c71045 /compiler/rustc_const_eval/src/errors.rs
parent89ac57db4dbc0a69a3d15b6818ca1de5bc5bd09c (diff)
downloadrust-9ac8b363e3227fdc08634ce445b7787aa0fa6bba.tar.gz
rust-9ac8b363e3227fdc08634ce445b7787aa0fa6bba.zip
don't point at const usage site for resolution-time errors
also share the code that emits the actual error
Diffstat (limited to 'compiler/rustc_const_eval/src/errors.rs')
-rw-r--r--compiler/rustc_const_eval/src/errors.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/rustc_const_eval/src/errors.rs b/compiler/rustc_const_eval/src/errors.rs
index c3c6cbe3991..b1599dd6894 100644
--- a/compiler/rustc_const_eval/src/errors.rs
+++ b/compiler/rustc_const_eval/src/errors.rs
@@ -239,13 +239,6 @@ pub struct LongRunningWarn {
     pub item_span: Span,
 }
 
-#[derive(Diagnostic)]
-#[diag(const_eval_erroneous_constant)]
-pub(crate) struct ErroneousConstUsed {
-    #[primary_span]
-    pub span: Span,
-}
-
 #[derive(Subdiagnostic)]
 #[note(const_eval_non_const_impl)]
 pub(crate) struct NonConstImplNote {