We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6b82ff commit 97d831dCopy full SHA for 97d831d
compiler/rustc_query_system/src/values.rs
@@ -6,10 +6,13 @@ pub trait Value<Tcx: DepContext, D: DepKind>: Sized {
6
}
7
8
impl<Tcx: DepContext, T, D: DepKind> Value<Tcx, D> for T {
9
- default fn from_cycle_error(tcx: Tcx, _: &[QueryInfo<D>]) -> T {
+ default fn from_cycle_error(tcx: Tcx, cycle: &[QueryInfo<D>]) -> T {
10
tcx.sess().abort_if_errors();
11
// Ideally we would use `bug!` here. But bug! is only defined in rustc_middle, and it's
12
// non-trivial to define it earlier.
13
- panic!("Value::from_cycle_error called without errors");
+ panic!(
14
+ "<{} as Value>::from_cycle_error called without errors: {cycle:#?}",
15
+ std::any::type_name::<T>()
16
+ );
17
18
0 commit comments