]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_codegen_llvm/debuginfo/metadata.rs
Use `assert_usize` instead of `unwrap_usize` in several places
[rust.git] / src / librustc_codegen_llvm / debuginfo / metadata.rs
index b000628a3f70653e9653e519cf47b61cf71aff88..42bd790ca2e9c47662da3e2a8662f0c858a67e55 100644 (file)
@@ -342,9 +342,7 @@ fn fixed_vec_metadata(
     let (size, align) = cx.size_and_align_of(array_or_slice_type);
 
     let upper_bound = match array_or_slice_type.sty {
-        ty::Array(_, len) => {
-            len.unwrap_usize(cx.tcx) as c_longlong
-        }
+        ty::Array(_, len) => len.unwrap_usize(cx.tcx) as c_longlong,
         _ => -1
     };