]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_query_system/src/dep_graph/graph.rs
Rollup merge of #83571 - a1phyr:feature_const_slice_first_last, r=dtolnay
[rust.git] / compiler / rustc_query_system / src / dep_graph / graph.rs
index 0f25572170f53dae1d539a43fcb26662d17862fa..9fe2497a57bda6045821fca392d7c809cc096582 100644 (file)
@@ -488,8 +488,8 @@ pub fn dep_node_exists(&self, dep_node: &DepNode<K>) -> bool {
         self.data.is_some() && self.dep_node_index_of_opt(dep_node).is_some()
     }
 
-    #[inline]
-    pub fn dep_node_of(&self, dep_node_index: DepNodeIndex) -> DepNode<K> {
+    #[cfg(debug_assertions)]
+    fn dep_node_of(&self, dep_node_index: DepNodeIndex) -> DepNode<K> {
         let data = self.data.as_ref().unwrap();
         let previous = &data.previous;
         let data = data.current.data.lock();