Rework diagnostics for wrong number of generic args
This commit is contained in:
parent
34628e5b53
commit
d2f8e398f1
121 changed files with 2787 additions and 766 deletions
|
@ -242,12 +242,21 @@ impl Into<Option<P<GenericArgs>>> for ParenthesizedArgs {
|
|||
/// A path like `Foo(A, B) -> C`.
|
||||
#[derive(Clone, Encodable, Decodable, Debug)]
|
||||
pub struct ParenthesizedArgs {
|
||||
/// Overall span
|
||||
/// ```text
|
||||
/// Foo(A, B) -> C
|
||||
/// ^^^^^^^^^^^^^^
|
||||
/// ```
|
||||
pub span: Span,
|
||||
|
||||
/// `(A, B)`
|
||||
pub inputs: Vec<P<Ty>>,
|
||||
|
||||
/// ```text
|
||||
/// Foo(A, B) -> C
|
||||
/// ^^^^^^
|
||||
/// ```
|
||||
pub inputs_span: Span,
|
||||
|
||||
/// `C`
|
||||
pub output: FnRetTy,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue