about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-09-20 09:24:31 +0200
committerGitHub <noreply@github.com>2023-09-20 09:24:31 +0200
commitaf36ab1a8e4803375e75a78253726f2e9b4dae7b (patch)
treea9b12a7b5dd2ed7791012fdf6323df9d59e0d3b0 /compiler
parent24fc0984133e0654390fe524c9a3f1df2a46e7d4 (diff)
parent2243872c26ae414d492d844a1cd03d42884008bc (diff)
downloadrust-af36ab1a8e4803375e75a78253726f2e9b4dae7b.tar.gz
rust-af36ab1a8e4803375e75a78253726f2e9b4dae7b.zip
Rollup merge of #115983 - eopb:confusing-if-chain-indent, r=compiler-errors
fix confusing let chain indentation in rustc_resolve

Sorry for opening a PR for such a minor style fix.
This just felt sufficiently misleading to warrant fixing.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_resolve/src/imports.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_resolve/src/imports.rs b/compiler/rustc_resolve/src/imports.rs
index 820ac9ef61b..d271519a8a3 100644
--- a/compiler/rustc_resolve/src/imports.rs
+++ b/compiler/rustc_resolve/src/imports.rs
@@ -991,9 +991,9 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
                     if !is_prelude
                     && let Some(max_vis) = max_vis.get()
                     && !max_vis.is_at_least(import.expect_vis(), self.tcx)
-                {
-                    self.lint_buffer.buffer_lint(UNUSED_IMPORTS, id, import.span, fluent::resolve_glob_import_doesnt_reexport);
-                }
+                    {
+                        self.lint_buffer.buffer_lint(UNUSED_IMPORTS, id, import.span, fluent::resolve_glob_import_doesnt_reexport);
+                    }
                     return None;
                 }
                 _ => unreachable!(),