1
Fork 0

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

@ -252,6 +252,7 @@ pub struct MissingTypeParams {
// Manual implementation of `IntoDiagnostic` to be able to call `span_to_snippet`.
impl<'a> IntoDiagnostic<'a> for MissingTypeParams {
#[track_caller]
fn into_diagnostic(self, handler: &'a Handler) -> DiagnosticBuilder<'a, ErrorGuaranteed> {
let mut err = handler.struct_span_err_with_code(
self.span,