about summary refs log tree commit diff
path: root/src/libsyntax/parse/lexer
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-15 18:34:18 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-15 18:42:47 +0530
commitf7870b6faa43a9e63b5575d5d9663457003a8ac5 (patch)
treed7cc47b3b9417d037b687c74678b1febf59d07df /src/libsyntax/parse/lexer
parent8acaaa9e0e631944ae809d3228561f7dfc44e66b (diff)
parentb1cd76906a4c7e40e3eb3569450d2dbd3be9fcab (diff)
downloadrust-f7870b6faa43a9e63b5575d5d9663457003a8ac5.tar.gz
rust-f7870b6faa43a9e63b5575d5d9663457003a8ac5.zip
Rollup merge of #22339 - petrochenkov:int, r=huonw
 Some function signatures have changed, so this is a [breaking-change].
In particular, radixes and numerical values of digits are represented by `u32` now.

Part of #22240
Diffstat (limited to 'src/libsyntax/parse/lexer')
-rw-r--r--src/libsyntax/parse/lexer/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs
index 1a4afa4957c..38ba0b38df5 100644
--- a/src/libsyntax/parse/lexer/mod.rs
+++ b/src/libsyntax/parse/lexer/mod.rs
@@ -645,7 +645,7 @@ impl<'a> StringReader<'a> {
 
     /// Scan through any digits (base `radix`) or underscores, and return how
     /// many digits there were.
-    fn scan_digits(&mut self, radix: usize) -> usize {
+    fn scan_digits(&mut self, radix: u32) -> usize {
         let mut len = 0;
         loop {
             let c = self.curr;