Document that call expressions also represent ADT constructors.

This is a rather obscure part of the language.
This commit is contained in:
leonardo.yvens
2017-10-27 16:27:59 -02:00
parent bed9a85c40
commit 70479793ac
2 changed files with 6 additions and 2 deletions

View File

@@ -901,7 +901,9 @@ pub enum ExprKind {
/// A function call
///
/// The first field resolves to the function itself,
/// and the second field is the list of arguments
/// and the second field is the list of arguments.
/// This also represents calling the constructor of
/// tuple-like ADTs such as tuple structs and enum variants.
Call(P<Expr>, Vec<P<Expr>>),
/// A method call (`x.foo::<'static, Bar, Baz>(a, b, c, d)`)
///