Add more track_caller
This commit is contained in:
parent
0f35c0c672
commit
cbeb244b05
13 changed files with 68 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue