Use Session::diagnostic in more places.

This commit is contained in:
Nicholas Nethercote 2023-12-01 13:35:19 +11:00
parent 6e9573936f
commit a179a53565
21 changed files with 51 additions and 66 deletions

View file

@ -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>(