1
Fork 0
This commit is contained in:
Ellen 2021-09-06 23:18:25 +01:00
parent 47b16f4ac9
commit c170dcf04c
3 changed files with 20 additions and 22 deletions

View file

@ -844,9 +844,9 @@ fn contains_illegal_self_type_reference<'tcx, T: TypeFoldable<'tcx>>(
self.visit_const(leaf)
}
Node::Cast(_, ty) => self.visit_ty(ty),
Node::Binop(..)
| Node::UnaryOp(..)
| Node::FunctionCall(_, _) => ControlFlow::CONTINUE,
Node::Binop(..) | Node::UnaryOp(..) | Node::FunctionCall(_, _) => {
ControlFlow::CONTINUE
}
})
} else {
ControlFlow::CONTINUE