Skip to content

Commit c1a71a9

Browse files
committed
Unbreak fuzzing build when span-locations is used
error[E0432]: unresolved import `crate::imp::invalidate_current_thread_spans` --> src/lib.rs:176:9 | 176 | pub use crate::imp::invalidate_current_thread_spans; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `invalidate_current_thread_spans` in `fallback` | note: found an item that was configured out --> src/fallback.rs:338:8 | 338 | pub fn invalidate_current_thread_spans() { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1 parent 98c4bcb commit c1a71a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fallback.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,9 @@ thread_local! {
334334
});
335335
}
336336

337-
#[cfg(all(span_locations, not(fuzzing)))]
337+
#[cfg(span_locations)]
338338
pub fn invalidate_current_thread_spans() {
339+
#[cfg(not(fuzzing))]
339340
SOURCE_MAP.with(|sm| sm.borrow_mut().files.truncate(1));
340341
}
341342

0 commit comments

Comments
 (0)