Skip to content

Commit 794741c

Browse files
committed
Reuse -Zincremental_verify_ich.
1 parent abfe862 commit 794741c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

compiler/rustc_query_system/src/dep_graph/graph.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ pub(super) struct CurrentDepGraph<D: Deps> {
10911091
forbidden_edge: Option<EdgeFilter>,
10921092

10931093
/// Used to verify the absence of hash collisions among DepNodes.
1094-
/// This field is only `Some` if the `-Z incremental_verify_depnodes` option is present.
1094+
/// This field is only `Some` if the `-Z incremental_verify_ich` option is present.
10951095
#[cfg(debug_assertions)]
10961096
seen_dep_nodes: Option<Lock<FxHashSet<DepNode>>>,
10971097

@@ -1164,7 +1164,7 @@ impl<D: Deps> CurrentDepGraph<D> {
11641164
#[cfg(debug_assertions)]
11651165
fingerprints: Lock::new(IndexVec::from_elem_n(None, new_node_count_estimate)),
11661166
#[cfg(debug_assertions)]
1167-
seen_dep_nodes: session.opts.unstable_opts.incremental_verify_depnodes.then(|| {
1167+
seen_dep_nodes: session.opts.unstable_opts.incremental_verify_ich.then(|| {
11681168
Lock::new(FxHashSet::with_capacity_and_hasher(
11691169
new_node_count_estimate,
11701170
Default::default(),

compiler/rustc_session/src/options.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,12 +1759,11 @@ options! {
17591759
incremental_info: bool = (false, parse_bool, [UNTRACKED],
17601760
"print high-level information about incremental reuse (or the lack thereof) \
17611761
(default: no)"),
1762-
incremental_verify_depnodes: bool = (false, parse_bool, [UNTRACKED],
1763-
"verify incr. comp. dep-nodes for hash collisions (default: no)"),
17641762
incremental_verify_ich: bool = (false, parse_bool, [UNTRACKED],
17651763
"verify extended properties for incr. comp. (default: no):
17661764
- hashes of green query instances
1767-
- hash collisions of query keys"),
1765+
- hash collisions of query keys
1766+
- hash collisions when creating dep-nodes"),
17681767
inline_in_all_cgus: Option<bool> = (None, parse_opt_bool, [TRACKED],
17691768
"control whether `#[inline]` functions are in all CGUs"),
17701769
inline_llvm: bool = (true, parse_bool, [TRACKED],

0 commit comments

Comments
 (0)