@@ -145,7 +145,6 @@ fn image_query_format_valid_kernel() {
145145 let text = [
146146 "OpCapability Kernel" ,
147147 "OpCapability Addresses" ,
148-
149148 "OpMemoryModel Physical64 OpenCL" ,
150149 "OpEntryPoint Kernel %main \" main\" " ,
151150 "%void = OpTypeVoid" ,
@@ -174,7 +173,6 @@ fn image_query_order_valid_kernel() {
174173 let text = [
175174 "OpCapability Kernel" ,
176175 "OpCapability Addresses" ,
177-
178176 "OpMemoryModel Physical64 OpenCL" ,
179177 "OpEntryPoint Kernel %main \" main\" " ,
180178 "%void = OpTypeVoid" ,
@@ -203,7 +201,6 @@ fn image_query_format_requires_int_scalar_result_kernel() {
203201 let text = [
204202 "OpCapability Kernel" ,
205203 "OpCapability Addresses" ,
206-
207204 "OpMemoryModel Physical64 OpenCL" ,
208205 "OpEntryPoint Kernel %main \" main\" " ,
209206 "%void = OpTypeVoid" ,
@@ -225,10 +222,7 @@ fn image_query_format_requires_int_scalar_result_kernel() {
225222 let err = validate_module ( & binary, TargetEnv :: Universal1_3 )
226223 . expect_err ( "OpImageQueryFormat with float result should fail" ) ;
227224 assert ! (
228- matches!(
229- err,
230- ValidationError :: ImageQueryResultTypeInvalid { .. }
231- ) ,
225+ matches!( err, ValidationError :: ImageQueryResultTypeInvalid { .. } ) ,
232226 "Expected ImageQueryResultTypeInvalid, got: {err:?}"
233227 ) ;
234228}
0 commit comments