We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e5a9fc + 5749fe8 commit d00c047Copy full SHA for d00c047
1 file changed
compiler/rustc_type_ir/src/search_graph/global_cache.rs
@@ -39,6 +39,11 @@ pub struct GlobalCache<X: Cx> {
39
}
40
41
impl<X: Cx> GlobalCache<X> {
42
+ #[inline]
43
+ pub const fn new() -> Self {
44
+ GlobalCache { map: HashMap::with_hasher(rustc_hash::FxBuildHasher) }
45
+ }
46
+
47
/// Insert a final result into the global cache.
48
pub(super) fn insert(
49
&mut self,
0 commit comments