diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-17 21:48:57 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-18 16:06:19 +1100 |
| commit | cde19c016e4608288a02f5bdec0b5330d474c26f (patch) | |
| tree | 09dd310cfaaa8c3909727f8015245c9090a9b5bd /compiler/rustc_query_system/src/query/job.rs | |
| parent | 321b6565a5f8ebf6f23622fc91ea1191a54f2a38 (diff) | |
| download | rust-cde19c016e4608288a02f5bdec0b5330d474c26f.tar.gz rust-cde19c016e4608288a02f5bdec0b5330d474c26f.zip | |
Rename `Handler` as `DiagCtxt`.
Diffstat (limited to 'compiler/rustc_query_system/src/query/job.rs')
| -rw-r--r-- | compiler/rustc_query_system/src/query/job.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_query_system/src/query/job.rs b/compiler/rustc_query_system/src/query/job.rs index c431e966e44..8847bc72974 100644 --- a/compiler/rustc_query_system/src/query/job.rs +++ b/compiler/rustc_query_system/src/query/job.rs @@ -5,7 +5,7 @@ use crate::query::DepKind; use crate::query::{QueryContext, QueryStackFrame}; use rustc_data_structures::fx::FxHashMap; use rustc_errors::{ - Diagnostic, DiagnosticBuilder, ErrorGuaranteed, Handler, IntoDiagnostic, Level, + DiagCtxt, Diagnostic, DiagnosticBuilder, ErrorGuaranteed, IntoDiagnostic, Level, }; use rustc_hir::def::DefKind; use rustc_session::Session; @@ -610,12 +610,12 @@ pub(crate) fn report_cycle<'a>( pub fn print_query_stack<Qcx: QueryContext>( qcx: Qcx, mut current_query: Option<QueryJobId>, - handler: &Handler, + handler: &DiagCtxt, num_frames: Option<usize>, mut file: Option<std::fs::File>, ) -> usize { // Be careful relying on global state here: this code is called from - // a panic hook, which means that the global `Handler` may be in a weird + // a panic hook, which means that the global `DiagCtxt` may be in a weird // state if it was responsible for triggering the panic. let mut count_printed = 0; let mut count_total = 0; |
