diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-10-12 23:00:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-12 23:00:56 +0200 |
| commit | 663da008760a0f6d38dbd5e7db4c9bb67fa64798 (patch) | |
| tree | e00227c79ce27f089aa3e4afd0ab0de99f6bad56 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | ba75f2488818a053bf388afff4211cb8eca72ff5 (diff) | |
| parent | 9a2772e1c2d6e770e13716d4691bc0a943cd7d61 (diff) | |
| download | rust-663da008760a0f6d38dbd5e7db4c9bb67fa64798.tar.gz rust-663da008760a0f6d38dbd5e7db4c9bb67fa64798.zip | |
Rollup merge of #131239 - VulnBandit:trait-vulnerability, r=lcnr
Don't assume traits used as type are trait objs in 2021 edition Fixes #127548 When you use a trait as a type, the compiler automatically assumes you meant to use a trait object, which is not always the case. This PR fixes the bug where you don't need a trait object, so the error message was changed to: ``` error[E0782]: expected a type, found a trait ``` Also fixes some ICEs: Fixes https://github.com/rust-lang/rust/issues/120241 Fixes https://github.com/rust-lang/rust/issues/120482 Fixes https://github.com/rust-lang/rust/issues/125512
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
