diff options
| author | nidnogg <henriquevt98@gmail.com> | 2022-08-22 00:02:36 -0300 |
|---|---|---|
| committer | nidnogg <henriquevt98@gmail.com> | 2022-08-22 00:02:36 -0300 |
| commit | 13abae2deba8cd27cdc9ec81f4291c9047eaa7e1 (patch) | |
| tree | b5ee232797c5858b2edd8bb1731aae8ac11599cc /compiler/rustc_const_eval/src | |
| parent | 0a58b26e8a296a4f03d55ae0469ce4da9a6080a6 (diff) | |
| download | rust-13abae2deba8cd27cdc9ec81f4291c9047eaa7e1.tar.gz rust-13abae2deba8cd27cdc9ec81f4291c9047eaa7e1.zip | |
Switched errors to diags according to latest PRs
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/errors.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/compiler/rustc_const_eval/src/errors.rs b/compiler/rustc_const_eval/src/errors.rs index d0af304f109..c6e00219582 100644 --- a/compiler/rustc_const_eval/src/errors.rs +++ b/compiler/rustc_const_eval/src/errors.rs @@ -89,7 +89,7 @@ pub(crate) struct TransientMutBorrowErrRaw { } #[derive(SessionDiagnostic)] -#[error(const_eval::max_num_nodes_in_const)] +#[diag(const_eval::max_num_nodes_in_const)] pub(crate) struct MaxNumNodesInConstErr { #[primary_span] pub span: Span, @@ -97,7 +97,7 @@ pub(crate) struct MaxNumNodesInConstErr { } #[derive(SessionDiagnostic)] -#[error(const_eval::unallowed_fn_pointer_call)] +#[diag(const_eval::unallowed_fn_pointer_call)] pub(crate) struct UnallowedFnPointerCall { #[primary_span] pub span: Span, @@ -105,7 +105,7 @@ pub(crate) struct UnallowedFnPointerCall { } #[derive(SessionDiagnostic)] -#[error(const_eval::unstable_const_fn)] +#[diag(const_eval::unstable_const_fn)] pub(crate) struct UnstableConstFn { #[primary_span] pub span: Span, @@ -113,7 +113,7 @@ pub(crate) struct UnstableConstFn { } #[derive(SessionDiagnostic)] -#[error(const_eval::unallowed_mutable_refs, code = "E0764")] +#[diag(const_eval::unallowed_mutable_refs, code = "E0764")] pub(crate) struct UnallowedMutableRefs { #[primary_span] pub span: Span, @@ -123,7 +123,7 @@ pub(crate) struct UnallowedMutableRefs { } #[derive(SessionDiagnostic)] -#[error(const_eval::unallowed_mutable_refs_raw, code = "E0764")] +#[diag(const_eval::unallowed_mutable_refs_raw, code = "E0764")] pub(crate) struct UnallowedMutableRefsRaw { #[primary_span] pub span: Span, @@ -132,7 +132,7 @@ pub(crate) struct UnallowedMutableRefsRaw { pub teach: Option<()>, } #[derive(SessionDiagnostic)] -#[error(const_eval::non_const_fmt_macro_call, code = "E0015")] +#[diag(const_eval::non_const_fmt_macro_call, code = "E0015")] pub(crate) struct NonConstFmtMacroCall { #[primary_span] pub span: Span, @@ -140,7 +140,7 @@ pub(crate) struct NonConstFmtMacroCall { } #[derive(SessionDiagnostic)] -#[error(const_eval::non_const_fn_call, code = "E0015")] +#[diag(const_eval::non_const_fn_call, code = "E0015")] pub(crate) struct NonConstFnCall { #[primary_span] pub span: Span, @@ -149,7 +149,7 @@ pub(crate) struct NonConstFnCall { } #[derive(SessionDiagnostic)] -#[error(const_eval::unallowed_op_in_const_context)] +#[diag(const_eval::unallowed_op_in_const_context)] pub(crate) struct UnallowedOpInConstContext { #[primary_span] pub span: Span, @@ -157,7 +157,7 @@ pub(crate) struct UnallowedOpInConstContext { } #[derive(SessionDiagnostic)] -#[error(const_eval::unallowed_heap_allocations, code = "E0010")] +#[diag(const_eval::unallowed_heap_allocations, code = "E0010")] pub(crate) struct UnallowedHeapAllocations { #[primary_span] #[label] @@ -168,7 +168,7 @@ pub(crate) struct UnallowedHeapAllocations { } #[derive(SessionDiagnostic)] -#[error(const_eval::unallowed_inline_asm, code = "E0015")] +#[diag(const_eval::unallowed_inline_asm, code = "E0015")] pub(crate) struct UnallowedInlineAsm { #[primary_span] pub span: Span, @@ -176,7 +176,7 @@ pub(crate) struct UnallowedInlineAsm { } #[derive(SessionDiagnostic)] -#[error(const_eval::interior_mutable_data_refer, code = "E0492")] +#[diag(const_eval::interior_mutable_data_refer, code = "E0492")] pub(crate) struct InteriorMutableDataRefer { #[primary_span] #[label] @@ -189,7 +189,7 @@ pub(crate) struct InteriorMutableDataRefer { } #[derive(SessionDiagnostic)] -#[error(const_eval::interior_mutability_borrow)] +#[diag(const_eval::interior_mutability_borrow)] pub(crate) struct InteriorMutabilityBorrow { #[primary_span] pub span: Span, |
