mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Finalize const&static grammar
This commit is contained in:
parent
6b25f640a6
commit
3cd4112bdc
39 changed files with 138 additions and 137 deletions
|
@ -4,7 +4,7 @@ mod block;
|
|||
|
||||
use crate::{
|
||||
ast, match_ast, AstNode, SyntaxError,
|
||||
SyntaxKind::{BYTE, BYTE_STRING, CHAR, CONST_DEF, FN, INT_NUMBER, STRING, TYPE_ALIAS},
|
||||
SyntaxKind::{BYTE, BYTE_STRING, CHAR, CONST, FN, INT_NUMBER, STRING, TYPE_ALIAS},
|
||||
SyntaxNode, SyntaxToken, TextSize, T,
|
||||
};
|
||||
use rustc_lexer::unescape::{
|
||||
|
@ -200,7 +200,7 @@ fn validate_visibility(vis: ast::Visibility, errors: &mut Vec<SyntaxError>) {
|
|||
None => return,
|
||||
};
|
||||
match parent.kind() {
|
||||
FN | CONST_DEF | TYPE_ALIAS => (),
|
||||
FN | CONST | TYPE_ALIAS => (),
|
||||
_ => return,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue