Rename Session::span_diagnostic
as Session::dcx
.
This commit is contained in:
parent
9df1576e1d
commit
09af8a667c
66 changed files with 176 additions and 204 deletions
|
@ -924,7 +924,7 @@ impl<D: Deps> DepGraphData<D> {
|
|||
// Promote the previous diagnostics to the current session.
|
||||
qcx.store_side_effects(dep_node_index, side_effects.clone());
|
||||
|
||||
let handle = qcx.dep_context().sess().diagnostic();
|
||||
let handle = qcx.dep_context().sess().dcx();
|
||||
|
||||
for diagnostic in side_effects.diagnostics {
|
||||
handle.emit_diagnostic(diagnostic);
|
||||
|
|
|
@ -604,7 +604,7 @@ pub(crate) fn report_cycle<'a>(
|
|||
note_span: (),
|
||||
};
|
||||
|
||||
cycle_diag.into_diagnostic(sess.diagnostic())
|
||||
cycle_diag.into_diagnostic(sess.dcx())
|
||||
}
|
||||
|
||||
pub fn print_query_stack<Qcx: QueryContext>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue