Skip to content

Commit

Permalink
Blessed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oisyn authored and eddyb committed Sep 21, 2022
1 parent 2442d90 commit 9e2e667
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 14 deletions.
4 changes: 2 additions & 2 deletions tests/ui/dis/ptr_copy.normal.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
error: Cannot memcpy dynamically sized data
--> $CORE_SRC/intrinsics.rs:2343:9
--> $CORE_SRC/intrinsics.rs:2333:9
|
2343 | copy(src, dst, count)
2333 | copy(src, dst, count)
| ^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error
Expand Down
12 changes: 8 additions & 4 deletions tests/ui/image/gather_err.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
error[E0277]: the trait bound `Image<f32, 0, 2, 0, 0, 1, 0>: HasGather` is not satisfied
--> $DIR/gather_err.rs:15:34
--> $DIR/gather_err.rs:15:26
|
15 | let r1: glam::Vec4 = image1d.gather(*sampler, 0.0f32, 0);
| ^^^^^^ the trait `HasGather` is not implemented for `Image<f32, 0, 2, 0, 0, 1, 0>`
| ^^^^^^^ ------ required by a bound introduced by this call
| |
| the trait `HasGather` is not implemented for `Image<f32, 0, 2, 0, 0, 1, 0>`
|
= help: the following other types implement trait `HasGather`:
Image<SampledType, 1, DEPTH, ARRAYED, 0, SAMPLED, FORMAT>
Expand All @@ -15,10 +17,12 @@ note: required by a bound in `Image::<SampledType, DIM, DEPTH, ARRAYED, _, SAMPL
| ^^^^^^^^^ required by this bound in `Image::<SampledType, DIM, DEPTH, ARRAYED, _, SAMPLED, FORMAT>::gather`

error[E0277]: the trait bound `Image<f32, 2, 2, 0, 0, 1, 0>: HasGather` is not satisfied
--> $DIR/gather_err.rs:16:34
--> $DIR/gather_err.rs:16:26
|
16 | let r2: glam::Vec4 = image3d.gather(*sampler, v3, 0);
| ^^^^^^ the trait `HasGather` is not implemented for `Image<f32, 2, 2, 0, 0, 1, 0>`
| ^^^^^^^ ------ required by a bound introduced by this call
| |
| the trait `HasGather` is not implemented for `Image<f32, 2, 2, 0, 0, 1, 0>`
|
= help: the following other types implement trait `HasGather`:
Image<SampledType, 1, DEPTH, ARRAYED, 0, SAMPLED, FORMAT>
Expand Down
6 changes: 4 additions & 2 deletions tests/ui/image/query/query_levels_err.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
error[E0277]: the trait bound `Image<f32, 4, 2, 0, 0, 1, 0>: HasQueryLevels` is not satisfied
--> $DIR/query_levels_err.rs:12:21
--> $DIR/query_levels_err.rs:12:15
|
12 | *output = image.query_levels();
| ^^^^^^^^^^^^ the trait `HasQueryLevels` is not implemented for `Image<f32, 4, 2, 0, 0, 1, 0>`
| ^^^^^ ------------ required by a bound introduced by this call
| |
| the trait `HasQueryLevels` is not implemented for `Image<f32, 4, 2, 0, 0, 1, 0>`
|
= help: the following other types implement trait `HasQueryLevels`:
Image<SampledType, 0, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT>
Expand Down
6 changes: 4 additions & 2 deletions tests/ui/image/query/query_lod_err.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
error[E0277]: the trait bound `Image<f32, 4, 2, 0, 0, 1, 0>: HasQueryLevels` is not satisfied
--> $DIR/query_lod_err.rs:13:21
--> $DIR/query_lod_err.rs:13:15
|
13 | *output = image.query_lod(*sampler, glam::Vec2::new(0.0, 1.0));
| ^^^^^^^^^ the trait `HasQueryLevels` is not implemented for `Image<f32, 4, 2, 0, 0, 1, 0>`
| ^^^^^ --------- required by a bound introduced by this call
| |
| the trait `HasQueryLevels` is not implemented for `Image<f32, 4, 2, 0, 0, 1, 0>`
|
= help: the following other types implement trait `HasQueryLevels`:
Image<SampledType, 0, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT>
Expand Down
6 changes: 4 additions & 2 deletions tests/ui/image/query/query_size_err.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
error[E0277]: the trait bound `Image<f32, 1, 2, 0, 0, 1, 0>: HasQuerySize` is not satisfied
--> $DIR/query_size_err.rs:12:21
--> $DIR/query_size_err.rs:12:15
|
12 | *output = image.query_size();
| ^^^^^^^^^^ the trait `HasQuerySize` is not implemented for `Image<f32, 1, 2, 0, 0, 1, 0>`
| ^^^^^ ---------- required by a bound introduced by this call
| |
| the trait `HasQuerySize` is not implemented for `Image<f32, 1, 2, 0, 0, 1, 0>`
|
= help: the following other types implement trait `HasQuerySize`:
Image<SampledType, 0, DEPTH, ARRAYED, 0, 0, FORMAT>
Expand Down
6 changes: 4 additions & 2 deletions tests/ui/image/query/query_size_lod_err.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
error[E0277]: the trait bound `Image<f32, 4, 2, 0, 0, 1, 0>: HasQuerySizeLod` is not satisfied
--> $DIR/query_size_lod_err.rs:12:21
--> $DIR/query_size_lod_err.rs:12:15
|
12 | *output = image.query_size_lod(0);
| ^^^^^^^^^^^^^^ the trait `HasQuerySizeLod` is not implemented for `Image<f32, 4, 2, 0, 0, 1, 0>`
| ^^^^^ -------------- required by a bound introduced by this call
| |
| the trait `HasQuerySizeLod` is not implemented for `Image<f32, 4, 2, 0, 0, 1, 0>`
|
= help: the following other types implement trait `HasQuerySizeLod`:
Image<SampledType, 0, DEPTH, ARRAYED, 0, SAMPLED, FORMAT>
Expand Down

0 comments on commit 9e2e667

Please sign in to comment.