diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2020-04-08 20:47:36 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-02-19 17:51:55 +0100 |
| commit | 4334f57feb2975908439f27c8cd811686282c5f6 (patch) | |
| tree | c543877c6ac814495739524576d228ea7d739658 | |
| parent | 2c302b246ede1bc03be3b9ecabdde7e775fe02e2 (diff) | |
Move try_print_query_stack to rustc_interface.
| -rw-r--r-- | src/driver.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/driver.rs b/src/driver.rs index f5f6c09ed8e..d5143e1438e 100644 --- a/src/driver.rs +++ b/src/driver.rs @@ -11,10 +11,8 @@ extern crate rustc_driver; extern crate rustc_errors; extern crate rustc_interface; -extern crate rustc_middle; use rustc_interface::interface; -use rustc_middle::ty::TyCtxt; use rustc_tools_util::VersionInfo; use std::borrow::Cow; @@ -168,7 +166,7 @@ fn report_clippy_ice(info: &panic::PanicInfo<'_>, bug_report_url: &str) { let num_frames = if backtrace { None } else { Some(2) }; - TyCtxt::try_print_query_stack(&handler, num_frames); + interface::try_print_query_stack(&handler, num_frames); } fn toolchain_path(home: Option<String>, toolchain: Option<String>) -> Option<PathBuf> { |
