diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-06-19 20:17:09 +0200 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-06-19 20:17:09 +0200 |
| commit | 3dfe017dc3fccca64d67973be10e4bbd3e90c966 (patch) | |
| tree | c3c130d05d06cc97dfbf90f56419168149fa8f1d /src/librustc_codegen_llvm | |
| parent | cdf55965027b87a12800dca2dedd672fac618f5b (diff) | |
| download | rust-3dfe017dc3fccca64d67973be10e4bbd3e90c966.tar.gz rust-3dfe017dc3fccca64d67973be10e4bbd3e90c966.zip | |
Pacify tidy
Diffstat (limited to 'src/librustc_codegen_llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/consts.rs | 4 |
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_), |
