Auto merge of #116033 - bvanjoi:fix-116032, r=petrochenkov

report `unused_import` for empty reexports even it is pub

Fixes #116032

An easy fix. r? `@petrochenkov`

(Discovered this issue while reviewing #115993.)
This commit is contained in:
bors 2023-10-23 20:24:09 +00:00
commit 0bfaecaff0
3 changed files with 1 additions and 3 deletions

View file

@ -4,7 +4,7 @@
mod generated;
#[allow(unreachable_pub)]
pub use self::generated::{SyntaxKind, T};
pub use self::generated::SyntaxKind;
impl From<u16> for SyntaxKind {
#[inline]

File diff suppressed because one or more lines are too long

View file

@ -450,7 +450,6 @@ fn generate_syntax_kinds(grammar: KindsSrc<'_>) -> String {
[ident] => { $crate::SyntaxKind::IDENT };
[shebang] => { $crate::SyntaxKind::SHEBANG };
}
pub use T;
};
sourcegen::add_preamble("sourcegen_ast", sourcegen::reformat(ast.to_string()))