]> git.lizzy.rs Git - rust.git/blobdiff - crates/hir_ty/src/consts.rs
Merge #8799
[rust.git] / crates / hir_ty / src / consts.rs
index 77d2a7a055e82061d63163a077bb89c616c578d2..0044b1cffc25bc784f2854b188156cd5c564a7ce 100644 (file)
@@ -4,7 +4,8 @@
 #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
 pub enum ConstScalar {
     // for now, we only support the trivial case of constant evaluating the length of an array
-    Usize(usize),
+    // Note that this is u64 because the target usize may be bigger than our usize
+    Usize(u64),
 
     /// Case of an unknown value that rustc might know but we don't
     Unknown,