Skip to content

Commit 3f4d6c9

Browse files
Wf is not coinductive
1 parent be181dd commit 3f4d6c9

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

compiler/rustc_trait_selection/src/traits/select/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
12421242
ty::PredicateKind::Clause(ty::ClauseKind::Trait(data)) => {
12431243
self.infcx.tcx.trait_is_coinductive(data.def_id())
12441244
}
1245-
ty::PredicateKind::Clause(ty::ClauseKind::WellFormed(_)) => true,
1245+
ty::PredicateKind::Clause(ty::ClauseKind::WellFormed(_)) => false,
12461246
_ => false,
12471247
})
12481248
}

0 commit comments

Comments
 (0)