save_analysis: Migrate diagnostics
This commit is contained in:
parent
a1bea1551b
commit
9b95eef6ea
6 changed files with 21 additions and 1 deletions
10
compiler/rustc_save_analysis/src/errors.rs
Normal file
10
compiler/rustc_save_analysis/src/errors.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
use rustc_macros::SessionDiagnostic;
|
||||
|
||||
use std::path::Path;
|
||||
|
||||
#[derive(SessionDiagnostic)]
|
||||
#[diag(save_analysis::could_not_open)]
|
||||
pub(crate) struct CouldNotOpen<'a> {
|
||||
pub file_name: &'a Path,
|
||||
pub err: std::io::Error,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue