mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
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
@ -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…
Reference in New Issue
Block a user