mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
chore(naga): remove broken Unsupported64Bit tests
Seemingly missed in 4e6f873da5.
This commit is contained in:
@@ -1793,46 +1793,3 @@ fn f64_const_literals() {
|
||||
);
|
||||
assert!(result.is_ok());
|
||||
}
|
||||
|
||||
/// Using I64 in a function's expression arena is forbidden.
|
||||
#[test]
|
||||
fn i64_runtime_literals() {
|
||||
let result = validate_with_expression(
|
||||
crate::Expression::Literal(crate::Literal::I64(1729)),
|
||||
// There is no capability that enables this.
|
||||
super::Capabilities::all(),
|
||||
);
|
||||
let error = result.unwrap_err().into_inner();
|
||||
assert!(matches!(
|
||||
error,
|
||||
crate::valid::ValidationError::Function {
|
||||
source: super::FunctionError::Expression {
|
||||
source: super::ExpressionError::Literal(super::LiteralError::Width(
|
||||
super::r#type::WidthError::Unsupported64Bit
|
||||
),),
|
||||
..
|
||||
},
|
||||
..
|
||||
}
|
||||
));
|
||||
}
|
||||
|
||||
/// Using I64 in a module's constant expression arena is forbidden.
|
||||
#[test]
|
||||
fn i64_const_literals() {
|
||||
let result = validate_with_const_expression(
|
||||
crate::Expression::Literal(crate::Literal::I64(1729)),
|
||||
// There is no capability that enables this.
|
||||
super::Capabilities::all(),
|
||||
);
|
||||
let error = result.unwrap_err().into_inner();
|
||||
assert!(matches!(
|
||||
error,
|
||||
crate::valid::ValidationError::ConstExpression {
|
||||
source: super::ConstExpressionError::Literal(super::LiteralError::Width(
|
||||
super::r#type::WidthError::Unsupported64Bit,
|
||||
),),
|
||||
..
|
||||
}
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user