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>2024-07-16 18:09:12 +0200
committerGitHub <noreply@github.com>2024-07-16 18:09:12 +0200
commit8fd1df8c5f8d8928a4957585c3e56047e0a796a7 (patch)
tree59802cdff7b142a5a9912035c69b840bce8053e6 /compiler/rustc_codegen_gcc
parent2876b1bb881760b1a70995be1b83666d45511be7 (diff)
parent53f7f8ce5cb01a4bdef70b0bdb4aa812fe548ce7 (diff)
downloadrust-8fd1df8c5f8d8928a4957585c3e56047e0a796a7.tar.gz
rust-8fd1df8c5f8d8928a4957585c3e56047e0a796a7.zip
Rollup merge of #127808 - oli-obk:tainting_visitors2, r=lcnr,nnethercote
Make ErrorGuaranteed discoverable outside types, consts, and lifetimes

types like `PatKind` could contain `ErrorGuaranteed`, but not return them via `tainted_by_errors` or `error_reported` (see https://github.com/rust-lang/rust/pull/127687#discussion_r1679027883). Now this happens, but it's a bit fragile as you can see with the `TypeSuperVisitable for Ty` impl.

We will catch any problems around Ty, Region or Const at runtime with an assert, and everything using derives will not have such issues, as it will just invoke the `TypeVisitable for ErrorGuaranteed` impl
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions