rust/compiler/rustc_hir_analysis/src
Matthias Krüger 663da00876
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
2024-10-12 23:00:56 +02:00
..
check Rollup merge of #128784 - tdittr:check-abi-on-fn-ptr, r=compiler-errors 2024-10-12 23:00:55 +02:00
coherence Rollup merge of #131475 - fmease:compiler-mv-obj-safe-dyn-compat-2, r=jieyouxu 2024-10-10 22:00:50 +02:00
collect Simplify bound var resolution. 2024-10-04 23:44:27 +00:00
errors Clarify implicit captures for RPITIT 2024-10-10 11:46:51 -07:00
hir_ty_lowering Rollup merge of #131239 - VulnBandit:trait-vulnerability, r=lcnr 2024-10-12 23:00:56 +02:00
impl_wf_check Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
outlives Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
variance Add variances to RPITITs 2024-10-10 11:46:48 -07:00
autoderef.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
bounds.rs properly elaborate effects implied bounds for super traits 2024-09-27 22:36:46 +08:00
check_unused.rs Remove #[macro_use] extern crate tracing from rustc_hir_analysis. 2024-08-30 17:14:59 +10:00
collect.rs Auto merge of #131045 - compiler-errors:remove-unnamed_fields, r=wesleywiser 2024-10-11 13:11:13 +00:00
constrained_generic_params.rs Remove #[macro_use] extern crate tracing from rustc_hir_analysis. 2024-08-30 17:14:59 +10:00
delegation.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
errors.rs Remove unnamed field feature 2024-10-01 13:55:46 -04:00
hir_wf_check.rs Remove #[macro_use] extern crate tracing from rustc_hir_analysis. 2024-08-30 17:14:59 +10:00
impl_wf_check.rs Add warn(unreachable_pub) to rustc_hir_analysis. 2024-08-27 13:14:50 +10:00
lib.rs Rollup merge of #130518 - scottmcm:stabilize-controlflow-extra, r=dtolnay 2024-10-04 14:11:34 -07:00