Migrate all diagnostics
This commit is contained in:
parent
2459569776
commit
c65ebae221
58 changed files with 1279 additions and 1318 deletions
|
@ -5,7 +5,7 @@ use std::io;
|
|||
use std::path::Path;
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(interface::ferris_identifier)]
|
||||
#[diag(interface_ferris_identifier)]
|
||||
pub struct FerrisIdentifier {
|
||||
#[primary_span]
|
||||
pub spans: Vec<Span>,
|
||||
|
@ -14,7 +14,7 @@ pub struct FerrisIdentifier {
|
|||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(interface::emoji_identifier)]
|
||||
#[diag(interface_emoji_identifier)]
|
||||
pub struct EmojiIdentifier {
|
||||
#[primary_span]
|
||||
pub spans: Vec<Span>,
|
||||
|
@ -22,67 +22,67 @@ pub struct EmojiIdentifier {
|
|||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(interface::mixed_bin_crate)]
|
||||
#[diag(interface_mixed_bin_crate)]
|
||||
pub struct MixedBinCrate;
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(interface::mixed_proc_macro_crate)]
|
||||
#[diag(interface_mixed_proc_macro_crate)]
|
||||
pub struct MixedProcMacroCrate;
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(interface::proc_macro_doc_without_arg)]
|
||||
#[diag(interface_proc_macro_doc_without_arg)]
|
||||
pub struct ProcMacroDocWithoutArg;
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(interface::error_writing_dependencies)]
|
||||
#[diag(interface_error_writing_dependencies)]
|
||||
pub struct ErrorWritingDependencies<'a> {
|
||||
pub path: &'a Path,
|
||||
pub error: io::Error,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(interface::input_file_would_be_overwritten)]
|
||||
#[diag(interface_input_file_would_be_overwritten)]
|
||||
pub struct InputFileWouldBeOverWritten<'a> {
|
||||
pub path: &'a Path,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(interface::generated_file_conflicts_with_directory)]
|
||||
#[diag(interface_generated_file_conflicts_with_directory)]
|
||||
pub struct GeneratedFileConflictsWithDirectory<'a> {
|
||||
pub input_path: &'a Path,
|
||||
pub dir_path: &'a Path,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(interface::temps_dir_error)]
|
||||
#[diag(interface_temps_dir_error)]
|
||||
pub struct TempsDirError;
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(interface::out_dir_error)]
|
||||
#[diag(interface_out_dir_error)]
|
||||
pub struct OutDirError;
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(interface::cant_emit_mir)]
|
||||
#[diag(interface_cant_emit_mir)]
|
||||
pub struct CantEmitMIR {
|
||||
pub error: io::Error,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(interface::rustc_error_fatal)]
|
||||
#[diag(interface_rustc_error_fatal)]
|
||||
pub struct RustcErrorFatal {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(interface::rustc_error_unexpected_annotation)]
|
||||
#[diag(interface_rustc_error_unexpected_annotation)]
|
||||
pub struct RustcErrorUnexpectedAnnotation {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(interface::failed_writing_file)]
|
||||
#[diag(interface_failed_writing_file)]
|
||||
pub struct FailedWritingFile<'a> {
|
||||
pub path: &'a Path,
|
||||
pub error: io::Error,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue