about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-01-12 12:07:58 +0100
committerGitHub <noreply@github.com>2025-01-12 12:07:58 +0100
commitb53239668a016cb5f94f8b38fe1fa7fc33e4d869 (patch)
treebbf401db45c6ea31dc14818127e1c1ac4244c1a6 /compiler/rustc_codegen_gcc
parent988137c040d851df2715d48d1099d456c401f6d1 (diff)
parent85c9ce6d79232e8798846cc43d01a077fbee46e3 (diff)
downloadrust-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