]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_query_system/src/cache.rs
Rollup merge of #104077 - nicholasbishop:bishop-uefi-aapcs, r=nagisa
[rust.git] / compiler / rustc_query_system / src / cache.rs
index d592812f79b6b8f333e2e6e12092abf75760aeb1..7cc885be2ba6a6319b51e783e1d03efc97f344a1 100644 (file)
@@ -26,7 +26,7 @@ pub fn clear(&self) {
 }
 
 impl<Key: Eq + Hash, Value: Clone> Cache<Key, Value> {
-    pub fn get<CTX: DepContext>(&self, key: &Key, tcx: CTX) -> Option<Value> {
+    pub fn get<Tcx: DepContext>(&self, key: &Key, tcx: Tcx) -> Option<Value> {
         Some(self.hashmap.borrow().get(key)?.get(tcx))
     }
 
@@ -46,7 +46,7 @@ pub fn new(dep_node: DepNodeIndex, cached_value: T) -> Self {
         WithDepNode { dep_node, cached_value }
     }
 
-    pub fn get<CTX: DepContext>(&self, tcx: CTX) -> T {
+    pub fn get<Tcx: DepContext>(&self, tcx: Tcx) -> T {
         tcx.dep_graph().read_index(self.dep_node);
         self.cached_value.clone()
     }