Skip to content

Commit 2825fb1

Browse files
committed
Make same crates available during probe as in crate root
1 parent cc5819c commit 2825fb1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/probe/proc_macro_span_file.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
extern crate alloc;
66
extern crate proc_macro;
7+
extern crate std;
78

89
use alloc::string::String;
910
use proc_macro::Span;

src/probe/proc_macro_span_location.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
#![cfg_attr(procmacro2_build_probe, no_std)]
44

5+
extern crate alloc;
56
extern crate proc_macro;
7+
extern crate std;
68

79
use proc_macro::Span;
810

0 commit comments

Comments
 (0)