diff options
| author | bors <bors@rust-lang.org> | 2024-02-28 20:39:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-28 20:39:38 +0000 |
| commit | c475e2303b551d726307c646181e0677af1e0069 (patch) | |
| tree | 1adcfeb24550451e018fe8928319a9fa68d53314 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | bf9c7a64ad222b85397573668b39e6d1ab9f4a72 (diff) | |
| parent | 8f3b007abca70140d354f19ece5745d1a2c5f2b2 (diff) | |
| download | rust-c475e2303b551d726307c646181e0677af1e0069.tar.gz rust-c475e2303b551d726307c646181e0677af1e0069.zip | |
Auto merge of #121489 - nnethercote:diag-renaming, r=davidtwco
Diagnostic renaming Renaming various diagnostic types from `Diagnostic*` to `Diag*`. Part of https://github.com/rust-lang/compiler-team/issues/722. There are more to do but this is enough for one PR. r? `@davidtwco`
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index f5d4f4f57b9..f5a7bfd42ff 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -26,7 +26,7 @@ use rustc_ast::{Arm, BlockCheckMode, Expr, ExprKind, Label, Movability, RangeLim use rustc_ast::{ClosureBinder, MetaItemLit, StmtKind}; use rustc_ast_pretty::pprust; use rustc_data_structures::stack::ensure_sufficient_stack; -use rustc_errors::{AddToDiagnostic, Applicability, DiagnosticBuilder, PResult, StashKey}; +use rustc_errors::{AddToDiagnostic, Applicability, Diag, PResult, StashKey}; use rustc_lexer::unescape::unescape_char; use rustc_macros::Subdiagnostic; use rustc_session::errors::{report_lit_error, ExprParenthesesNeeded}; @@ -866,7 +866,7 @@ impl<'a> Parser<'a> { ); let mut err = self.dcx().struct_span_err(span, msg); - let suggest_parens = |err: &mut DiagnosticBuilder<'_>| { + let suggest_parens = |err: &mut Diag<'_>| { let suggestions = vec