We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b31654d commit e3c3f88Copy full SHA for e3c3f88
1 file changed
src/annot.rs
@@ -835,6 +835,26 @@ where
835
fn parse_sort(&mut self) -> Result<chc::Sort> {
836
let tt = self.next_token_tree("sort")?.clone();
837
match tt {
838
+ TokenTree::Token(
839
+ Token {
840
+ kind: TokenKind::BinOp(BinOpToken::And),
841
+ ..
842
+ },
843
+ _,
844
+ ) => match self.look_ahead_token(0) {
845
+ Some(Token {
846
+ kind: TokenKind::Ident(sym, _),
847
848
+ }) if sym.as_str() == "mut" => {
849
+ self.consume();
850
+ let inner_sort = self.parse_sort()?;
851
+ Ok(chc::Sort::mut_(inner_sort))
852
+ }
853
+ _ => {
854
855
+ Ok(chc::Sort::box_(inner_sort))
856
857
858
TokenTree::Token(
859
Token {
860
kind: TokenKind::Ident(sym, _),
0 commit comments