about summary refs log tree commit diff
path: root/compiler/rustc_infer
diff options
context:
space:
mode:
authorBastian Kauschke <bastian_kauschke@hotmail.de>2020-10-16 21:59:49 +0200
committerBastian Kauschke <bastian_kauschke@hotmail.de>2020-10-21 23:59:35 +0200
commit8752a560b9f50e04c38ab75e2b5c37d03d3214d9 (patch)
tree3b02e3fbd070774813f058c6c7b240ae5fba1c42 /compiler/rustc_infer
parent1d2726726f8f3128e98191e4c6cb94bd76d0ddd4 (diff)
downloadrust-8752a560b9f50e04c38ab75e2b5c37d03d3214d9.tar.gz
rust-8752a560b9f50e04c38ab75e2b5c37d03d3214d9.zip
Lift: take self by value
Diffstat (limited to 'compiler/rustc_infer')
-rw-r--r--compiler/rustc_infer/src/infer/free_regions.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_infer/src/infer/free_regions.rs b/compiler/rustc_infer/src/infer/free_regions.rs
index ffe5fb172be..32f73237dd4 100644
--- a/compiler/rustc_infer/src/infer/free_regions.rs
+++ b/compiler/rustc_infer/src/infer/free_regions.rs
@@ -157,7 +157,7 @@ impl<'tcx> FreeRegionRelations<'tcx> for FreeRegionMap<'tcx> {
 
 impl<'a, 'tcx> Lift<'tcx> for FreeRegionMap<'a> {
     type Lifted = FreeRegionMap<'tcx>;
-    fn lift_to_tcx(&self, tcx: TyCtxt<'tcx>) -> Option<FreeRegionMap<'tcx>> {
-        self.relation.maybe_map(|&fr| tcx.lift(&fr)).map(|relation| FreeRegionMap { relation })
+    fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<FreeRegionMap<'tcx>> {
+        self.relation.maybe_map(|&fr| tcx.lift(fr)).map(|relation| FreeRegionMap { relation })
     }
 }