rust/compiler/rustc_hir_analysis/src
许杰友 Jieyou Xu (Joe) 6c60abf51a
Rollup merge of #137633 - compiler-errors:no-implied-bounds-hack-unless-bevy, r=lcnr
Only use implied bounds hack if bevy, and use deeply normalize in implied bounds hack

Consolidates the implied bounds computation mode into a single function, which deeply normalizes, and if it's in **compat** mode (for bevy), it extracts outlives bounds from the infcx.

Previously, we were using the implied bounds compat mode in two cases:
1. During WF, if it detects `ParamSet`
2. EVERYWHERE ELSE (lol) -- e.g. borrowck, predicate entailment, etc.

While I think this is fine, and the net effect was just that we emitted fewer diagnostics, it makes me uncomfortable that all crates were using the supposed "compat" code.

Fixes #137767
2025-03-05 21:46:42 +08:00
..
check Rollup merge of #137633 - compiler-errors:no-implied-bounds-hack-unless-bevy, r=lcnr 2025-03-05 21:46:42 +08:00
coherence Rollup merge of #137289 - compiler-errors:coerce-unsized-errors, r=oli-obk 2025-02-24 19:21:45 -05:00
collect Allow struct field default values to reference struct's generics 2025-03-04 01:00:55 +00:00
errors Move methods from Map to TyCtxt, part 3. 2025-02-21 14:31:09 +11:00
hir_ty_lowering mgca: Lower all const paths as ConstArgKind::Path 2025-03-04 10:11:13 -05:00
impl_wf_check Fix a comment typo. 2025-01-31 08:28:14 +11:00
outlives Move methods from Map to TyCtxt, part 3. 2025-02-21 14:31:09 +11:00
variance hir_analysis: skip self type of host effect preds 2025-02-24 10:19:16 +00:00
autoderef.rs Rename structurally_normalize to structurally_normalize_ty 2025-01-22 07:04:53 +00:00
check_unused.rs Move methods from Map to TyCtxt, part 2. 2025-02-18 10:17:44 +11:00
collect.rs mgca: Lower all const paths as ConstArgKind::Path 2025-03-04 10:11:13 -05: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 Rustfmt 2025-02-08 22:12:13 +00:00
errors.rs Don't require method impls for methods with Self:Sized bounds for impls for unsized types 2025-02-25 08:06:30 +00:00
hir_wf_check.rs Move methods from Map to TyCtxt, part 2. 2025-02-18 10:17:44 +11:00
impl_wf_check.rs Rename tcx.ensure() to tcx.ensure_ok() 2025-02-01 12:38:54 +11:00
lib.rs Don't typeck during WF, instead check outside of WF in check_crate 2025-03-03 23:09:42 +00:00