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.
This commit is contained in:
Matthias Krüger 2023-09-20 09:24:31 +02:00 committed by GitHub
commit af36ab1a8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!(),