Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Commit c00f3e1

Browse files
committed
git subtree pull && 2018 edition!
Merged as of rust commit e938c2b9aae7, just before hashbrown.
2 parents 816f5bc + 7d3ea07 commit c00f3e1

File tree

10 files changed

+644
-605
lines changed

10 files changed

+644
-605
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ categories = ["concurrency", "data-structures"]
99
description = "HashMap and HashSet with support for Rayon parallel iterators"
1010
license = "Apache-2.0/MIT"
1111
readme = "README.md"
12+
edition = "2018"
1213

1314
[dependencies]
1415
rayon = "1.0"

src/intrinsics.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#[inline(always)]
2+
pub unsafe fn unlikely(b: bool) -> bool {
3+
b
4+
}

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ extern crate rayon;
55
#[cfg(test)] extern crate rand;
66

77
mod alloc;
8+
#[cfg(rayon_hash_unstable)]
9+
mod intrinsics;
810
mod ptr;
911

1012
// #[stable(feature = "rust1", since = "1.0.0")]

src/par/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use rayon::iter::{FromParallelIterator, IntoParallelIterator, ParallelExtend, Pa
33
use std::hash::{BuildHasher, Hash};
44

55
use super::table;
6-
use HashMap;
6+
use crate::HashMap;
77

88
pub use self::table::{ParIntoIter, ParIter, ParIterMut};
99
pub use self::table::{ParKeys, ParValues, ParValuesMut};

src/par/set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use rayon::iter::{FromParallelIterator, IntoParallelIterator, ParallelExtend, Pa
44
use std::hash::{BuildHasher, Hash};
55

66
use super::map;
7-
use HashSet;
7+
use crate::HashSet;
88

99
pub struct ParIntoIter<T: Send> {
1010
inner: map::ParIntoIter<T, ()>,

src/par/table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::ptr;
55
use rayon::iter::plumbing::*;
66
use rayon::prelude::*;
77

8-
use std_hash::table::{RawBucket, RawTable};
8+
use crate::std_hash::table::{RawBucket, RawTable};
99

1010
struct SplitBuckets<'a, K, V> {
1111
bucket: RawBucket<K, V>,

0 commit comments

Comments
 (0)