Skip to content

Commit 3215326

Browse files
committed
add turbofish to fix build error, rm duplicate feature gate
1 parent 7d5e997 commit 3215326

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

library/core/src/num/int_macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3876,7 +3876,7 @@ macro_rules! int_impl {
38763876
#[unstable(feature = "clamp_magnitude", issue = "148519")]
38773877
#[inline]
38783878
pub fn clamp_magnitude(self, limit: $UnsignedT) -> Self {
3879-
if let Ok(limit) = limit.try_into() {
3879+
if let Ok(limit) = limit.try_into::<$SelfT>() {
38803880
self.clamp(-limit, limit)
38813881
} else {
38823882
self

library/coretests/tests/num/clamp_magnitude.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(clamp_magnitude)]
2-
31
macro_rules! check_int_clamp {
42
($t:ty, $ut:ty) => {
53
let min = <$t>::MIN;

0 commit comments

Comments
 (0)