Skip to content

Commit 177c700

Browse files
committed
Import from alloc to make remaining std dependencies clear
1 parent 00360bc commit 177c700

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ compile_error! {"\
118118
build script as well.
119119
"}
120120

121+
extern crate alloc;
122+
121123
#[cfg(feature = "proc-macro")]
122124
extern crate proc_macro;
123125

src/marker.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
use alloc::rc::Rc;
12
use core::marker::PhantomData;
2-
use std::panic::{RefUnwindSafe, UnwindSafe};
3-
use std::rc::Rc;
3+
use core::panic::{RefUnwindSafe, UnwindSafe};
44

55
// Zero sized marker with the correct set of autotrait impls we want all proc
66
// macro types to have.

src/rcvec.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
use alloc::rc::Rc;
2+
use alloc::vec;
13
use core::mem;
4+
use core::panic::RefUnwindSafe;
25
use core::slice;
3-
use std::panic::RefUnwindSafe;
4-
use std::rc::Rc;
5-
use std::vec;
66

77
pub(crate) struct RcVec<T> {
88
inner: Rc<Vec<T>>,

0 commit comments

Comments
 (0)