Reformatting

This commit is contained in:
Tom Martin 2023-06-19 16:21:33 +01:00
parent c07b50a213
commit db613750a9
No known key found for this signature in database
GPG Key ID: 73A733F9629F5AC5

View File

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