@@ -134,19 +134,19 @@ impl<K: DepKind> DepGraph<K> {
134
134
smallvec ! [ ] ,
135
135
Fingerprint :: ZERO ,
136
136
) ;
137
- debug_assert_eq ! ( _green_node_index, DepNodeIndex :: SINGLETON_DEPENDENCYLESS_ANON_NODE ) ;
137
+ assert_eq ! ( _green_node_index, DepNodeIndex :: SINGLETON_DEPENDENCYLESS_ANON_NODE ) ;
138
138
139
139
// Instantiate a dependy-less red node only once for anonymous queries.
140
140
let ( _red_node_index, _prev_and_index) = current. intern_node (
141
141
profiler,
142
142
& prev_graph,
143
- DepNode { kind : DepKind :: NULL , hash : Fingerprint :: ZERO . into ( ) } ,
143
+ DepNode { kind : DepKind :: RED , hash : Fingerprint :: ZERO . into ( ) } ,
144
144
smallvec ! [ ] ,
145
145
None ,
146
146
false ,
147
147
) ;
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 ) ) ) ) ;
150
150
151
151
DepGraph {
152
152
data : Some ( Lrc :: new ( DepGraphData {
@@ -981,8 +981,6 @@ impl<K: DepKind> CurrentDepGraph<K> {
981
981
let mut stable_hasher = StableHasher :: new ( ) ;
982
982
nanos. hash ( & mut stable_hasher) ;
983
983
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 ) ;
986
984
987
985
#[ cfg( debug_assertions) ]
988
986
let forbidden_edge = match env:: var ( "RUST_FORBID_DEP_GRAPH_EDGE" ) {
0 commit comments