Pass ErrorGuaranteed to cycle error
This commit is contained in:
@@ -41,7 +41,7 @@ use rustc_query_system::query::{
|
||||
};
|
||||
use rustc_query_system::HandleCycleError;
|
||||
use rustc_query_system::Value;
|
||||
use rustc_span::Span;
|
||||
use rustc_span::{ErrorGuaranteed, Span};
|
||||
|
||||
#[macro_use]
|
||||
mod plumbing;
|
||||
@@ -146,8 +146,9 @@ where
|
||||
self,
|
||||
tcx: TyCtxt<'tcx>,
|
||||
cycle: &[QueryInfo<DepKind>],
|
||||
guar: ErrorGuaranteed,
|
||||
) -> Self::Value {
|
||||
(self.dynamic.value_from_cycle_error)(tcx, cycle)
|
||||
(self.dynamic.value_from_cycle_error)(tcx, cycle, guar)
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
|
||||
Reference in New Issue
Block a user