Update from TyKind::Anon to TyKind::Opaque

This commit is contained in:
David Wood 2018-09-13 12:07:23 +02:00
parent 37e18b1c51
commit 18c1374bf8
No known key found for this signature in database
GPG key ID: 01760B4F9F53F154

View file

@ -489,7 +489,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
Some(ty::RegionKind::ReStatic)
) = (self.to_error_region(fr), self.to_error_region(outlived_fr)) {
if let Some(ty::TyS {
sty: ty::TyKind::Anon(did, substs),
sty: ty::TyKind::Opaque(did, substs),
..
}) = infcx.tcx.is_suitable_region(f)
.map(|r| r.def_id)