We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25fab7e commit 1f2c18cCopy full SHA for 1f2c18c
src/librustc_codegen_llvm/consts.rs
@@ -88,9 +88,9 @@ pub fn codegen_static_initializer(
88
let static_ = cx.tcx.const_eval(param_env.and(cid))?;
89
90
let alloc = match static_.val {
91
- ConstValue::ByRef {
+ ty::ConstKind::Value(ConstValue::ByRef {
92
alloc, offset,
93
- } if offset.bytes() == 0 => {
+ }) if offset.bytes() == 0 => {
94
alloc
95
},
96
_ => bug!("static const eval returned {:#?}", static_),
0 commit comments