]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/infer/error_reporting/nice_region_error/placeholder_error.rs
Run `rustfmt --file-lines ...` for changes from previous commits.
[rust.git] / src / librustc / infer / error_reporting / nice_region_error / placeholder_error.rs
index c9bda63aa75ccf0c8e0ac32b9bb1d015a94a28cb..8631236c0e36e8c2f1aa3fd00c4c3188233a640d 100644 (file)
@@ -322,7 +322,7 @@ fn explain_actual_impl_that_was_found(
         // HACK(eddyb) maybe move this in a more central location.
         #[derive(Copy, Clone)]
         struct Highlighted<'gcx, 'tcx, T> {
-            tcx: TyCtxt<'tcx, 'gcx, 'tcx>,
+            tcx: TyCtxt<'gcx, 'tcx>,
             highlight: RegionHighlightMode,
             value: T,
         }
@@ -338,7 +338,10 @@ fn map<U>(self, f: impl FnOnce(T) -> U) -> Highlighted<'gcx, 'tcx, U> {
         }
 
         impl<'gcx, 'tcx, T> fmt::Display for Highlighted<'gcx, 'tcx, T>
-            where T: for<'a, 'b, 'c> Print<'gcx, 'tcx,
+        where
+            T: for<'a, 'b, 'c> Print<
+                'gcx,
+                'tcx,
                 FmtPrinter<'a, 'gcx, 'tcx, &'b mut fmt::Formatter<'c>>,
                 Error = fmt::Error,
             >,