Move core::alloc::CollectionAllocErr to alloc::collections

This commit is contained in:
Simon Sapin
2018-06-15 03:56:35 +02:00
parent 121b57b87a
commit b0547cea0a
9 changed files with 38 additions and 36 deletions

View File

@@ -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;

View File

@@ -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};

View File

@@ -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;