Skip to content

Commit 952be8e

Browse files
committed
fix genmc build
1 parent 7c28d96 commit 952be8e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/tools/miri/src/concurrency/genmc/global_allocations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use rand::SeedableRng;
66
use rand::rngs::StdRng;
77
use rustc_const_eval::interpret::{AllocId, AllocInfo, InterpResult, interp_ok};
88
use rustc_data_structures::fx::FxHashMap;
9-
use tracing::debug;
9+
use rustc_log::tracing::debug;
1010

1111
use crate::alloc_addresses::AddressGenerator;
1212

src/tools/miri/src/concurrency/genmc/run.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use std::sync::Arc;
33
use std::time::Instant;
44

55
use genmc_sys::EstimationResult;
6+
use rustc_log::tracing;
67
use rustc_middle::ty::TyCtxt;
78

89
use super::GlobalState;

src/tools/miri/src/concurrency/genmc/scheduling.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use genmc_sys::{ActionKind, ExecutionState};
2+
use rustc_data_structures::either::Either;
23
use rustc_middle::mir::TerminatorKind;
34
use rustc_middle::ty::{self, Ty};
45

@@ -38,7 +39,7 @@ fn get_next_instruction_kind<'tcx>(
3839
let Some(frame) = thread_manager.active_thread_stack().last() else {
3940
return interp_ok(NonAtomic);
4041
};
41-
let either::Either::Left(loc) = frame.current_loc() else {
42+
let Either::Left(loc) = frame.current_loc() else {
4243
// We are unwinding, so the next step is definitely not atomic.
4344
return interp_ok(NonAtomic);
4445
};

0 commit comments

Comments
 (0)