Clean-up formatting.
This commit is contained in:
parent
60892e8b1d
commit
6c95805a34
1 changed files with 4 additions and 5 deletions
|
@ -693,8 +693,7 @@ impl<'a, 'tcx> Visitor<'tcx> for LifetimeContext<'a, 'tcx> {
|
||||||
self.tcx.sess,
|
self.tcx.sess,
|
||||||
lifetime.span,
|
lifetime.span,
|
||||||
E0657,
|
E0657,
|
||||||
"`impl Trait` can only capture lifetimes \
|
"`impl Trait` can only capture lifetimes bound at the fn or impl level"
|
||||||
bound at the fn or impl level"
|
|
||||||
)
|
)
|
||||||
.emit();
|
.emit();
|
||||||
self.uninsert_lifetime_on_error(lifetime, def.unwrap());
|
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)
|
}) = self.tcx.hir().get(parent_id)
|
||||||
{
|
{
|
||||||
let mut err = self.tcx.sess.struct_span_err(
|
let mut err = self.tcx.sess.struct_span_err(
|
||||||
lifetime.span,
|
lifetime.span,
|
||||||
"higher kinded lifetime bounds on nested opaque types are not supported yet",
|
"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.span_note(self.tcx.def_span(def_id), "lifetime declared here");
|
||||||
err.emit();
|
err.emit();
|
||||||
self.uninsert_lifetime_on_error(lifetime, def.unwrap());
|
self.uninsert_lifetime_on_error(lifetime, def.unwrap());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue