]> git.lizzy.rs Git - rust.git/blobdiff - src/shims/mod.rs
Auto merge of #2141 - saethlin:early-diagnostics-ice, r=RalfJung
[rust.git] / src / shims / mod.rs
index af6064925f0437d6d9097900abd707562ed221f2..f003552434fe9a5c0548165c44dfa476f67c9106 100644 (file)
@@ -36,7 +36,7 @@ fn find_mir_or_eval_fn(
 
         // There are some more lang items we want to hook that CTFE does not hook (yet).
         if this.tcx.lang_items().align_offset_fn() == Some(instance.def.def_id()) {
-            let &[ref ptr, ref align] = check_arg_count(args)?;
+            let [ptr, align] = check_arg_count(args)?;
             if this.align_offset(ptr, align, ret, unwind)? {
                 return Ok(None);
             }