diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-01-12 12:07:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-12 12:07:58 +0100 |
| commit | b53239668a016cb5f94f8b38fe1fa7fc33e4d869 (patch) | |
| tree | bbf401db45c6ea31dc14818127e1c1ac4244c1a6 /compiler/rustc_codegen_gcc | |
| parent | 988137c040d851df2715d48d1099d456c401f6d1 (diff) | |
| parent | 85c9ce6d79232e8798846cc43d01a077fbee46e3 (diff) | |
| download | rust-b53239668a016cb5f94f8b38fe1fa7fc33e4d869.tar.gz rust-b53239668a016cb5f94f8b38fe1fa7fc33e4d869.zip | |
Rollup merge of #135378 - compiler-errors:unnecessary-stashing, r=chenyukang
Remove a bunch of diagnostic stashing that doesn't do anything #121669 removed a bunch of conditional diagnostic stashing/canceling, but left around the `steal` calls which just emitted the error eagerly instead of canceling the diagnostic. I think that these no-op `steal` calls don't do much and are confusing to encounter, so let's remove them. The net effect is: 1. We emit more duplicated errors, since stashing has the side effect of duplicating diagnostics. This is not a big deal, since outside of `-Zdeduplicate-diagnostics=no`, the errors are already being deduplicated by the compiler. 2. It changes the order of diagnostics, since we're no longer stashing and then later stealing the errors. I don't think this matters much for the changes that the UI test suite manifests, and it makes these errors less order dependent.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
