From 01dbaeda3242d48bb7b432f5fa2c0506e326551c Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 28 Mar 2020 17:51:11 +0100 Subject: [PATCH] use machine_ prefix for target usize/isize --- src/librustc/mir/interpret/pointer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc/mir/interpret/pointer.rs b/src/librustc/mir/interpret/pointer.rs index 3f841cfb330..d22207bd816 100644 --- a/src/librustc/mir/interpret/pointer.rs +++ b/src/librustc/mir/interpret/pointer.rs @@ -46,13 +46,13 @@ fn pointer_size(&self) -> Size { } #[inline] - fn usize_max(&self) -> u64 { + fn machine_usize_max(&self) -> u64 { let max_usize_plus_1 = 1u128 << self.pointer_size().bits(); u64::try_from(max_usize_plus_1 - 1).unwrap() } #[inline] - fn isize_max(&self) -> i64 { + fn machine_isize_max(&self) -> i64 { let max_isize_plus_1 = 1u128 << (self.pointer_size().bits() - 1); i64::try_from(max_isize_plus_1 - 1).unwrap() }