fix >= in template list matching for a<b>=c (#6898)

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
This commit is contained in:
Kent Slaney
2025-01-15 09:25:04 -08:00
committed by GitHub
parent be95178709
commit a32467041d
3 changed files with 11 additions and 3 deletions

View File

@@ -241,6 +241,7 @@ By @wumpf in [#6849](https://github.com/gfx-rs/wgpu/pull/6849).
- Fix crash when a texture argument is missing. By @aedm in [#6486](https://github.com/gfx-rs/wgpu/pull/6486)
- Emit an error in constant evaluation, rather than crash, in certain cases where `vecN` constructors have less than N arguments. By @ErichDonGubler in [#6508](https://github.com/gfx-rs/wgpu/pull/6508).
- Fix an error in template list matching `>=` in `a<b>=c`. By @KentSlaney in [#6898](https://github.com/gfx-rs/wgpu/pull/6898).
- Correctly validate handles in override-sized array types. By @jimblandy in [#6882](https://github.com/gfx-rs/wgpu/pull/6882).
- Clean up validation of `Statement::ImageStore`. By @jimblandy in [#6729](https://github.com/gfx-rs/wgpu-pull/6729).
- In compaction, avoid cloning the type arena. By @jimblandy in [#6790](https://github.com/gfx-rs/wgpu-pull/6790)

View File

@@ -950,9 +950,6 @@ impl Parser {
match enclosing {
Some(Rule::GenericExpr) => |token| match token {
Token::LogicalOperation('<') => Some(crate::BinaryOperator::LessEqual),
Token::LogicalOperation('>') => {
Some(crate::BinaryOperator::GreaterEqual)
}
_ => None,
},
_ => |token| match token {

View File

@@ -0,0 +1,10 @@
@group(0) @binding(0)
var<storage, read_write> out: array<i32, 2>;
@compute @workgroup_size(1)
fn main() {
var tmp: array<i32, 1 << 1>=array(1, 2);
for (var i = 0; i < 2; i++) {
out[i] = tmp[i];
}
}