Skip to content

Commit b14d54d

Browse files
authored
Rollup merge of #83974 - pierwill:fix-callbacks-names, r=jyn514
Fix outdated crate names in `rustc_interface::callbacks`
2 parents 1ab186a + 934a30a commit b14d54d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

compiler/rustc_interface/src/callbacks.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Throughout the compiler tree, there are several places which want to have
22
//! access to state or queries while being inside crates that are dependencies
3-
//! of librustc_middle. To facilitate this, we have the
3+
//! of `rustc_middle`. To facilitate this, we have the
44
//! `rustc_data_structures::AtomicRef` type, which allows us to setup a global
55
//! static which can then be set in this file at program startup.
66
//!
@@ -13,8 +13,8 @@ use rustc_errors::{Diagnostic, TRACK_DIAGNOSTICS};
1313
use rustc_middle::ty::tls;
1414
use std::fmt;
1515

16-
/// This is a callback from librustc_ast as it cannot access the implicit state
17-
/// in librustc_middle otherwise.
16+
/// This is a callback from `rustc_ast` as it cannot access the implicit state
17+
/// in `rustc_middle` otherwise.
1818
fn span_debug(span: rustc_span::Span, f: &mut fmt::Formatter<'_>) -> fmt::Result {
1919
tls::with_opt(|tcx| {
2020
if let Some(tcx) = tcx {
@@ -25,8 +25,8 @@ fn span_debug(span: rustc_span::Span, f: &mut fmt::Formatter<'_>) -> fmt::Result
2525
})
2626
}
2727

28-
/// This is a callback from librustc_ast as it cannot access the implicit state
29-
/// in librustc_middle otherwise. It is used to when diagnostic messages are
28+
/// This is a callback from `rustc_ast` as it cannot access the implicit state
29+
/// in `rustc_middle` otherwise. It is used to when diagnostic messages are
3030
/// emitted and stores them in the current query, if there is one.
3131
fn track_diagnostic(diagnostic: &Diagnostic) {
3232
tls::with_context_opt(|icx| {
@@ -39,8 +39,8 @@ fn track_diagnostic(diagnostic: &Diagnostic) {
3939
})
4040
}
4141

42-
/// This is a callback from librustc_hir as it cannot access the implicit state
43-
/// in librustc_middle otherwise.
42+
/// This is a callback from `rustc_hir` as it cannot access the implicit state
43+
/// in `rustc_middle` otherwise.
4444
fn def_id_debug(def_id: rustc_hir::def_id::DefId, f: &mut fmt::Formatter<'_>) -> fmt::Result {
4545
write!(f, "DefId({}:{}", def_id.krate, def_id.index.index())?;
4646
tls::with_opt(|opt_tcx| {

0 commit comments

Comments
 (0)