Skip to content

Commit 4ddf661

Browse files
committed
Define module level int consts from assoc consts
1 parent 9fc0833 commit 4ddf661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/num/int_macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ macro_rules! int_module {
1414
concat!("The smallest value that can be represented by this integer type.
1515
Use [`", stringify!($T), "::MIN", "`](../../std/primitive.", stringify!($T), ".html#associatedconstant.MIN) instead."),
1616
#[$attr]
17-
pub const MIN: $T = $T::min_value();
17+
pub const MIN: $T = $T::MIN;
1818
}
1919

2020
doc_comment! {
2121
concat!("The largest value that can be represented by this integer type.
2222
Use [`", stringify!($T), "::MAX", "`](../../std/primitive.", stringify!($T), ".html#associatedconstant.MAX) instead."),
2323
#[$attr]
24-
pub const MAX: $T = $T::max_value();
24+
pub const MAX: $T = $T::MAX;
2525
}
2626
)
2727
}

0 commit comments

Comments
 (0)