Add add/sub methods that only panic with debug assertions to rustc
This mitigates the perf impact of enabling overflow checks on rustc. The change to use overflow checks will be done in a later PR.
This commit is contained in:
parent
c3b05c6e5b
commit
5039160c5b
6 changed files with 109 additions and 27 deletions
|
@ -23,5 +23,6 @@ pub use self::serialize::{Decodable, Decoder, Encodable, Encoder};
|
|||
|
||||
mod serialize;
|
||||
|
||||
pub mod int_overflow;
|
||||
pub mod leb128;
|
||||
pub mod opaque;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue