num-traits/bigint/src
Josh Stone 0b6cae0dc7 bigint: Create the parsing error better for nested `+`
If a `+` is encountered in the middle of parsing a BigUint, this should
generate an `ParseIntError::InvalidDigit`.  Since we can't create that
directly, we get it by trying to parse a `u64` from this point, but of
course `+` is a perfectly valid prefix to a `u64`.

Now we include the previous character in the string passed to `u64`, so
it has proper parsing context to understand what's in error.

Fixes #268.
2017-03-06 13:23:40 -08:00
..
tests bigint: Create the parsing error better for nested `+` 2017-03-06 13:23:40 -08:00
algorithms.rs Minor, style and comment typo 2016-10-05 18:47:30 +03:00
bigint.rs bigint: Cleanup unused imports 2017-03-06 13:20:30 -08:00
biguint.rs bigint: Create the parsing error better for nested `+` 2017-03-06 13:23:40 -08:00
lib.rs Use the integer32 playground 2016-11-02 19:51:10 +01:00
macros.rs bigint: Break out into multiple files 2016-07-18 15:56:03 -08:00