Migrate derivable diagnostics in check_attr.rs
This commit is contained in:
parent
17a4a68ab0
commit
0315d7c9db
3 changed files with 19 additions and 8 deletions
|
@ -1,3 +1,5 @@
|
|||
use std::{io::Error, path::Path};
|
||||
|
||||
use rustc_errors::{Applicability, MultiSpan};
|
||||
use rustc_hir::Target;
|
||||
use rustc_macros::{Diagnostic, LintDiagnostic, Subdiagnostic};
|
||||
|
@ -527,6 +529,15 @@ pub struct DebugVisualizerInvalid {
|
|||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(passes::debug_visualizer_unreadable)]
|
||||
pub struct DebugVisualizerUnreadable<'a> {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
pub file: &'a Path,
|
||||
pub error: Error,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(passes::rustc_allow_const_fn_unstable)]
|
||||
pub struct RustcAllowConstFnUnstable {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue