1
Fork 0
rust/compiler/rustc_hir_analysis/src
Matthias Krüger 214d6b6836
Rollup merge of #99801 - Neo-Zhixing:fix/generic_const_exprs_parent_opaque_predicates, r=oli-obk
fix(generic_const_exprs): Fix predicate inheritance for children of opaque types

Fixes #99705

We currently have a special case to perform predicate inheritance when the const item is in the generics. I think we're also going to need this for opaque return types. When evaluating the predicates applied to the associated item, it'll inherit from its parent, the opaque type, which will never have predicates applied. This PR bypass the opaque typed parent and inherit predicates directly from the function itself.
2022-11-02 22:06:26 +01:00
..
astconv Use LanguageItems::require less 2022-10-29 16:04:10 -05:00
check Auto merge of #103590 - compiler-errors:ocx-more, r=lcnr 2022-11-01 12:15:10 +00:00
coherence Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
collect fix(generic_const_exprs): Fix predicate inheritance for children of opaque types 2022-11-01 15:41:16 -07:00
impl_wf_check Fix compiler docs 2022-10-10 18:28:29 +02:00
outlives Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
structured_errors rustc_typeck to rustc_hir_analysis 2022-09-27 10:37:23 +02:00
variance Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
bounds.rs rustc_typeck to rustc_hir_analysis 2022-09-27 10:37:23 +02:00
check_unused.rs Rollup merge of #103618 - nnethercote:rename-OwnerId-fields, r=compiler-errors 2022-10-29 14:18:03 +02:00
collect.rs Rollup merge of #103759 - cjgillot:adt-collect, r=davidtwco 2022-11-01 14:12:27 +05:30
constrained_generic_params.rs Fix compiler docs 2022-10-10 18:28:29 +02:00
errors.rs Rollup merge of #103575 - Xiretza:suggestions-style-attr, r=davidtwco 2022-11-01 20:00:38 -04:00
hir_wf_check.rs Rollup merge of #102829 - compiler-errors:rename-impl-item-kind, r=TaKO8Ki 2022-10-10 00:09:42 +09:00
impl_wf_check.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
lib.rs Rollup merge of #97971 - Soveu:varargs, r=jackh726 2022-10-30 19:31:36 -07:00
structured_errors.rs rustc_typeck to rustc_hir_analysis 2022-09-27 10:37:23 +02:00