diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-11-10 11:48:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-10 11:48:09 -0500 |
commit | 3b1078b58d510668355adb294193c0fa436b79c9 (patch) | |
tree | 2c2be69a7c068d6c06d3b473ae722293d88caa87 /components/hashglobe/src | |
parent | 7eb8544759d143b6622a734ab61b14af8ce55d82 (diff) | |
parent | b0d13cc2543d78c3369ea9894f270a126867cfc0 (diff) | |
download | servo-3b1078b58d510668355adb294193c0fa436b79c9.tar.gz servo-3b1078b58d510668355adb294193c0fa436b79c9.zip |
Auto merge of #22083 - servo:2018, r=emilio
Prepare stylo crates for switching to the 2018 edition
This can land when [Gecko requires Rust 1.30](https://bugzilla.mozilla.org/show_bug.cgi?id=1504031). This does not switch the crates yet because the new edition is not yet stable in 1.30.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22083)
<!-- Reviewable:end -->
Diffstat (limited to 'components/hashglobe/src')
-rw-r--r-- | components/hashglobe/src/fake.rs | 2 | ||||
-rw-r--r-- | components/hashglobe/src/hash_map.rs | 2 | ||||
-rw-r--r-- | components/hashglobe/src/table.rs | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/components/hashglobe/src/fake.rs b/components/hashglobe/src/fake.rs index d2cdd549e48..339c54a4991 100644 --- a/components/hashglobe/src/fake.rs +++ b/components/hashglobe/src/fake.rs @@ -26,7 +26,7 @@ pub use std::collections::hash_set::{IntoIter as SetIntoIter, Iter as SetIter}; #[derive(Clone)] pub struct HashMap<K, V, S = RandomState>(StdMap<K, V, S>); -use FailedAllocationError; +use crate::FailedAllocationError; impl<K, V, S> Deref for HashMap<K, V, S> { type Target = StdMap<K, V, S>; diff --git a/components/hashglobe/src/hash_map.rs b/components/hashglobe/src/hash_map.rs index 03ade951e1e..cc9f724aee0 100644 --- a/components/hashglobe/src/hash_map.rs +++ b/components/hashglobe/src/hash_map.rs @@ -23,7 +23,7 @@ use std::ops::{Deref, Index}; use super::table::BucketState::{Empty, Full}; use super::table::{self, Bucket, EmptyBucket, FullBucket, FullBucketMut, RawTable, SafeHash}; -use FailedAllocationError; +use crate::FailedAllocationError; const MIN_NONZERO_RAW_CAPACITY: usize = 32; // must be a power of two diff --git a/components/hashglobe/src/table.rs b/components/hashglobe/src/table.rs index 15e3394884f..0fe08f2b052 100644 --- a/components/hashglobe/src/table.rs +++ b/components/hashglobe/src/table.rs @@ -8,8 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use alloc::{alloc, dealloc}; -use shim::{Shared, Unique}; +use crate::alloc::{alloc, dealloc}; +use crate::shim::{Shared, Unique}; use std::cmp; use std::hash::{BuildHasher, Hash, Hasher}; use std::marker; @@ -18,7 +18,7 @@ use std::ops::{Deref, DerefMut}; use std::ptr; use self::BucketState::*; -use FailedAllocationError; +use crate::FailedAllocationError; /// Integer type used for stored hash values. /// @@ -795,7 +795,7 @@ impl<K, V> RawTable<K, V> { let buffer = alloc(size, alignment); if buffer.is_null() { - use AllocationInfo; + use crate::AllocationInfo; return Err(FailedAllocationError { reason: "out of memory when allocating RawTable", allocation_info: Some(AllocationInfo { size, alignment }), |