mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
WIP: wfcheck ability to detect
This commit is contained in:
parent
904a0bde93
commit
eba2ae526b
@ -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…
Reference in New Issue
Block a user