PR feedback
This commit is contained in:
parent
95150d7246
commit
c3a606237d
10 changed files with 27 additions and 20 deletions
|
@ -654,7 +654,7 @@ fn process_rlink(sess: &Session, compiler: &interface::Compiler) {
|
|||
})
|
||||
}
|
||||
CodegenErrors::CorruptFile => {
|
||||
dcx.emit_fatal(RlinkCorruptFile { file: file.display().to_string() });
|
||||
dcx.emit_fatal(RlinkCorruptFile { file });
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -34,8 +34,8 @@ pub(crate) struct RlinkNotAFile;
|
|||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(driver_impl_rlink_corrupt_file)]
|
||||
pub(crate) struct RlinkCorruptFile {
|
||||
pub file: String,
|
||||
pub(crate) struct RlinkCorruptFile<'a> {
|
||||
pub file: &'a std::path::Path,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue