Rename many DiagCtxt arguments.

This commit is contained in:
Nicholas Nethercote 2023-12-18 10:15:45 +11:00
parent 4dc7fab56f
commit f422dca3ae
44 changed files with 317 additions and 353 deletions

View file

@ -385,9 +385,9 @@ pub(crate) fn run_global_ctxt(
);
}
fn report_deprecated_attr(name: &str, diag: &rustc_errors::DiagCtxt, sp: Span) {
fn report_deprecated_attr(name: &str, dcx: &rustc_errors::DiagCtxt, sp: Span) {
let mut msg =
diag.struct_span_warn(sp, format!("the `#![doc({name})]` attribute is deprecated"));
dcx.struct_span_warn(sp, format!("the `#![doc({name})]` attribute is deprecated"));
msg.note(
"see issue #44136 <https://github.com/rust-lang/rust/issues/44136> \
for more information",