Use the span of the types that don't fit, rather than the span of the whole signature.
[workspace.dependencies]
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.