Pacify tidy
This commit is contained in:
parent
cdf5596502
commit
3dfe017dc3
2 changed files with 9 additions and 6 deletions
|
|
@ -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_),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue