Skip to content

Commit af36ab1

Browse files
authored
Rollup merge of rust-lang#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.
2 parents 24fc098 + 2243872 commit af36ab1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_resolve/src/imports.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -991,9 +991,9 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
991991
if !is_prelude
992992
&& let Some(max_vis) = max_vis.get()
993993
&& !max_vis.is_at_least(import.expect_vis(), self.tcx)
994-
{
995-
self.lint_buffer.buffer_lint(UNUSED_IMPORTS, id, import.span, fluent::resolve_glob_import_doesnt_reexport);
996-
}
994+
{
995+
self.lint_buffer.buffer_lint(UNUSED_IMPORTS, id, import.span, fluent::resolve_glob_import_doesnt_reexport);
996+
}
997997
return None;
998998
}
999999
_ => unreachable!(),

0 commit comments

Comments
 (0)