diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2020-11-12 20:48:37 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-02-20 22:53:46 +0100 |
| commit | f96e960ccfa92895217562ede43043405194eab0 (patch) | |
| tree | 04e883ddf732fbdcc85c0f754d4bf617225faa5a /compiler/rustc_query_impl/src | |
| parent | 83b30a639d5abd1270ade35d9bd92271f5a5ba18 (diff) | |
| download | rust-f96e960ccfa92895217562ede43043405194eab0.tar.gz rust-f96e960ccfa92895217562ede43043405194eab0.zip | |
Access the session directly from DepContext.
Diffstat (limited to 'compiler/rustc_query_impl/src')
| -rw-r--r-- | compiler/rustc_query_impl/src/plumbing.rs | 15 |
1 files changed, 0 insertions, 15 deletions
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<Diagnostic> { self.on_disk_cache |
