Skip to content

Commit 1a0e1fe

Browse files
adpaco-awstedinski
authored andcommitted
Disable rlinkage.is_none() assertion (rust-lang#401)
1 parent f651e5f commit 1a0e1fe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

compiler/rustc_codegen_llvm/src/gotoc/operand.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,12 @@ impl<'tcx> GotocCtx<'tcx> {
334334
// we believe rlinkage being `Some` means the static not extern
335335
// based on compiler/rustc_codegen_cranelift/src/linkage.rs#L21
336336
// see https://github.com/model-checking/rmc/issues/388
337-
assert!(rlinkage.is_none());
337+
//
338+
// Update: The assertion below may fail in similar environments.
339+
// We are disabling it until we find out the root cause, see
340+
// https://github.com/model-checking/rmc/issues/400
341+
//
342+
// assert!(rlinkage.is_none());
338343

339344
let span = ctx.tcx.def_span(def_id);
340345
Symbol::static_variable(

0 commit comments

Comments
 (0)