Skip to content

Commit 6894f3d

Browse files
committed
Reuse -Zincremental_verify_ich.
1 parent 25ab873 commit 6894f3d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-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
@@ -1109,7 +1109,7 @@ pub(super) struct CurrentDepGraph<K: DepKind> {
11091109
forbidden_edge: Option<EdgeFilter<K>>,
11101110

11111111
/// Used to verify the absence of hash collisions among DepNodes.
1112-
/// This field is only `Some` if the `-Z incremental_verify_depnodes` option is present.
1112+
/// This field is only `Some` if the `-Z incremental_verify_ich` option is present.
11131113
#[cfg(debug_assertions)]
11141114
seen_dep_nodes: Option<Lock<FxHashSet<DepNode<K>>>>,
11151115

@@ -1195,7 +1195,7 @@ impl<K: DepKind> CurrentDepGraph<K> {
11951195
#[cfg(debug_assertions)]
11961196
fingerprints: Lock::new(IndexVec::from_elem_n(None, new_node_count_estimate)),
11971197
#[cfg(debug_assertions)]
1198-
seen_dep_nodes: session.opts.unstable_opts.incremental_verify_depnodes.then(|| {
1198+
seen_dep_nodes: session.opts.unstable_opts.incremental_verify_ich.then(|| {
11991199
Lock::new(FxHashSet::with_capacity_and_hasher(
12001200
new_node_count_estimate,
12011201
Default::default(),

compiler/rustc_session/src/options.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,10 +1483,10 @@ options! {
14831483
#[rustc_lint_opt_deny_field_access("use `Session::incremental_relative_spans` instead of this field")]
14841484
incremental_relative_spans: bool = (false, parse_bool, [TRACKED],
14851485
"hash spans relative to their parent item for incr. comp. (default: no)"),
1486-
incremental_verify_depnodes: bool = (false, parse_bool, [UNTRACKED],
1487-
"verify incr. comp. dep-nodes for hash collisions (default: no)"),
14881486
incremental_verify_ich: bool = (false, parse_bool, [UNTRACKED],
1489-
"verify incr. comp. hashes of green query instances (default: no)"),
1487+
"verify extended properties for incr. comp. (default: no):
1488+
- hashes of green query instances;
1489+
- hash collisions when creating dep-nodes."),
14901490
inline_in_all_cgus: Option<bool> = (None, parse_opt_bool, [TRACKED],
14911491
"control whether `#[inline]` functions are in all CGUs"),
14921492
inline_llvm: bool = (true, parse_bool, [TRACKED],

0 commit comments

Comments
 (0)