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:
parent
ceabcd83e6
commit
cfe5c3ca6c
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue