mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
parent
b3ef934ccb
commit
25242fe93f
395 changed files with 14569 additions and 5755 deletions
|
@ -196,7 +196,7 @@ pub(crate) fn validate_block_structure(root: &SyntaxNode) {
|
|||
|
||||
fn validate_numeric_name(name_ref: Option<ast::NameRef>, errors: &mut Vec<SyntaxError>) {
|
||||
if let Some(int_token) = int_token(name_ref) {
|
||||
if int_token.text().chars().any(|c| !c.is_digit(10)) {
|
||||
if int_token.text().chars().any(|c| !c.is_ascii_digit()) {
|
||||
errors.push(SyntaxError::new(
|
||||
"Tuple (struct) field access is only allowed through \
|
||||
decimal integers with no underscores or suffix",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue