Skip to content

Commit f19ab9a

Browse files
committed
Remove -Z incremental-queries.
Because it uses `parse_bool` and defaults to true, it is actually impossible to set it to false. And it hasn't been experimental for some time now.
1 parent 8818eac commit f19ab9a

File tree

5 files changed

+5
-12
lines changed

5 files changed

+5
-12
lines changed

src/librustc/ty/query/plumbing.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -615,9 +615,7 @@ impl<'tcx> TyCtxt<'tcx> {
615615
debug_assert!(self.dep_graph.is_green(dep_node));
616616

617617
// First we try to load the result from the on-disk cache.
618-
let result = if Q::cache_on_disk(self, key.clone(), None)
619-
&& self.sess.opts.debugging_opts.incremental_queries
620-
{
618+
let result = if Q::cache_on_disk(self, key.clone(), None) {
621619
let prof_timer = self.prof.incr_cache_loading();
622620
let result = Q::try_load_from_disk(self, prev_dep_node_index);
623621
prof_timer.finish_with_query_invocation_id(dep_node_index.into());

src/librustc_incremental/persist/load.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ pub fn load_dep_graph(sess: &Session) -> DepGraphFuture {
195195
}
196196

197197
pub fn load_query_result_cache(sess: &Session) -> OnDiskCache<'_> {
198-
if sess.opts.incremental.is_none() || !sess.opts.debugging_opts.incremental_queries {
198+
if sess.opts.incremental.is_none() {
199199
return OnDiskCache::new_empty(sess.source_map());
200200
}
201201

src/librustc_incremental/persist/save.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,9 @@ pub fn save_dep_graph(tcx: TyCtxt<'_>) {
3131

3232
join(
3333
move || {
34-
if tcx.sess.opts.debugging_opts.incremental_queries {
35-
sess.time("incr_comp_persist_result_cache", || {
36-
save_in(sess, query_cache_path, |e| encode_query_cache(tcx, e));
37-
});
38-
}
34+
sess.time("incr_comp_persist_result_cache", || {
35+
save_in(sess, query_cache_path, |e| encode_query_cache(tcx, e));
36+
});
3937
},
4038
|| {
4139
sess.time("incr_comp_persist_dep_graph", || {

src/librustc_session/options.rs

-2
Original file line numberDiff line numberDiff line change
@@ -791,8 +791,6 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
791791
"print tasks that execute and the color their dep node gets (requires debug build)"),
792792
incremental: Option<String> = (None, parse_opt_string, [UNTRACKED],
793793
"enable incremental compilation (experimental)"),
794-
incremental_queries: bool = (true, parse_bool, [UNTRACKED],
795-
"enable incremental compilation support for queries (experimental)"),
796794
incremental_info: bool = (false, parse_bool, [UNTRACKED],
797795
"print high-level information about incremental reuse (or the lack thereof)"),
798796
incremental_dump_hash: bool = (false, parse_bool, [UNTRACKED],

src/tools/compiletest/src/runtest.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1852,7 +1852,6 @@ impl<'test> TestCx<'test> {
18521852
if let Some(ref incremental_dir) = self.props.incremental_dir {
18531853
rustc.args(&["-C", &format!("incremental={}", incremental_dir.display())]);
18541854
rustc.args(&["-Z", "incremental-verify-ich"]);
1855-
rustc.args(&["-Z", "incremental-queries"]);
18561855
}
18571856

18581857
if self.config.mode == CodegenUnits {

0 commit comments

Comments
 (0)