Rename Handler as DiagCtxt.

This commit is contained in:
Nicholas Nethercote
2023-12-17 21:48:57 +11:00
parent 321b6565a5
commit cde19c016e
58 changed files with 216 additions and 204 deletions

View File

@@ -220,7 +220,7 @@ impl<'a> AstValidator<'a> {
}
}
fn err_handler(&self) -> &rustc_errors::Handler {
fn err_handler(&self) -> &rustc_errors::DiagCtxt {
self.session.diagnostic()
}
@@ -697,7 +697,7 @@ impl<'a> AstValidator<'a> {
/// Checks that generic parameters are in the correct order,
/// which is lifetimes, then types and then consts. (`<'a, T, const N: usize>`)
fn validate_generic_param_order(
handler: &rustc_errors::Handler,
handler: &rustc_errors::DiagCtxt,
generics: &[GenericParam],
span: Span,
) {