cl-ast: allow TyRef to be mutable

yaml.rs: Print AddrOf and TyRef the same way
This commit is contained in:
2024-04-16 20:35:27 -05:00
parent 75adbd6473
commit 98868d3960
4 changed files with 12 additions and 8 deletions

View File

@@ -671,7 +671,7 @@ impl<'t> Parser<'t> {
}
self.consume_peeked();
}
Ok(TyRef { count, to: self.path()? })
Ok(TyRef { count, mutable: self.mutability()?, to: self.path()? })
}
/// [TyFn] = `fn` [TyTuple] (-> [Ty])?
pub fn tyfn(&mut self) -> PResult<TyFn> {