fix msrv incompatibility

This commit is contained in:
teoxoy 2022-03-22 16:37:06 +01:00 committed by Dzmitry Malyshau
parent 9dddfeec37
commit 800fc7471f

View File

@ -3312,12 +3312,13 @@ impl Parser {
.expressions .expressions
.append(crate::Expression::Binary { op, left, right }, span.into()) .append(crate::Expression::Binary { op, left, right }, span.into())
} }
(op @ Token::IncrementOperation | op @ Token::DecrementOperation, op_span) => { token @ (Token::IncrementOperation, _) | token @ (Token::DecrementOperation, _) => {
let op = match op { let op = match token.0 {
Token::IncrementOperation => Bo::Add, Token::IncrementOperation => Bo::Add,
Token::DecrementOperation => Bo::Subtract, Token::DecrementOperation => Bo::Subtract,
_ => unreachable!(), _ => unreachable!(),
}; };
let op_span = token.1;
// prepare the typifier, but work around mutable borrowing... // prepare the typifier, but work around mutable borrowing...
let _ = context.resolve_type(reference.handle)?; let _ = context.resolve_type(reference.handle)?;