mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Use wrapping_div call and correct the feature name
This commit is contained in:
parent
e333a57a19
commit
a89b3ea3fc
@ -119,13 +119,13 @@ macro_rules! wrapping_impl {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.3.0")]
|
||||
#[stable(feature = "wrapping_div", since = "1.3.0")]
|
||||
impl Div for Wrapping<$t> {
|
||||
type Output = Wrapping<$t>;
|
||||
|
||||
#[inline(always)]
|
||||
fn div(self, other: Wrapping<$t>) -> Wrapping<$t> {
|
||||
Wrapping(self.0 / other.0)
|
||||
Wrapping(self.0.wrapping_div(other.0))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user