Skip to content

Commit cde19c0

Browse files
committedDec 18, 2023
Rename Handler as DiagCtxt.
1 parent 321b656 commit cde19c0

File tree

58 files changed

+216
-204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+216
-204
lines changed
 

‎compiler/rustc_ast_passes/src/ast_validation.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ impl<'a> AstValidator<'a> {
220220
}
221221
}
222222

223-
fn err_handler(&self) -> &rustc_errors::Handler {
223+
fn err_handler(&self) -> &rustc_errors::DiagCtxt {
224224
self.session.diagnostic()
225225
}
226226

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

‎compiler/rustc_ast_passes/src/show_span.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl FromStr for Mode {
3131
}
3232

3333
struct ShowSpanVisitor<'a> {
34-
span_diagnostic: &'a rustc_errors::Handler,
34+
span_diagnostic: &'a rustc_errors::DiagCtxt,
3535
mode: Mode,
3636
}
3737

@@ -58,7 +58,7 @@ impl<'a> Visitor<'a> for ShowSpanVisitor<'a> {
5858
}
5959
}
6060

61-
pub fn run(span_diagnostic: &rustc_errors::Handler, mode: &str, krate: &ast::Crate) {
61+
pub fn run(span_diagnostic: &rustc_errors::DiagCtxt, mode: &str, krate: &ast::Crate) {
6262
let Ok(mode) = mode.parse() else {
6363
return;
6464
};

0 commit comments

Comments
 (0)