avoid overlapping privacy suggestion for single nested imports

This commit is contained in:
bohan 2024-02-17 00:55:35 +08:00
parent 09bc67b915
commit 7303014381
6 changed files with 81 additions and 25 deletions

View file

@ -729,6 +729,8 @@ struct PrivacyError<'a> {
dedup_span: Span,
outermost_res: Option<(Res, Ident)>,
parent_scope: ParentScope<'a>,
/// Is the format `use a::{b,c}`?
single_nested: bool,
}
#[derive(Debug)]