We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eaeda23 commit c3947a0Copy full SHA for c3947a0
compiler/rustc_lexer/src/lib.rs
@@ -606,7 +606,7 @@ impl Cursor<'_> {
606
607
/// Parses a number and in `.1` returns the offset of the literal suffix
608
/// (this will be at the end of the token if there is no suffix)
609
- fn number(&mut self, first_digit: char) -> (LiteralKind, u32) {
+ fn number(&mut self, first_digit: char) -> (LiteralKind, Option<u32>) {
610
debug_assert!('0' <= self.prev() && self.prev() <= '9');
611
let mut base = Base::Decimal;
612
if first_digit == '0' {
0 commit comments