Skip to content

Commit

Permalink
Another use of turbofish_span
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Jul 26, 2024
1 parent 9f30730 commit e003b0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/noirc_frontend/src/elaborator/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1623,9 +1623,9 @@ impl<'context> Elaborator<'context> {
}

if segment.generics.is_some() {
// From "foo::<T>", create a span for just "::<T>"
let span = Span::from(segment.ident.span().end()..segment.span.end());
self.push_err(TypeCheckError::UnsupportedTurbofishUsage { span });
self.push_err(TypeCheckError::UnsupportedTurbofishUsage {
span: segment.turbofish_span(),
});
}
}
}
Expand Down

0 comments on commit e003b0b

Please sign in to comment.