Add #[track_caller] to struct_span_err_with_code (drive-by cleanup)

We use caller information to track where a diagnostic was created,
so all "helper" diagnostic functions should use `#[track_caller]`
This commit is contained in:
Maybe Waffle 2023-04-19 18:18:16 +00:00
parent ceabcd83e6
commit cfe5c3ca6c

View File

@ -469,6 +469,7 @@ impl<'cx, 'tcx> crate::MirBorrowckCtxt<'cx, 'tcx> {
}
#[rustc_lint_diagnostics]
#[track_caller]
pub(crate) fn struct_span_err_with_code<S: Into<MultiSpan>>(
&self,
sp: S,