Skip to content

Commit 8671beb

Browse files
committed
allow dead code
1 parent 31f712f commit 8671beb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libm/src/math/support/int_traits/narrowing_div.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use crate::support::{DInt, HInt, Int, MinInt, u256};
66
/// This is the inverse of widening multiplication:
77
/// - for any `x` and nonzero `y`: `x.widen_mul(y).checked_narrowing_div_rem(y) == Some((x, 0))`,
88
/// - and for any `r in 0..y`: `x.carrying_mul(y, r).checked_narrowing_div_rem(y) == Some((x, r))`,
9+
#[allow(dead_code)]
910
pub trait NarrowingDiv: DInt + MinInt<Unsigned = Self> {
1011
/// Computes `(self / n, self % n))`
1112
///

0 commit comments

Comments
 (0)