1
Fork 0

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:
Nilstrieb 2024-03-28 20:27:12 +01:00
parent c3b05c6e5b
commit 5039160c5b
6 changed files with 109 additions and 27 deletions

View file

@ -23,5 +23,6 @@ pub use self::serialize::{Decodable, Decoder, Encodable, Encoder};
mod serialize;
pub mod int_overflow;
pub mod leb128;
pub mod opaque;