about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2019-06-19 20:17:09 +0200
committerOliver Scherer <github35764891676564198441@oli-obk.de>2019-06-19 20:17:09 +0200
commit3dfe017dc3fccca64d67973be10e4bbd3e90c966 (patch)
treec3c130d05d06cc97dfbf90f56419168149fa8f1d /src/librustc_codegen_llvm
parentcdf55965027b87a12800dca2dedd672fac618f5b (diff)
downloadrust-3dfe017dc3fccca64d67973be10e4bbd3e90c966.tar.gz
rust-3dfe017dc3fccca64d67973be10e4bbd3e90c966.zip
Pacify tidy
Diffstat (limited to 'src/librustc_codegen_llvm')
-rw-r--r--src/librustc_codegen_llvm/consts.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/consts.rs b/src/librustc_codegen_llvm/consts.rs
index 7f11df39796..24167a2f887 100644
--- a/src/librustc_codegen_llvm/consts.rs
+++ b/src/librustc_codegen_llvm/consts.rs
@@ -71,7 +71,9 @@ pub fn codegen_static_initializer(
     let static_ = cx.tcx.const_eval(param_env.and(cid))?;
 
     let alloc = match static_.val {
-        ConstValue::ByRef { offset, align, alloc } if offset.bytes() == 0 && align == alloc.align => {
+        ConstValue::ByRef {
+            offset, align, alloc,
+        } if offset.bytes() == 0 && align == alloc.align => {
             alloc
         },
         _ => bug!("static const eval returned {:#?}", static_),