We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is_empty
Ident::is_numeric
1 parent 85d2d84 commit c309065Copy full SHA for c309065
compiler/rustc_span/src/symbol.rs
@@ -2823,7 +2823,7 @@ impl Ident {
2823
/// Whether this would be the identifier for a tuple field like `self.0`, as
2824
/// opposed to a named field like `self.thing`.
2825
pub fn is_numeric(self) -> bool {
2826
- !self.name.is_empty() && self.as_str().bytes().all(|b| b.is_ascii_digit())
+ self.as_str().bytes().all(|b| b.is_ascii_digit())
2827
}
2828
2829
0 commit comments