Skip to content

Commit

Permalink
r#type -> ty
Browse files Browse the repository at this point in the history
  • Loading branch information
awaitlink committed Aug 21, 2019
1 parent a8d7ea7 commit dd7082e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/librustc_passes/loops.rs
Expand Up @@ -170,10 +170,10 @@ impl<'a, 'hir> CheckLoopVisitor<'a, 'hir> {
}

fn require_break_cx(&self, name: &str, span: Span) {
let err_inside_of = |article, r#type, closure_span| {
struct_span_err!(self.sess, span, E0267, "`{}` inside of {} {}", name, article, r#type)
.span_label(span, format!("cannot `{}` inside of {} {}", name, article, r#type))
.span_label(closure_span, &format!("enclosing {}", r#type))
let err_inside_of = |article, ty, closure_span| {
struct_span_err!(self.sess, span, E0267, "`{}` inside of {} {}", name, article, ty)
.span_label(span, format!("cannot `{}` inside of {} {}", name, article, ty))
.span_label(closure_span, &format!("enclosing {}", ty))
.emit();
};

Expand Down

0 comments on commit dd7082e

Please sign in to comment.