mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 01:26:32 +00:00
Fix ICE in `write_interface` when the interface file can't be written Fixes rust-lang/rust#143981. `write_interface` opened the `sdylib` interface file with `fs::File::create_buffered(...).unwrap()`, so any failure to create it (like `-o` into a non-existent or unwritable directory) will ICE instead of reporting a normal error. Emit `FailedWritingFile` instead, matching the rlink and dep-graph write paths. Also drop a stray trailing `"` from the `FailedWritingFile` in `diagnostic.rs` and `error.rs`.