5685abc96b
Using new support for spanless subdiagnostics from `()` fields in the diagnostic derive, simplify the "explicit generic args with impl trait" diagnostic's struct. Signed-off-by: David Wood <david.wood@huawei.com>
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.