mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-04 01:44:15 +00:00
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>
8 lines
237 B
Rust
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() {}
|