Add more track_caller

This commit is contained in:
mejrs 2022-10-31 16:14:29 +01:00
parent 0f35c0c672
commit cbeb244b05
13 changed files with 68 additions and 3 deletions

View file

@ -930,6 +930,7 @@ pub(crate) struct ExpectedIdentifier {
}
impl<'a, G: EmissionGuarantee> IntoDiagnostic<'a, G> for ExpectedIdentifier {
#[track_caller]
fn into_diagnostic(
self,
handler: &'a rustc_errors::Handler,
@ -977,6 +978,7 @@ pub(crate) struct ExpectedSemi {
}
impl<'a, G: EmissionGuarantee> IntoDiagnostic<'a, G> for ExpectedSemi {
#[track_caller]
fn into_diagnostic(
self,
handler: &'a rustc_errors::Handler,