diff options
| author | Tom Martin <tom.martin1239@gmail.com> | 2023-06-19 16:21:33 +0100 |
|---|---|---|
| committer | Tom Martin <tom.martin1239@gmail.com> | 2023-06-19 16:21:33 +0100 |
| commit | db613750a91215a89ac25fd65cdaef02df2f73d5 (patch) | |
| tree | 6ddaf40f078fcaf80de3525faeace386b09c00f0 | |
| parent | c07b50a2137277a518799de3e5755cd52b9ab959 (diff) | |
| download | rust-db613750a91215a89ac25fd65cdaef02df2f73d5.tar.gz rust-db613750a91215a89ac25fd65cdaef02df2f73d5.zip | |
Reformatting
| -rw-r--r-- | compiler/rustc_resolve/src/late.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/compiler/rustc_resolve/src/late.rs b/compiler/rustc_resolve/src/late.rs index e700e8c9ce0..9f4573ea025 100644 --- a/compiler/rustc_resolve/src/late.rs +++ b/compiler/rustc_resolve/src/late.rs @@ -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(); } }; |
