Cannot build with --debug
When building for redox with --debug
, I get the following errors:
error[E0080]: evaluation of constant value failed
--> /home/ron/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smoltcp-0.10.0/src/time.rs:195:21
|
195 | micros: millis * 1000,
| ^^^^^^^^^^^^^ attempt to compute `u64::MAX * 1000_u64`, which would overflow
|
note: inside `smoltcp::time::Duration::from_millis`
--> /home/ron/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smoltcp-0.10.0/src/time.rs:195:21
|
195 | micros: millis * 1000,
| ^^^^^^^^^^^^^
note: inside `MAX_DURATION`
--> src/smolnetd/scheme/mod.rs:41:32
|
41 | const MAX_DURATION: Duration = Duration::from_millis(u64::MAX);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: erroneous constant used
--> src/smolnetd/scheme/mod.rs:240:62
|
240 | Some(delay) => break ::std::cmp::min(MAX_DURATION, delay),
| ^^^^^^^^^^^^
note: erroneous constant used
--> src/smolnetd/scheme/mod.rs:241:39
|
241 | None => break MAX_DURATION,
| ^^^^^^^^^^^^