Skip to content

Commit

Permalink
Adjust to make compatible with current libsyntax
Browse files Browse the repository at this point in the history
Was broken since rustc nightly 2017-03-01.
  • Loading branch information
Sander Maijers authored and Sander Maijers committed Mar 2, 2017
1 parent 2339922 commit dc16b66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maud_macros/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ impl<'cx, 'a, 'i> Parser<'cx, 'a, 'i> {
// ???
_ => {
if let [ref tt, ..] = *self.input {
parse_error!(self, tt.get_span(), "invalid syntax");
parse_error!(self, tt.span(), "invalid syntax");
} else {
parse_error!(self, self.span, "unexpected end of block");
}
Expand Down Expand Up @@ -369,7 +369,7 @@ impl<'cx, 'a, 'i> Parser<'cx, 'a, 'i> {
self.shift(1);
bodies.push(tt.clone());
},
[TokenTree::Token(sp, _), ..] | [TokenTree::Delimited(sp, _), ..] | [TokenTree::Sequence(sp, _), ..] => {
[TokenTree::Token(sp, _), ..] | [TokenTree::Delimited(sp, _), ..] => {
bodies.append(&mut self.match_body(sp)?);
},
}}
Expand Down

0 comments on commit dc16b66

Please sign in to comment.