Reformatting

This commit is contained in:
Tom Martin
2023-06-19 16:21:33 +01:00
parent c07b50a213
commit db613750a9

View File

@@ -2247,9 +2247,11 @@ impl<'a: 'ast, 'b, 'ast, 'tcx> LateResolutionVisitor<'a, 'b, 'ast, 'tcx> {
let report_error = |this: &Self, ns| { let report_error = |this: &Self, ns| {
if this.should_report_errs() { if this.should_report_errs() {
let what = if ns == TypeNS { "type parameters" } else { "local variables" }; let what = if ns == TypeNS { "type parameters" } else { "local variables" };
this.r
let err = ImportsCannotReferTo { span: ident.span, what }; .tcx
this.r.tcx.sess.create_err(err).emit(); .sess
.create_err(ImportsCannotReferTo { span: ident.span, what })
.emit();
} }
}; };