Make ann_pattern and ann_type references

This commit is contained in:
Richard Feldman 2020-11-03 20:18:11 -05:00 committed by Sébastien Besnier
parent b0e4f4c97f
commit 6c01d02de0
3 changed files with 7 additions and 7 deletions

View file

@ -278,8 +278,8 @@ pub enum Def<'a> {
Body(&'a Loc<Pattern<'a>>, &'a Loc<Expr<'a>>),
AnnotatedBody {
ann_pattern: Loc<Pattern<'a>>,
ann_type: Loc<TypeAnnotation<'a>>,
ann_pattern: &'a Loc<Pattern<'a>>,
ann_type: &'a Loc<TypeAnnotation<'a>>,
comment: Option<&'a str>,
body_pattern: &'a Loc<Pattern<'a>>,
body_expr: &'a Loc<Expr<'a>>,