Skip to content

Commit 5ddda3f

Browse files
nikomatsakisdavidtwco
authored andcommitted
rename ToLocations to NormalizeLocation
1 parent e100ce4 commit 5ddda3f

File tree

1 file changed

+4
-4
lines changed
  • src/librustc_mir/borrow_check/nll/type_check

1 file changed

+4
-4
lines changed

src/librustc_mir/borrow_check/nll/type_check/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ impl<'a, 'gcx, 'tcx> TypeChecker<'a, 'gcx, 'tcx> {
16141614
}
16151615
}
16161616

1617-
fn normalize<T>(&mut self, value: T, location: impl ToLocations) -> T
1617+
fn normalize<T>(&mut self, value: T, location: impl NormalizeLocation) -> T
16181618
where
16191619
T: type_op::normalize::Normalizable<'gcx, 'tcx> + Copy,
16201620
{
@@ -1701,17 +1701,17 @@ impl AtLocation for Location {
17011701
}
17021702
}
17031703

1704-
trait ToLocations: fmt::Debug + Copy {
1704+
trait NormalizeLocation: fmt::Debug + Copy {
17051705
fn to_locations(self) -> Locations;
17061706
}
17071707

1708-
impl ToLocations for Locations {
1708+
impl NormalizeLocation for Locations {
17091709
fn to_locations(self) -> Locations {
17101710
self
17111711
}
17121712
}
17131713

1714-
impl ToLocations for Location {
1714+
impl NormalizeLocation for Location {
17151715
fn to_locations(self) -> Locations {
17161716
self.at_self()
17171717
}

0 commit comments

Comments
 (0)