about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/back/write.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-11-26 12:03:44 -0500
committerGitHub <noreply@github.com>2024-11-26 12:03:44 -0500
commitb0ed5ac730575b3453d1c24e1ebf9710abeff31f (patch)
treef2d3b8eaf6bb2cb56a86aa3b648a55f191c4b55d /compiler/rustc_codegen_llvm/src/back/write.rs
parentcf097188763cdf883478b4c1f46813e0e7783caf (diff)
parentcfa8fcbf581c8c311e079b04517cbe979d9beb7b (diff)
downloadrust-b0ed5ac730575b3453d1c24e1ebf9710abeff31f.tar.gz
rust-b0ed5ac730575b3453d1c24e1ebf9710abeff31f.zip
Rollup merge of #133394 - compiler-errors:dyn-more-errors, r=lcnr
Bail on more errors in dyn ty lowering

If we have more than one principal trait, or if we have a principal trait with errors in it, then bail with `TyKind::Error` rather than attempting lowering. Lowering a dyn trait with more than one principal just arbitrarily chooses the first one and drops the subsequent ones, and lowering a dyn trait path with errors in it is just kinda useless.

This suppresses unnecessary errors which I think is net-good, but also is important to make sure that we don't end up leaking `{type error}` in https://github.com/rust-lang/rust/issues/133388 error messaging :)

r? types
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back/write.rs')
0 files changed, 0 insertions, 0 deletions