diff options
| author | Nathan Stocks <cleancut@github.com> | 2022-08-24 16:28:56 -0600 |
|---|---|---|
| committer | Nathan Stocks <cleancut@github.com> | 2022-08-25 11:06:45 -0600 |
| commit | 30c750665517756484b0154b1b33a1256e614e6b (patch) | |
| tree | e1c49c1441edf6a763a92b48a881b8d34ac8c512 /compiler/rustc_monomorphize/src/errors.rs | |
| parent | e9142473dfca7e274d24695e86f9100b020acab5 (diff) | |
| download | rust-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.rs | 6 |
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 { |
