fix genmc build
This commit is contained in:
parent
7c28d96b7a
commit
952be8e886
3 changed files with 4 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ use rand::SeedableRng;
|
|||
use rand::rngs::StdRng;
|
||||
use rustc_const_eval::interpret::{AllocId, AllocInfo, InterpResult, interp_ok};
|
||||
use rustc_data_structures::fx::FxHashMap;
|
||||
use tracing::debug;
|
||||
use rustc_log::tracing::debug;
|
||||
|
||||
use crate::alloc_addresses::AddressGenerator;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ use std::sync::Arc;
|
|||
use std::time::Instant;
|
||||
|
||||
use genmc_sys::EstimationResult;
|
||||
use rustc_log::tracing;
|
||||
use rustc_middle::ty::TyCtxt;
|
||||
|
||||
use super::GlobalState;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
use genmc_sys::{ActionKind, ExecutionState};
|
||||
use rustc_data_structures::either::Either;
|
||||
use rustc_middle::mir::TerminatorKind;
|
||||
use rustc_middle::ty::{self, Ty};
|
||||
|
||||
|
|
@ -38,7 +39,7 @@ fn get_next_instruction_kind<'tcx>(
|
|||
let Some(frame) = thread_manager.active_thread_stack().last() else {
|
||||
return interp_ok(NonAtomic);
|
||||
};
|
||||
let either::Either::Left(loc) = frame.current_loc() else {
|
||||
let Either::Left(loc) = frame.current_loc() else {
|
||||
// We are unwinding, so the next step is definitely not atomic.
|
||||
return interp_ok(NonAtomic);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue