From 3ee69463164ac33af6eb483ccd2f64b06730c220 Mon Sep 17 00:00:00 2001 From: Jhonny Bill Mena Date: Sun, 21 Aug 2022 11:09:00 -0400 Subject: [PATCH] UPDATE - to support diag introduced in PR #100765 --- compiler/rustc_symbol_mangling/src/errors.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/rustc_symbol_mangling/src/errors.rs b/compiler/rustc_symbol_mangling/src/errors.rs index 4872dfa2653a6..242997365a892 100644 --- a/compiler/rustc_symbol_mangling/src/errors.rs +++ b/compiler/rustc_symbol_mangling/src/errors.rs @@ -4,7 +4,7 @@ use rustc_macros::SessionDiagnostic; use rustc_span::Span; #[derive(SessionDiagnostic)] -#[error(symbol_mangling::invalid_symbol_name)] +#[diag(symbol_mangling::invalid_symbol_name)] pub struct InvalidSymbolName { #[primary_span] pub span: Span, @@ -12,7 +12,7 @@ pub struct InvalidSymbolName { } #[derive(SessionDiagnostic)] -#[error(symbol_mangling::invalid_trait_item)] +#[diag(symbol_mangling::invalid_trait_item)] pub struct InvalidTraitItem { #[primary_span] pub span: Span, @@ -20,7 +20,7 @@ pub struct InvalidTraitItem { } #[derive(SessionDiagnostic)] -#[error(symbol_mangling::alt_invalid_trait_item)] +#[diag(symbol_mangling::alt_invalid_trait_item)] pub struct AltInvalidTraitItem { #[primary_span] pub span: Span, @@ -28,7 +28,7 @@ pub struct AltInvalidTraitItem { } #[derive(SessionDiagnostic)] -#[error(symbol_mangling::invalid_def_path)] +#[diag(symbol_mangling::invalid_def_path)] pub struct InvalidDefPath { #[primary_span] pub span: Span,