]> git.lizzy.rs Git - rust.git/commit
Inline and remove `validate_int_literal`.
authorNicholas Nethercote <n.nethercote@gmail.com>
Thu, 3 Nov 2022 23:02:29 +0000 (10:02 +1100)
committerNicholas Nethercote <n.nethercote@gmail.com>
Fri, 4 Nov 2022 03:24:41 +0000 (14:24 +1100)
commita203482d2a20cba0c86298334ebd74438bd477ba
tree33ce0a61da56470c5a5242eca33f887b64fc1656
parentd963686f5a87b9eaa2ac2bdc29ddb796e0e83f1f
Inline and remove `validate_int_literal`.

It has a single callsite, and is fairly small. The `Float` match arm
already has base-specific checking inline, so this makes things more
consistent.
compiler/rustc_lexer/src/lib.rs
compiler/rustc_parse/src/lexer/mod.rs