WIP: wfcheck ability to detect
This commit is contained in:
parent
904a0bde93
commit
eba2ae526b
1 changed files with 1 additions and 1 deletions
|
|
@ -873,7 +873,7 @@ fn receiver_is_valid<'fcx, 'tcx, 'gcx>(
|
|||
trait_ref.to_predicate()
|
||||
);
|
||||
|
||||
if !fcx.predicate_must_hold(&obligation) {
|
||||
if !fcx.predicate_must_hold_modulo_regions(&obligation) {
|
||||
debug!("receiver_is_valid: type `{:?}` does not implement `Receiver` trait",
|
||||
receiver_ty);
|
||||
return false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue