diff options
| author | bors <bors@rust-lang.org> | 2024-02-18 05:06:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-18 05:06:28 +0000 |
| commit | 90fccaad801a929fc482dbbeca0231aa197de7c7 (patch) | |
| tree | 2425c84d0a9356e90dde5de808e5e5456df8e8be /compiler/rustc_mir_transform/src/errors.rs | |
| parent | 55f29d22b48c02f185fcfcfb34a1e3c78121cb7c (diff) | |
| parent | 7a83e2f30d92748640461edbd5812e7b9229e995 (diff) | |
Auto merge of #3305 - rust-lang:rustup-2024-02-18, r=saethlin
Automatic Rustup
Diffstat (limited to 'compiler/rustc_mir_transform/src/errors.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/errors.rs b/compiler/rustc_mir_transform/src/errors.rs index 30de40e226c..ff4918df9a2 100644 --- a/compiler/rustc_mir_transform/src/errors.rs +++ b/compiler/rustc_mir_transform/src/errors.rs @@ -270,7 +270,7 @@ impl<'a> DecorateLint<'a, ()> for MustNotSupend<'_, '_> { fn decorate_lint<'b>(self, diag: &'b mut rustc_errors::DiagnosticBuilder<'a, ()>) { diag.span_label(self.yield_sp, fluent::_subdiag::label); if let Some(reason) = self.reason { - diag.subdiagnostic(reason); + diag.subdiagnostic(diag.dcx, reason); } diag.span_help(self.src_sp, fluent::_subdiag::help); diag.arg("pre", self.pre); |
