mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 06:03:58 +00:00
use visibility to check unused imports and delete some stmts
This commit is contained in:
parent
bcfc997eac
commit
d20471334f
3 changed files with 1 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
mod generated;
|
mod generated;
|
||||||
|
|
||||||
#[allow(unreachable_pub)]
|
#[allow(unreachable_pub)]
|
||||||
pub use self::generated::{SyntaxKind, T};
|
pub use self::generated::SyntaxKind;
|
||||||
|
|
||||||
impl From<u16> for SyntaxKind {
|
impl From<u16> for SyntaxKind {
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -450,7 +450,6 @@ fn generate_syntax_kinds(grammar: KindsSrc<'_>) -> String {
|
||||||
[ident] => { $crate::SyntaxKind::IDENT };
|
[ident] => { $crate::SyntaxKind::IDENT };
|
||||||
[shebang] => { $crate::SyntaxKind::SHEBANG };
|
[shebang] => { $crate::SyntaxKind::SHEBANG };
|
||||||
}
|
}
|
||||||
pub use T;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
sourcegen::add_preamble("sourcegen_ast", sourcegen::reformat(ast.to_string()))
|
sourcegen::add_preamble("sourcegen_ast", sourcegen::reformat(ast.to_string()))
|
||||||
|
|
Loading…
Reference in a new issue