Skip to content

Commit 3d1085c

Browse files
committed
Inherent associated types are unstable, so we change their behaviour to match the new solver's
1 parent cd5bf6e commit 3d1085c

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_trait_selection/src/traits

1 file changed

+1
-1
lines changed

compiler/rustc_trait_selection/src/traits/project.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ pub fn compute_inherent_assoc_ty_args<'a, 'b, 'tcx>(
642642
);
643643
}
644644

645-
match selcx.infcx.at(&cause, param_env).eq(DefineOpaqueTypes::No, impl_ty, self_ty) {
645+
match selcx.infcx.at(&cause, param_env).eq(DefineOpaqueTypes::Yes, impl_ty, self_ty) {
646646
Ok(mut ok) => obligations.append(&mut ok.obligations),
647647
Err(_) => {
648648
tcx.dcx().span_delayed_bug(

0 commit comments

Comments
 (0)