diff options
Diffstat (limited to 'src/librustc_data_structures')
| -rw-r--r-- | src/librustc_data_structures/indexed_vec.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_data_structures/indexed_vec.rs b/src/librustc_data_structures/indexed_vec.rs index 7674018075c..01fb2930687 100644 --- a/src/librustc_data_structures/indexed_vec.rs +++ b/src/librustc_data_structures/indexed_vec.rs @@ -47,7 +47,7 @@ macro_rules! newtype_index { impl Idx for $name { fn new(value: usize) -> Self { - assert!(value < (u32::MAX) as usize); + assert!(value < (::std::u32::MAX) as usize); $name(value as u32) } fn index(self) -> usize { @@ -55,8 +55,8 @@ macro_rules! newtype_index { } } - impl Debug for $name { - fn fmt(&self, fmt: &mut Formatter) -> fmt::Result { + impl ::std::fmt::Debug for $name { + fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { write!(fmt, "{}{}", $debug_name, self.0) } } |
