Skip to content

Commit 4334f57

Browse files
committed
Move try_print_query_stack to rustc_interface.
1 parent 2c302b2 commit 4334f57

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/driver.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@
1111
extern crate rustc_driver;
1212
extern crate rustc_errors;
1313
extern crate rustc_interface;
14-
extern crate rustc_middle;
1514

1615
use rustc_interface::interface;
17-
use rustc_middle::ty::TyCtxt;
1816
use rustc_tools_util::VersionInfo;
1917

2018
use std::borrow::Cow;
@@ -168,7 +166,7 @@ fn report_clippy_ice(info: &panic::PanicInfo<'_>, bug_report_url: &str) {
168166

169167
let num_frames = if backtrace { None } else { Some(2) };
170168

171-
TyCtxt::try_print_query_stack(&handler, num_frames);
169+
interface::try_print_query_stack(&handler, num_frames);
172170
}
173171

174172
fn toolchain_path(home: Option<String>, toolchain: Option<String>) -> Option<PathBuf> {

0 commit comments

Comments
 (0)