rust/compiler/rustc_hir_analysis/src
许杰友 Jieyou Xu (Joe) 5df9a9f45c
Rollup merge of #137298 - compiler-errors:mir-wf, r=lcnr
Check signature WF when lowering MIR body

Alternative to #137233.

https://github.com/rust-lang/rust/pull/137233#issuecomment-2667879143

Fixes https://github.com/rust-lang/rust/issues/137186

We do this check in `mir_drops_elaborated_and_const_checked` and not during `mir_promoted` because that may result in borrowck cycles if WF requires looking into an opaque hidden type. This causes some TAIT tests to fail unnecessarily.

r? lcnr

try-job: test-various
2025-03-05 21:46:39 +08:00
..
check Don't typeck during WF, instead check outside of WF in check_crate 2025-03-03 23:09:42 +00: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