From f96e960ccfa92895217562ede43043405194eab0 Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Thu, 12 Nov 2020 20:48:37 +0100 Subject: Access the session directly from DepContext. --- compiler/rustc_query_impl/src/plumbing.rs | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'compiler/rustc_query_impl/src') diff --git a/compiler/rustc_query_impl/src/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs index d4093f281dd..100e9c5ceb0 100644 --- a/compiler/rustc_query_impl/src/plumbing.rs +++ b/compiler/rustc_query_impl/src/plumbing.rs @@ -47,13 +47,6 @@ impl HasDepContext for QueryCtxt<'tcx> { impl QueryContext for QueryCtxt<'tcx> { type Query = Query<'tcx>; - fn incremental_verify_ich(&self) -> bool { - self.sess.opts.debugging_opts.incremental_verify_ich - } - fn verbose(&self) -> bool { - self.sess.verbose() - } - fn def_path_str(&self, def_id: DefId) -> String { self.tcx.def_path_str(def_id) } @@ -132,14 +125,6 @@ impl QueryContext for QueryCtxt<'tcx> { (cb.force_from_dep_node)(*self, dep_node) } - fn has_errors_or_delayed_span_bugs(&self) -> bool { - self.sess.has_errors_or_delayed_span_bugs() - } - - fn diagnostic(&self) -> &rustc_errors::Handler { - self.sess.diagnostic() - } - // Interactions with on_disk_cache fn load_diagnostics(&self, prev_dep_node_index: SerializedDepNodeIndex) -> Vec { self.on_disk_cache -- cgit 1.4.1-3-g733a5