Use Session::diagnostic
in more places.
This commit is contained in:
parent
6e9573936f
commit
a179a53565
21 changed files with 51 additions and 66 deletions
|
@ -605,7 +605,7 @@ pub(crate) fn report_cycle<'a>(
|
|||
note_span: (),
|
||||
};
|
||||
|
||||
cycle_diag.into_diagnostic(&sess.parse_sess.span_diagnostic)
|
||||
cycle_diag.into_diagnostic(sess.diagnostic())
|
||||
}
|
||||
|
||||
pub fn print_query_stack<Qcx: QueryContext>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue