rust/compiler/rustc_hir_analysis/src
bors 4c83bd03a9 Auto merge of #107038 - compiler-errors:dont-wfcheck-non-local-rpit, r=oli-obk
Don't wf-check non-local RPITs

We were using `ty::is_impl_trait_defn(..).is_none()` to check if we need to add WF obligations for an opaque type.

This is *supposed* to be checking if the type is a TAIT, since RPITs' wfness is implied by wf checking its parent item, but since `is_impl_trait_defn` returns `None` for non-local RPIT and async futures, we unnecessarily consider wf predicates for an RPIT if it is coming from a foreign crate.

Fixes #107036

r? `@oli-obk` but feel free to reassign
2023-01-19 16:49:06 +00:00
..
astconv Encode whether foreign opaques are TAITs or not 2023-01-19 15:45:49 +00:00
check Stop using BREAK & CONTINUE in compiler 2023-01-17 23:17:51 -08:00
coherence Stop using BREAK & CONTINUE in compiler 2023-01-17 23:17:51 -08:00
collect Rollup merge of #106970 - kylematsuda:earlybinder-item-bounds, r=lcnr 2023-01-17 20:21:28 +01:00
impl_wf_check change impl_trait_ref query to return EarlyBinder; remove bound_impl_trait_ref query; add EarlyBinder to impl_trait_ref in metadata 2023-01-14 00:29:56 -07:00
outlives even more unify Projection/Opaque in outlives code 2023-01-19 15:31:53 +03:00
structured_errors use smaller spans for missing lifetime/generic args 2023-01-06 21:55:23 +09:00
variance Rollup merge of #106931 - Ezrashaw:docs-e0208, r=compiler-errors 2023-01-19 11:19:35 +01:00
autoderef.rs Move autoderef to rustc_hir_analysis 2023-01-11 20:12:57 +00:00
bounds.rs Rework hir Bounds collection 2022-12-28 23:40:09 +00:00
check_unused.rs Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
collect.rs Encode whether foreign opaques are TAITs or not 2023-01-19 15:45:49 +00:00
constrained_generic_params.rs Stop using BREAK & CONTINUE in compiler 2023-01-17 23:17:51 -08:00
errors.rs Move autoderef to rustc_hir_analysis 2023-01-11 20:12:57 +00:00
hir_wf_check.rs Point at HIR types when impl trait ref doesn't normalize 2023-01-12 20:44:47 +00:00
impl_wf_check.rs change impl_trait_ref query to return EarlyBinder; remove bound_impl_trait_ref query; add EarlyBinder to impl_trait_ref in metadata 2023-01-14 00:29:56 -07:00
lib.rs Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
structured_errors.rs