about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/src/errors.rs
diff options
context:
space:
mode:
authorNathan Stocks <cleancut@github.com>2022-08-24 16:28:56 -0600
committerNathan Stocks <cleancut@github.com>2022-08-25 11:06:45 -0600
commit30c750665517756484b0154b1b33a1256e614e6b (patch)
treee1c49c1441edf6a763a92b48a881b8d34ac8c512 /compiler/rustc_monomorphize/src/errors.rs
parente9142473dfca7e274d24695e86f9100b020acab5 (diff)
downloadrust-30c750665517756484b0154b1b33a1256e614e6b.tar.gz
rust-30c750665517756484b0154b1b33a1256e614e6b.zip
allow non-monomorphize modules to access hard-coded error message through new struct, use fluent message in monomorphize
Diffstat (limited to 'compiler/rustc_monomorphize/src/errors.rs')
-rw-r--r--compiler/rustc_monomorphize/src/errors.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_monomorphize/src/errors.rs b/compiler/rustc_monomorphize/src/errors.rs
index c53ef20c7f8..77b6cfa1f69 100644
--- a/compiler/rustc_monomorphize/src/errors.rs
+++ b/compiler/rustc_monomorphize/src/errors.rs
@@ -33,9 +33,9 @@ pub struct TypeLengthLimit {
 }
 
 #[derive(SessionDiagnostic)]
-#[diag(monomorphize::fatal_error)]
-pub struct FatalError {
-    pub error_message: String,
+#[diag(monomorphize::requires_lang_item)]
+pub struct RequiresLangItem {
+    pub lang_item: String,
 }
 
 pub struct UnusedGenericParams {