diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-09 12:35:03 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-11 07:55:03 +1100 |
| commit | 06cf8819690c586fe3bf0b710e6859202095ac15 (patch) | |
| tree | c8b4ff3277f5108f96a441349616ed631cad3fe8 /compiler/rustc_interface/src/callbacks.rs | |
| parent | a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01 (diff) | |
| download | rust-06cf8819690c586fe3bf0b710e6859202095ac15.tar.gz rust-06cf8819690c586fe3bf0b710e6859202095ac15.zip | |
Rename `TRACK_DIAGNOSTICS` as `TRACK_DIAGNOSTIC`.
Because the values put into it are functions named `track_diagnostic` and `default_track_diagnostic`.
Diffstat (limited to 'compiler/rustc_interface/src/callbacks.rs')
| -rw-r--r-- | compiler/rustc_interface/src/callbacks.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_interface/src/callbacks.rs b/compiler/rustc_interface/src/callbacks.rs index 7458be2c86d..8c7e49b51f9 100644 --- a/compiler/rustc_interface/src/callbacks.rs +++ b/compiler/rustc_interface/src/callbacks.rs @@ -9,7 +9,7 @@ //! The functions in this file should fall back to the default set in their //! origin crate when the `TyCtxt` is not present in TLS. -use rustc_errors::{Diagnostic, TRACK_DIAGNOSTICS}; +use rustc_errors::{Diagnostic, TRACK_DIAGNOSTIC}; use rustc_middle::dep_graph::{DepNodeExt, TaskDepsRef}; use rustc_middle::ty::tls; use rustc_query_system::dep_graph::dep_node::default_dep_kind_debug; @@ -103,5 +103,5 @@ pub fn setup_callbacks() { .swap(&(dep_kind_debug as fn(_, &mut fmt::Formatter<'_>) -> _)); rustc_query_system::dep_graph::dep_node::DEP_NODE_DEBUG .swap(&(dep_node_debug as fn(_, &mut fmt::Formatter<'_>) -> _)); - TRACK_DIAGNOSTICS.swap(&(track_diagnostic as _)); + TRACK_DIAGNOSTIC.swap(&(track_diagnostic as _)); } |
