Files
rust/tests/ui/parser/issues/issue-5806.rs
Usman Akinyemi dbee3dd369 rustc: improve diagnostics for file-open failures
Emit more targeted diagnostics when an input file cannot be opened,
including dedicated messages for common error kinds and typo
suggestions for missing files. Add run-make tests covering NotFound,
PermissionDenied, IsADirectory, and non-existent directory cases.

Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
2026-07-15 23:25:52 +05:30

8 lines
237 B
Rust

//@ normalize-stderr: "parser`:.*\(" -> "parser`: $$ACCESS_DENIED_MSG ("
//@ normalize-stderr: "os error \d+" -> "os error $$ACCESS_DENIED_CODE"
#[path = "../parser"]
mod foo; //~ ERROR couldn't find file `$DIR/../parser`
fn main() {}