mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-12-12 08:35:40 +00:00
fix msrv incompatibility
This commit is contained in:
parent
9dddfeec37
commit
800fc7471f
@ -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)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user