| commit | 417305a41aa8145dab3a7edf24c5a4e65fbbaeb0 | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Wed Mar 18 13:54:00 2020 -0700 |
| committer | David Tolnay <dtolnay@gmail.com> | Wed Mar 18 17:03:26 2020 -0700 |
| tree | 156f32059a098794a6c63658bc652362beb9a55a | |
| parent | 35c82eb673314dee3b4e77cc600d1d2fa454c6c4 [diff] [blame] |
Add function pointer types to syntax tree
diff --git a/syntax/mod.rs b/syntax/mod.rs index f2e1c1c..6274cf1 100644 --- a/syntax/mod.rs +++ b/syntax/mod.rs
@@ -59,6 +59,7 @@ pub throws: bool, } +#[derive(Eq, PartialEq, Hash)] pub struct Var { pub ident: Ident, pub ty: Type, @@ -75,6 +76,7 @@ UniquePtr(Box<Ty1>), Ref(Box<Ref>), Str(Box<Ref>), + Fn(Box<Signature>), Void(Span), }