@@ -134,19 +134,19 @@ impl<K: DepKind> DepGraph<K> {
134134 smallvec ! [ ] ,
135135 Fingerprint :: ZERO ,
136136 ) ;
137- debug_assert_eq ! ( _green_node_index, DepNodeIndex :: SINGLETON_DEPENDENCYLESS_ANON_NODE ) ;
137+ assert_eq ! ( _green_node_index, DepNodeIndex :: SINGLETON_DEPENDENCYLESS_ANON_NODE ) ;
138138
139139 // Instantiate a dependy-less red node only once for anonymous queries.
140140 let ( _red_node_index, _prev_and_index) = current. intern_node (
141141 profiler,
142142 & prev_graph,
143- DepNode { kind : DepKind :: NULL , hash : Fingerprint :: ZERO . into ( ) } ,
143+ DepNode { kind : DepKind :: RED , hash : Fingerprint :: ZERO . into ( ) } ,
144144 smallvec ! [ ] ,
145145 None ,
146146 false ,
147147 ) ;
148- debug_assert_eq ! ( _red_node_index, DepNodeIndex :: FOREVER_RED_NODE ) ;
149- debug_assert ! ( matches!( _prev_and_index, None | Some ( ( _, DepNodeColor :: Red ) ) ) ) ;
148+ assert_eq ! ( _red_node_index, DepNodeIndex :: FOREVER_RED_NODE ) ;
149+ assert ! ( matches!( _prev_and_index, None | Some ( ( _, DepNodeColor :: Red ) ) ) ) ;
150150
151151 DepGraph {
152152 data : Some ( Lrc :: new ( DepGraphData {
@@ -981,8 +981,6 @@ impl<K: DepKind> CurrentDepGraph<K> {
981981 let mut stable_hasher = StableHasher :: new ( ) ;
982982 nanos. hash ( & mut stable_hasher) ;
983983 let anon_id_seed = stable_hasher. finish ( ) ;
984- // We rely on the fact that `anon_id_seed` is not zero when creating static nodes.
985- debug_assert_ne ! ( anon_id_seed, Fingerprint :: ZERO ) ;
986984
987985 #[ cfg( debug_assertions) ]
988986 let forbidden_edge = match env:: var ( "RUST_FORBID_DEP_GRAPH_EDGE" ) {
0 commit comments