1
Fork 0

Fix rustdoc crash when 'static bound appears in struct declaration

This commit is contained in:
Aaron Hill 2018-06-22 22:25:56 -04:00
parent 76aeeefdc2
commit bff08f2731
No known key found for this signature in database
GPG key ID: B4087E510E98B164
2 changed files with 22 additions and 2 deletions

View file

@ -642,8 +642,8 @@ impl<'a, 'tcx, 'rcx> AutoTraitFinder<'a, 'tcx, 'rcx> {
name: name.to_string(),
kind: GenericParamDefKind::Lifetime,
})
}
&ty::ReVar(_) | &ty::ReEarlyBound(_) => None,
},
&ty::ReVar(_) | &ty::ReEarlyBound(_) | &ty::ReStatic => None,
_ => panic!("Unexpected region type {:?}", r),
}
})