Skip to content

Commit ddcc71b

Browse files
committed
Reuse -Zincremental_verify_ich.
1 parent 1851fc4 commit ddcc71b

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
@@ -1081,7 +1081,7 @@ pub(super) struct CurrentDepGraph<D: Deps> {
10811081
forbidden_edge: Option<EdgeFilter>,
10821082

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

@@ -1154,7 +1154,7 @@ impl<D: Deps> CurrentDepGraph<D> {
11541154
#[cfg(debug_assertions)]
11551155
fingerprints: Lock::new(IndexVec::from_elem_n(None, new_node_count_estimate)),
11561156
#[cfg(debug_assertions)]
1157-
seen_dep_nodes: session.opts.unstable_opts.incremental_verify_depnodes.then(|| {
1157+
seen_dep_nodes: session.opts.unstable_opts.incremental_verify_ich.then(|| {
11581158
Lock::new(FxHashSet::with_capacity_and_hasher(
11591159
new_node_count_estimate,
11601160
Default::default(),

compiler/rustc_session/src/options.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,12 +1820,11 @@ options! {
18201820
incremental_info: bool = (false, parse_bool, [UNTRACKED],
18211821
"print high-level information about incremental reuse (or the lack thereof) \
18221822
(default: no)"),
1823-
incremental_verify_depnodes: bool = (false, parse_bool, [UNTRACKED],
1824-
"verify incr. comp. dep-nodes for hash collisions (default: no)"),
18251823
incremental_verify_ich: bool = (false, parse_bool, [UNTRACKED],
18261824
"verify extended properties for incr. comp. (default: no):
18271825
- hashes of green query instances
1828-
- hash collisions of query keys"),
1826+
- hash collisions of query keys
1827+
- hash collisions when creating dep-nodes"),
18291828
inline_in_all_cgus: Option<bool> = (None, parse_opt_bool, [TRACKED],
18301829
"control whether `#[inline]` functions are in all CGUs"),
18311830
inline_llvm: bool = (true, parse_bool, [TRACKED],

0 commit comments

Comments
 (0)