diff options
| author | Michael Goulet <michael@errs.io> | 2022-10-06 21:39:37 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-11-09 19:42:23 +0000 |
| commit | fbce7decd82482466b8da8b1826a73ff49b8fbbd (patch) | |
| tree | f4f190fa1c80464ede185d148dce8899a9e087f2 /compiler/rustc_passes/src | |
| parent | cc9b259b5e94e4543b96dca236e3a1af5ec496c9 (diff) | |
| download | rust-fbce7decd82482466b8da8b1826a73ff49b8fbbd.tar.gz rust-fbce7decd82482466b8da8b1826a73ff49b8fbbd.zip | |
DiagnosticBuilder -> Diagnostic
Diffstat (limited to 'compiler/rustc_passes/src')
| -rw-r--r-- | compiler/rustc_passes/src/liveness.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/liveness.rs b/compiler/rustc_passes/src/liveness.rs index c6fe40f72fc..c181de48a9a 100644 --- a/compiler/rustc_passes/src/liveness.rs +++ b/compiler/rustc_passes/src/liveness.rs @@ -87,6 +87,7 @@ use self::VarKind::*; use rustc_ast::InlineAsmOptions; use rustc_data_structures::fx::FxIndexMap; use rustc_errors::Applicability; +use rustc_errors::Diagnostic; use rustc_hir as hir; use rustc_hir::def::*; use rustc_hir::def_id::{DefId, LocalDefId}; @@ -1690,7 +1691,7 @@ impl<'tcx> Liveness<'_, 'tcx> { &self, name: &str, opt_body: Option<&hir::Body<'_>>, - err: &mut rustc_errors::DiagnosticBuilder<'_, ()>, + err: &mut Diagnostic, ) -> bool { let mut has_litstring = false; let Some(opt_body) = opt_body else {return false;}; |
