about summary refs log tree commit diff
path: root/src/librustc_data_structures/base_n
diff options
context:
space:
mode:
authorLzu Tao <taolzu@gmail.com>2020-06-02 07:59:11 +0000
committerLzu Tao <taolzu@gmail.com>2020-06-10 01:35:47 +0000
commitfff822fead6249671cbcb090b24bce58fab38de0 (patch)
tree417a72d52d12d147a03535fe7cbe465b3bcdb695 /src/librustc_data_structures/base_n
parent283522400b5c13dfdf2b7e608e63a70ee8e3d7af (diff)
downloadrust-fff822fead6249671cbcb090b24bce58fab38de0.tar.gz
rust-fff822fead6249671cbcb090b24bce58fab38de0.zip
Migrate to numeric associated consts
Diffstat (limited to 'src/librustc_data_structures/base_n')
-rw-r--r--src/librustc_data_structures/base_n/tests.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_data_structures/base_n/tests.rs b/src/librustc_data_structures/base_n/tests.rs
index a86f991cd0e..b68ef1eb7f4 100644
--- a/src/librustc_data_structures/base_n/tests.rs
+++ b/src/librustc_data_structures/base_n/tests.rs
@@ -12,8 +12,8 @@ fn test_encode() {
         test(35, base);
         test(36, base);
         test(37, base);
-        test(u64::max_value() as u128, base);
-        test(u128::max_value(), base);
+        test(u64::MAX as u128, base);
+        test(u128::MAX, base);
 
         for i in 0..1_000 {
             test(i * 983, base);