Remove unnecessary RegionKind::
quals.
The variant names are exported, so we can use them directly (possibly with a `ty::` qualifier). Lots of places already do this, this commit just increases consistency.
This commit is contained in:
parent
7024dc523a
commit
7eb15509ce
10 changed files with 56 additions and 71 deletions
|
@ -106,7 +106,7 @@ impl<'a, 'tcx> ConstraintConversion<'a, 'tcx> {
|
|||
// verifying these bounds.
|
||||
if t1.has_placeholders() {
|
||||
t1 = tcx.fold_regions(t1, &mut false, |r, _| match *r {
|
||||
ty::RegionKind::RePlaceholder(placeholder) => {
|
||||
ty::RePlaceholder(placeholder) => {
|
||||
self.constraints.placeholder_region(self.infcx, placeholder)
|
||||
}
|
||||
_ => r,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue