mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
style: Temporarily use OrderMap on Gecko.
This will allow us to discard std hash map as a source of crashes.
This commit is contained in:
parent
a2c2d34753
commit
4d9ce6b880
3 changed files with 30 additions and 14 deletions
|
@ -9,19 +9,26 @@
|
|||
|
||||
use fnv;
|
||||
|
||||
// #[cfg(feature = "gecko")]
|
||||
// pub use hashglobe::hash_map::HashMap;
|
||||
// #[cfg(feature = "gecko")]
|
||||
// pub use hashglobe::hash_set::HashSet;
|
||||
#[cfg(feature = "gecko")]
|
||||
pub use hashglobe::hash_map::HashMap;
|
||||
pub use hashglobe::order::HashMap;
|
||||
#[cfg(feature = "gecko")]
|
||||
pub use hashglobe::hash_set::HashSet;
|
||||
pub use hashglobe::order::HashSet;
|
||||
|
||||
|
||||
#[cfg(feature = "servo")]
|
||||
pub use hashglobe::fake::{HashMap, HashSet};
|
||||
|
||||
|
||||
/// Appropriate reexports of hash_map types
|
||||
pub mod map {
|
||||
// #[cfg(feature = "gecko")]
|
||||
// pub use hashglobe::hash_map::{Entry, Iter};
|
||||
#[cfg(feature = "gecko")]
|
||||
pub use hashglobe::hash_map::{Entry, Iter};
|
||||
pub use hashglobe::order::{Entry, MapIter as Iter};
|
||||
#[cfg(feature = "servo")]
|
||||
pub use std::collections::hash_map::{Entry, Iter};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue