ty.flags -> ty.flags()

This commit is contained in:
LeSeulArtichaut 2020-08-06 17:49:46 +02:00
parent 085e417087
commit 4d28a82c59
8 changed files with 23 additions and 11 deletions

View file

@ -708,7 +708,7 @@ where
fn visit_ty(&mut self, ty: Ty<'tcx>) -> bool {
// We're only interested in types involving regions
if !ty.flags.intersects(ty::TypeFlags::HAS_FREE_REGIONS) {
if !ty.flags().intersects(ty::TypeFlags::HAS_FREE_REGIONS) {
return false; // keep visiting
}