diff options
| author | bors <bors@rust-lang.org> | 2024-06-19 06:26:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-06-19 06:26:33 +0000 |
| commit | ac4f1c41292c5b5e72e42ebdff38cb04cf9f304d (patch) | |
| tree | 6ad18502b12564bac17108d771d900947abbefcb /compiler/rustc_hir_analysis/src/errors.rs | |
| parent | 62ef90cf46ebe1c52b9757171a3067dcde629823 (diff) | |
| parent | 3e93254d5e2efb3d2dd738833142de9274c7b191 (diff) | |
| download | rust-ac4f1c41292c5b5e72e42ebdff38cb04cf9f304d.tar.gz rust-ac4f1c41292c5b5e72e42ebdff38cb04cf9f304d.zip | |
Auto merge of #3685 - rust-lang:rustup-2024-06-19, r=RalfJung
Automatic Rustup
Diffstat (limited to 'compiler/rustc_hir_analysis/src/errors.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/errors.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_hir_analysis/src/errors.rs b/compiler/rustc_hir_analysis/src/errors.rs index 41dceea2e32..cff8d5a5ea5 100644 --- a/compiler/rustc_hir_analysis/src/errors.rs +++ b/compiler/rustc_hir_analysis/src/errors.rs @@ -2,7 +2,7 @@ use crate::fluent_generated as fluent; use rustc_errors::{ - codes::*, Applicability, Diag, DiagCtxt, Diagnostic, EmissionGuarantee, Level, MultiSpan, + codes::*, Applicability, Diag, DiagCtxtHandle, Diagnostic, EmissionGuarantee, Level, MultiSpan, }; use rustc_macros::{Diagnostic, LintDiagnostic, Subdiagnostic}; use rustc_middle::ty::Ty; @@ -424,7 +424,7 @@ pub struct MissingTypeParams { // Manual implementation of `Diagnostic` to be able to call `span_to_snippet`. impl<'a, G: EmissionGuarantee> Diagnostic<'a, G> for MissingTypeParams { #[track_caller] - fn into_diag(self, dcx: &'a DiagCtxt, level: Level) -> Diag<'a, G> { + fn into_diag(self, dcx: DiagCtxtHandle<'a>, level: Level) -> Diag<'a, G> { let mut err = Diag::new(dcx, level, fluent::hir_analysis_missing_type_params); err.span(self.span); err.code(E0393); |
