Skip to content

Commit 1860f9f

Browse files
committed
pub use MaybeEnteredTraceSpan in lib.rs
1 parent e54f7a8 commit 1860f9f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/helpers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,7 @@ impl ToU64 for usize {
14351435
/// This struct is needed to enforce `#[must_use]` on values produced by [enter_trace_span] even
14361436
/// when the "tracing" feature is not enabled.
14371437
#[must_use]
1438-
pub struct MaybeEnteredSpan {
1438+
pub struct MaybeEnteredTraceSpan {
14391439
#[cfg(feature = "tracing")]
14401440
pub _entered_span: tracing::span::EnteredSpan,
14411441
}
@@ -1447,7 +1447,7 @@ pub struct MaybeEnteredSpan {
14471447
#[macro_export]
14481448
macro_rules! enter_trace_span {
14491449
($($tt:tt)*) => {
1450-
$crate::helpers::MaybeEnteredSpan {
1450+
$crate::MaybeEnteredTraceSpan {
14511451
#[cfg(feature = "tracing")]
14521452
_entered_span: tracing::info_span!($($tt)*).entered()
14531453
}

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ pub use crate::eval::{
139139
AlignmentCheck, BacktraceStyle, IsolatedOp, MiriConfig, MiriEntryFnType, RejectOpWith,
140140
ValidationMode, create_ecx, eval_entry,
141141
};
142-
pub use crate::helpers::{AccessKind, EvalContextExt as _, ToU64 as _, ToUsize as _};
142+
pub use crate::helpers::{
143+
AccessKind, EvalContextExt as _, MaybeEnteredTraceSpan, ToU64 as _, ToUsize as _,
144+
};
143145
pub use crate::intrinsics::EvalContextExt as _;
144146
pub use crate::machine::{
145147
AllocExtra, DynMachineCallback, FrameExtra, MachineCallback, MemoryKind, MiriInterpCx,

0 commit comments

Comments
 (0)