Skip to content

Commit 98e8a62

Browse files
c410-f3rflip1995
authored andcommitted
[clippy] Use symbols intended for arithmetic_side_effects
1 parent 709372a commit 98e8a62

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/src/num/saturating.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ use crate::ops::{Shl, ShlAssign, Shr, ShrAssign, Sub, SubAssign};
3535
#[unstable(feature = "saturating_int_impl", issue = "87920")]
3636
#[derive(PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Default, Hash)]
3737
#[repr(transparent)]
38+
#[rustc_diagnostic_item = "Saturating"]
3839
pub struct Saturating<T>(#[unstable(feature = "saturating_int_impl", issue = "87920")] pub T);
3940

4041
#[unstable(feature = "saturating_int_impl", issue = "87920")]

core/src/num/wrapping.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ use crate::ops::{Shl, ShlAssign, Shr, ShrAssign, Sub, SubAssign};
3939
#[stable(feature = "rust1", since = "1.0.0")]
4040
#[derive(PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Default, Hash)]
4141
#[repr(transparent)]
42+
#[rustc_diagnostic_item = "Wrapping"]
4243
pub struct Wrapping<T>(#[stable(feature = "rust1", since = "1.0.0")] pub T);
4344

4445
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)