Move core::alloc::CollectionAllocErr to alloc::collections
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
use self::Entry::*;
|
||||
use self::VacantEntryState::*;
|
||||
|
||||
use alloc::CollectionAllocErr;
|
||||
use collections::CollectionAllocErr;
|
||||
use cell::Cell;
|
||||
use borrow::Borrow;
|
||||
use cmp::max;
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use alloc::{Global, Alloc, Layout, LayoutErr, CollectionAllocErr, handle_alloc_error};
|
||||
use alloc::{Global, Alloc, Layout, LayoutErr, handle_alloc_error};
|
||||
use collections::CollectionAllocErr;
|
||||
use hash::{BuildHasher, Hash, Hasher};
|
||||
use marker;
|
||||
use mem::{size_of, needs_drop};
|
||||
|
||||
@@ -438,7 +438,7 @@ pub use self::hash_map::HashMap;
|
||||
pub use self::hash_set::HashSet;
|
||||
|
||||
#[unstable(feature = "try_reserve", reason = "new API", issue="48043")]
|
||||
pub use alloc::CollectionAllocErr;
|
||||
pub use alloc_crate::collections::CollectionAllocErr;
|
||||
|
||||
mod hash;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user