Skip to content

Commit eba2ae5

Browse files
committed
WIP: wfcheck ability to detect
1 parent 904a0bd commit eba2ae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/wfcheck.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ fn receiver_is_valid<'fcx, 'tcx, 'gcx>(
873873
trait_ref.to_predicate()
874874
);
875875

876-
if !fcx.predicate_must_hold(&obligation) {
876+
if !fcx.predicate_must_hold_modulo_regions(&obligation) {
877877
debug!("receiver_is_valid: type `{:?}` does not implement `Receiver` trait",
878878
receiver_ty);
879879
return false

0 commit comments

Comments
 (0)