about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-11-11 10:32:49 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2022-11-11 10:32:49 +0000
commit6c95805a34a1a3a9c52a3bea7f680373ee07290c (patch)
treecdd984f1937d2ca374f8484d6f5d311376acda39
parent60892e8b1da1f810c050ea25fdd21c0da64fe025 (diff)
downloadrust-6c95805a34a1a3a9c52a3bea7f680373ee07290c.tar.gz
rust-6c95805a34a1a3a9c52a3bea7f680373ee07290c.zip
Clean-up formatting.
-rw-r--r--compiler/rustc_hir_analysis/src/collect/lifetimes.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/compiler/rustc_hir_analysis/src/collect/lifetimes.rs b/compiler/rustc_hir_analysis/src/collect/lifetimes.rs
index 895f32114dc..6ee7aa9cdac 100644
--- a/compiler/rustc_hir_analysis/src/collect/lifetimes.rs
+++ b/compiler/rustc_hir_analysis/src/collect/lifetimes.rs
@@ -693,8 +693,7 @@ impl<'a, 'tcx> Visitor<'tcx> for LifetimeContext<'a, 'tcx> {
                             self.tcx.sess,
                             lifetime.span,
                             E0657,
-                            "`impl Trait` can only capture lifetimes \
-                                    bound at the fn or impl level"
+                            "`impl Trait` can only capture lifetimes bound at the fn or impl level"
                         )
                         .emit();
                         self.uninsert_lifetime_on_error(lifetime, def.unwrap());
@@ -704,9 +703,9 @@ impl<'a, 'tcx> Visitor<'tcx> for LifetimeContext<'a, 'tcx> {
                     }) = self.tcx.hir().get(parent_id)
                     {
                         let mut err = self.tcx.sess.struct_span_err(
-                                lifetime.span,
-                                "higher kinded lifetime bounds on nested opaque types are not supported yet",
-                            );
+                            lifetime.span,
+                            "higher kinded lifetime bounds on nested opaque types are not supported yet",
+                        );
                         err.span_note(self.tcx.def_span(def_id), "lifetime declared here");
                         err.emit();
                         self.uninsert_lifetime_on_error(lifetime, def.unwrap());