mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
fix genmc build
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
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::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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user