This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -513,7 +513,7 @@ fn default_track_diagnostic(diag: Diagnostic, f: &mut dyn FnMut(Diagnostic)) {
513
513
( * f) ( diag)
514
514
}
515
515
516
- pub static TRACK_DIAGNOSTICS : AtomicRef < fn ( Diagnostic , & mut dyn FnMut ( Diagnostic ) ) > =
516
+ pub static TRACK_DIAGNOSTIC : AtomicRef < fn ( Diagnostic , & mut dyn FnMut ( Diagnostic ) ) > =
517
517
AtomicRef :: new ( & ( default_track_diagnostic as _ ) ) ;
518
518
519
519
#[ derive( Copy , Clone , Default ) ]
@@ -1309,18 +1309,18 @@ impl DiagCtxtInner {
1309
1309
&& !diagnostic. is_force_warn ( )
1310
1310
{
1311
1311
if diagnostic. has_future_breakage ( ) {
1312
- ( * TRACK_DIAGNOSTICS ) ( diagnostic, & mut |_| { } ) ;
1312
+ ( * TRACK_DIAGNOSTIC ) ( diagnostic, & mut |_| { } ) ;
1313
1313
}
1314
1314
return None ;
1315
1315
}
1316
1316
1317
1317
if matches ! ( diagnostic. level, Expect ( _) | Allow ) {
1318
- ( * TRACK_DIAGNOSTICS ) ( diagnostic, & mut |_| { } ) ;
1318
+ ( * TRACK_DIAGNOSTIC ) ( diagnostic, & mut |_| { } ) ;
1319
1319
return None ;
1320
1320
}
1321
1321
1322
1322
let mut guaranteed = None ;
1323
- ( * TRACK_DIAGNOSTICS ) ( diagnostic, & mut |mut diagnostic| {
1323
+ ( * TRACK_DIAGNOSTIC ) ( diagnostic, & mut |mut diagnostic| {
1324
1324
if let Some ( ref code) = diagnostic. code {
1325
1325
self . emitted_diagnostic_codes . insert ( code. clone ( ) ) ;
1326
1326
}
Original file line number Diff line number Diff line change 9
9
//! The functions in this file should fall back to the default set in their
10
10
//! origin crate when the `TyCtxt` is not present in TLS.
11
11
12
- use rustc_errors:: { Diagnostic , TRACK_DIAGNOSTICS } ;
12
+ use rustc_errors:: { Diagnostic , TRACK_DIAGNOSTIC } ;
13
13
use rustc_middle:: dep_graph:: { DepNodeExt , TaskDepsRef } ;
14
14
use rustc_middle:: ty:: tls;
15
15
use rustc_query_system:: dep_graph:: dep_node:: default_dep_kind_debug;
@@ -103,5 +103,5 @@ pub fn setup_callbacks() {
103
103
. swap ( & ( dep_kind_debug as fn ( _, & mut fmt:: Formatter < ' _ > ) -> _ ) ) ;
104
104
rustc_query_system:: dep_graph:: dep_node:: DEP_NODE_DEBUG
105
105
. swap ( & ( dep_node_debug as fn ( _, & mut fmt:: Formatter < ' _ > ) -> _ ) ) ;
106
- TRACK_DIAGNOSTICS . swap ( & ( track_diagnostic as _ ) ) ;
106
+ TRACK_DIAGNOSTIC . swap ( & ( track_diagnostic as _ ) ) ;
107
107
}
You can’t perform that action at this time.
0 commit comments