1
Fork 0

save_analysis: Migrate diagnostics

This commit is contained in:
Wonchul Lee 2022-08-20 06:40:31 +09:00
parent a1bea1551b
commit 9b95eef6ea
No known key found for this signature in database
GPG key ID: C3C0E5D6CE87126A
6 changed files with 21 additions and 1 deletions

View 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,
}