diff options
| author | bors <bors@rust-lang.org> | 2023-07-28 23:53:12 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-07-28 23:53:12 +0000 |
| commit | ca1f813cc305ec504d7e49672c340f0d3a597e5a (patch) | |
| tree | e6d76bba26d8d35bda31e0f5c1871d37885846a5 /compiler/rustc_errors/src | |
| parent | 04abc370b9f3855b28172b65a7f7d5a433f41412 (diff) | |
| parent | a4b9405c4af779c995db1687d717dcaed868c86f (diff) | |
| download | rust-ca1f813cc305ec504d7e49672c340f0d3a597e5a.tar.gz rust-ca1f813cc305ec504d7e49672c340f0d3a597e5a.zip | |
Auto merge of #114181 - matthiaskrgr:rollup-14m8s7f, r=matthiaskrgr
Rollup of 7 pull requests Successful merges: - #114099 (privacy: no nominal visibility for assoc fns ) - #114128 (When flushing delayed span bugs, write to the ICE dump file even if it doesn't exist) - #114138 (Adjust spans correctly for fn -> method suggestion) - #114146 (Skip reporting item name when checking RPITIT GAT's associated type bounds hold) - #114147 (Insert RPITITs that were shadowed by missing ADTs that resolve to [type error]) - #114155 (Replace a lazy `RefCell<Option<T>>` with `OnceCell<T>`) - #114164 (Add regression test for `--cap-lints allow` and trait bounds warning) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index e01e80939ca..aa213cd0720 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -1655,11 +1655,11 @@ impl HandlerInner { let backtrace = std::env::var_os("RUST_BACKTRACE").map_or(true, |x| &x != "0"); for bug in bugs { if let Some(file) = self.ice_file.as_ref() - && let Ok(mut out) = std::fs::File::options().append(true).open(file) + && let Ok(mut out) = std::fs::File::options().create(true).append(true).open(file) { let _ = write!( &mut out, - "\n\ndelayed span bug: {}\n{}", + "delayed span bug: {}\n{}\n", bug.inner.styled_message().iter().filter_map(|(msg, _)| msg.as_str()).collect::<String>(), &bug.note ); |
