Skip to content

Commit

Permalink
Update UI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LegNeato committed Nov 27, 2023
1 parent bf198cb commit 5fad9dd
Show file tree
Hide file tree
Showing 17 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion tests/ui/dis/ptr_read.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%4 = OpFunctionParameter %5
%6 = OpFunctionParameter %5
%7 = OpLabel
OpLine %8 1183 8
OpLine %8 1200 8
%9 = OpLoad %10 %4
OpLine %11 7 13
OpStore %6 %9
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/dis/ptr_read_method.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%4 = OpFunctionParameter %5
%6 = OpFunctionParameter %5
%7 = OpLabel
OpLine %8 1183 8
OpLine %8 1200 8
%9 = OpLoad %10 %4
OpLine %11 7 13
OpStore %6 %9
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/dis/ptr_write.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
%7 = OpLabel
OpLine %8 7 35
%9 = OpLoad %10 %4
OpLine %11 1382 8
OpLine %11 1400 8
OpStore %6 %9
OpNoLine
OpReturn
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/dis/ptr_write_method.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
%7 = OpLabel
OpLine %8 7 37
%9 = OpLoad %10 %4
OpLine %11 1382 8
OpLine %11 1400 8
OpStore %6 %9
OpNoLine
OpReturn
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/image/query/query_levels_err.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ note: required by a bound in `Image::<SampledType, DIM, DEPTH, ARRAYED, MULTISAM
881 | Self: HasQueryLevels,
| ^^^^^^^^^^^^^^ required by this bound in `Image::<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>::query_levels`

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0277`.
2 changes: 1 addition & 1 deletion tests/ui/image/query/query_lod_err.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ note: required by a bound in `Image::<SampledType, DIM, DEPTH, ARRAYED, MULTISAM
907 | Self: HasQueryLevels,
| ^^^^^^^^^^^^^^ required by this bound in `Image::<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>::query_lod`

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0277`.
2 changes: 1 addition & 1 deletion tests/ui/image/query/query_size_err.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ note: required by a bound in `Image::<SampledType, DIM, DEPTH, ARRAYED, MULTISAM
938 | Self: HasQuerySize,
| ^^^^^^^^^^^^ required by this bound in `Image::<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>::query_size`

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0277`.
2 changes: 1 addition & 1 deletion tests/ui/image/query/query_size_lod_err.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ note: required by a bound in `Image::<SampledType, DIM, DEPTH, ARRAYED, spirv_st
982 | Self: HasQuerySizeLod,
| ^^^^^^^^^^^^^^^ required by this bound in `Image::<SampledType, DIM, DEPTH, ARRAYED, spirv_std::::image::{impl#7}::{constant#0}, SAMPLED, FORMAT, COMPONENTS>::query_size_lod`

error: aborting due to previous error
error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0277`.
2 changes: 1 addition & 1 deletion tests/ui/lang/control_flow/issue_764.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error: module has recursion, which is not allowed: `<(i32, issue_764::Transform2D) as issue_764::GivesFinalTransform>::get_final_transform` calls `<(i32, issue_764::Transform2D) as issue_764::GivesFinalTransform>::get_final_transform`

error: aborting due to previous error
error: aborting due to 1 previous error

2 changes: 1 addition & 1 deletion tests/ui/lang/core/ptr/allocate_const_scalar.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ note: called by `main`
15 | pub fn main(output: &mut Unique<[u8; 4]>) {
| ^^^^

error: aborting due to previous error
error: aborting due to 1 previous error

2 changes: 1 addition & 1 deletion tests/ui/lang/core/ref/member_ref_arg-broken.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ error: error:0:0 - OpLoad Pointer <id> '$ID[%$ID]' is not a logical pointer.
= note: spirv-val failed
= note: module `$TEST_BUILD_DIR/lang/core/ref/member_ref_arg-broken.default`

error: aborting due to previous error; 2 warnings emitted
error: aborting due to 1 previous error; 2 warnings emitted

4 changes: 2 additions & 2 deletions tests/ui/lang/core/unwrap_or.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
OpLine %5 13 11
%6 = OpCompositeInsert %7 %8 %9 0
%10 = OpCompositeExtract %11 %6 1
OpLine %12 956 14
OpLine %12 952 14
%13 = OpBitcast %14 %8
OpLine %12 956 8
OpLine %12 952 8
%15 = OpIEqual %16 %13 %17
OpNoLine
OpSelectionMerge %18 None
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/spirv-attr/invalid-matrix-type-empty.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ error: #[spirv(matrix)] type must have at least two fields
7 | pub struct EmptyStruct {}
| ^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error
error: aborting due to 1 previous error

24 changes: 12 additions & 12 deletions tests/ui/spirv-attr/invalid-target.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -1679,39 +1679,39 @@ error: attribute is only valid on a function, not on a lifetime parameter
| ^^^^^^

error: attribute is only valid on a function parameter, not on a lifetime parameter
--> $DIR/invalid-target.rs:308:9
--> $DIR/invalid-target.rs:309:9
|
308 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only
309 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only
| ^^^^^^^

error: attribute is only valid on a function parameter, not on a lifetime parameter
--> $DIR/invalid-target.rs:308:18
--> $DIR/invalid-target.rs:309:18
|
308 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only
309 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only
| ^^^^^^^^

error: attribute is only valid on a function parameter, not on a lifetime parameter
--> $DIR/invalid-target.rs:308:28
--> $DIR/invalid-target.rs:309:28
|
308 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only
309 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only
| ^^^^^^^^^^^^^^^^^^

error: attribute is only valid on a function parameter, not on a lifetime parameter
--> $DIR/invalid-target.rs:308:48
--> $DIR/invalid-target.rs:309:48
|
308 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only
309 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only
| ^^^^^^^^^^^

error: attribute is only valid on a function parameter, not on a lifetime parameter
--> $DIR/invalid-target.rs:308:61
--> $DIR/invalid-target.rs:309:61
|
308 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only
309 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only
| ^^^^

error: attribute is only valid on a function parameter, not on a lifetime parameter
--> $DIR/invalid-target.rs:308:67
--> $DIR/invalid-target.rs:309:67
|
308 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only
309 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only
| ^^^^^^^^^

error: attribute is only valid on a struct, not on a type parameter
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/spirv-attr/invariant-invalid.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ error: `#[spirv(invariant)]` is only valid on Output variables
7 | pub fn main(#[spirv(invariant)] input: f32) {}
| ^^^^^^^^^

error: aborting due to previous error
error: aborting due to 1 previous error

Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ warning: use &[T] instead of &RuntimeArray<T>
8 | #[spirv(uniform, descriptor_set = 0, binding = 0)] two: &RuntimeArray<u32>,
| ^^^^^^^^^^^^^^^^^^

error: aborting due to previous error; 1 warning emitted
error: aborting due to 1 previous error; 1 warning emitted

2 changes: 1 addition & 1 deletion tests/ui/target_features_err.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error: Invalid Capability: `rayTracingKHR`

error: aborting due to previous error
error: aborting due to 1 previous error

0 comments on commit 5fad9dd

Please sign in to comment.