提交 eba2ae52 编写于 作者: N Niko Matsakis

WIP: wfcheck ability to detect

上级 904a0bde
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册