You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thread 'parse::parse_tests::accept' panicked at 'attempt to multiply with overflow', /rustc/8b09ba6a5d5c644fe0f1c27c7f9c80b334241707/library/core/src/num/mod.rs:843:5
stack backtrace:0: rust_begin_unwind
at /rustc/8b09ba6a5d5c644fe0f1c27c7f9c80b334241707/library/std/src/panicking.rs:498:51:core::panicking::panic_fmt
at /rustc/8b09ba6a5d5c644fe0f1c27c7f9c80b334241707/library/core/src/panicking.rs:106:142:core::panicking::panic
at /rustc/8b09ba6a5d5c644fe0f1c27c7f9c80b334241707/library/core/src/panicking.rs:47:53:core::num::<implu64>::pow
at /rustc/8b09ba6a5d5c644fe0f1c27c7f9c80b334241707/library/core/src/num/uint_macros.rs:1955:134:ubyte::parse::<impl core::str::traits::FromStrfor ubyte::byte_unit::ByteUnit>::from_str
at ./src/parse.rs:77:475:ubyte::parse::parse_tests::accept
at ./src/parse.rs:183:96:ubyte::parse::parse_tests::accept::{{closure}}
at ./src/parse.rs:134:57:core::ops::function::FnOnce::call_once
at /rustc/8b09ba6a5d5c644fe0f1c27c7f9c80b334241707/library/core/src/ops/function.rs:227:58:core::ops::function::FnOnce::call_once
at /rustc/8b09ba6a5d5c644fe0f1c27c7f9c80b334241707/library/core/src/ops/function.rs:227:5
note:Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
This test should pass, but instead you get
The problem is the
.pow
inubyte/src/parse.rs
Line 77 in c3cfe51
I think this probably should be parsed successfully (as opposed to giving an error).
I'll have a look at trying to fix the arithmetic, but this kind of code is kinda hard to reason about for me.
The text was updated successfully, but these errors were encountered: