Skip to content

Commit c9cc194

Browse files
committed
Fix the rustc-internal-api feature
1 parent 8e39062 commit c9cc194

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rustc_entry.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use self::RustcEntry::*;
22
use crate::map::{make_hash, Drain, HashMap, IntoIter, Iter, IterMut};
3-
use crate::raw::{Bucket, RawTable};
3+
use crate::raw::{Bucket, Global, RawTable};
44
use core::fmt::{self, Debug};
55
use core::hash::{BuildHasher, Hash};
66
use core::mem;
@@ -83,7 +83,7 @@ impl<K: Debug, V: Debug> Debug for RustcEntry<'_, K, V> {
8383
pub struct RustcOccupiedEntry<'a, K, V> {
8484
key: Option<K>,
8585
elem: Bucket<(K, V)>,
86-
table: &'a mut RawTable<(K, V)>,
86+
table: &'a mut RawTable<(K, V), Global>,
8787
}
8888

8989
unsafe impl<K, V> Send for RustcOccupiedEntry<'_, K, V>
@@ -115,7 +115,7 @@ impl<K: Debug, V: Debug> Debug for RustcOccupiedEntry<'_, K, V> {
115115
pub struct RustcVacantEntry<'a, K, V> {
116116
hash: u64,
117117
key: K,
118-
table: &'a mut RawTable<(K, V)>,
118+
table: &'a mut RawTable<(K, V), Global>,
119119
}
120120

121121
impl<K: Debug, V> Debug for RustcVacantEntry<'_, K, V> {

0 commit comments

Comments
 (0)