Skip to content

Commit

Permalink
Disable rlinkage.is_none() assertion (rust-lang#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
adpaco-aws authored and tedinski committed Aug 10, 2021
1 parent f651e5f commit 1a0e1fe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion compiler/rustc_codegen_llvm/src/gotoc/operand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,12 @@ impl<'tcx> GotocCtx<'tcx> {
// we believe rlinkage being `Some` means the static not extern
// based on compiler/rustc_codegen_cranelift/src/linkage.rs#L21
// see https://github.com/model-checking/rmc/issues/388
assert!(rlinkage.is_none());
//
// Update: The assertion below may fail in similar environments.
// We are disabling it until we find out the root cause, see
// https://github.com/model-checking/rmc/issues/400
//
// assert!(rlinkage.is_none());

let span = ctx.tcx.def_span(def_id);
Symbol::static_variable(
Expand Down

0 comments on commit 1a0e1fe

Please sign in to comment.