Skip to content

Commit b00ae86

Browse files
committed
Use alloc instead of collections
collections has been merged into alloc. See rust-lang/rust#42648
1 parent 3dd6672 commit b00ae86

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,7 @@
388388
//! assert_eq!(expr(b"2*2/(5-1)+3"), IResult::Done(&b""[..], 4));
389389
//! }
390390
//! ```
391-
#![cfg_attr(not(feature = "std"), feature(no_std))]
392-
#![cfg_attr(not(feature = "std"), feature(collections))]
391+
#![cfg_attr(not(feature = "std"), feature(alloc))]
393392
#![cfg_attr(not(feature = "std"), no_std)]
394393
#![cfg_attr(feature = "nightly", feature(test))]
395394
#![cfg_attr(feature = "nightly", feature(const_fn))]
@@ -398,7 +397,7 @@
398397
//#![warn(missing_docs)]
399398

400399
#[cfg(not(feature = "std"))]
401-
extern crate collections;
400+
extern crate alloc;
402401
#[cfg(feature = "regexp")]
403402
extern crate regex;
404403
#[cfg(feature = "regexp_macros")]
@@ -419,8 +418,8 @@ macro_rules! compiler_error {
419418
#[cfg(not(feature = "std"))]
420419
mod std {
421420
#[macro_use]
421+
pub use alloc::{boxed, vec, string};
422422
pub use core::{fmt, cmp, iter, option, result, ops, slice, str, mem, convert};
423-
pub use collections::{boxed, vec, string};
424423
pub mod prelude {
425424
pub use core::prelude as v1;
426425
}

0 commit comments

Comments
 (0)