From a31227805441df6a330cdd6ebbe8a1b009367087 Mon Sep 17 00:00:00 2001 From: firestar99 Date: Tue, 14 Oct 2025 13:10:06 +0200 Subject: [PATCH 1/2] compiletest: normalize subgroup tests --- tests/compiletests/ui/arch/subgroup/subgroup_ballot.rs | 1 + tests/compiletests/ui/arch/subgroup/subgroup_ballot.stderr | 2 -- .../compiletests/ui/arch/subgroup/subgroup_ballot_bit_count.rs | 1 + .../ui/arch/subgroup/subgroup_ballot_bit_count.stderr | 1 - tests/compiletests/ui/arch/subgroup/subgroup_broadcast_first.rs | 1 + .../ui/arch/subgroup/subgroup_broadcast_first.stderr | 1 - tests/compiletests/ui/arch/subgroup/subgroup_elect.rs | 1 + tests/compiletests/ui/arch/subgroup/subgroup_elect.stderr | 1 - tests/compiletests/ui/arch/subgroup/subgroup_i_add_clustered.rs | 1 + .../ui/arch/subgroup/subgroup_i_add_clustered.stderr | 1 - .../ui/arch/subgroup/subgroup_i_add_exclusive_scan.rs | 1 + .../ui/arch/subgroup/subgroup_i_add_exclusive_scan.stderr | 1 - .../ui/arch/subgroup/subgroup_i_add_inclusive_scan.rs | 1 + .../ui/arch/subgroup/subgroup_i_add_inclusive_scan.stderr | 1 - tests/compiletests/ui/arch/subgroup/subgroup_i_add_reduce.rs | 1 + .../compiletests/ui/arch/subgroup/subgroup_i_add_reduce.stderr | 1 - 16 files changed, 8 insertions(+), 9 deletions(-) diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_ballot.rs b/tests/compiletests/ui/arch/subgroup/subgroup_ballot.rs index aaa0142037..ce2acb18bc 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_ballot.rs +++ b/tests/compiletests/ui/arch/subgroup/subgroup_ballot.rs @@ -1,6 +1,7 @@ // build-pass // compile-flags: -C target-feature=+GroupNonUniform,+GroupNonUniformBallot,+ext:SPV_KHR_vulkan_memory_model // compile-flags: -C llvm-args=--disassemble-fn=subgroup_ballot::subgroup_ballot +// normalize-stderr-test "OpLine .*\n" -> "" use spirv_std::spirv; diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_ballot.stderr b/tests/compiletests/ui/arch/subgroup/subgroup_ballot.stderr index a0994f5353..f268c5497a 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_ballot.stderr +++ b/tests/compiletests/ui/arch/subgroup/subgroup_ballot.stderr @@ -1,9 +1,7 @@ %1 = OpFunction %2 None %3 %4 = OpFunctionParameter %2 %5 = OpLabel -OpLine %6 364 13 %7 = OpGroupNonUniformBallot %8 %9 %4 -OpLine %6 403 13 %10 = OpGroupNonUniformInverseBallot %2 %9 %7 OpNoLine OpReturnValue %10 diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_ballot_bit_count.rs b/tests/compiletests/ui/arch/subgroup/subgroup_ballot_bit_count.rs index ff4b492932..8d624af138 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_ballot_bit_count.rs +++ b/tests/compiletests/ui/arch/subgroup/subgroup_ballot_bit_count.rs @@ -1,6 +1,7 @@ // build-pass // compile-flags: -C target-feature=+GroupNonUniform,+GroupNonUniformBallot,+ext:SPV_KHR_vulkan_memory_model // compile-flags: -C llvm-args=--disassemble-fn=subgroup_ballot_bit_count::subgroup_ballot_bit_count +// normalize-stderr-test "OpLine .*\n" -> "" use spirv_std::arch::{GroupOperation, SubgroupMask}; use spirv_std::spirv; diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_ballot_bit_count.stderr b/tests/compiletests/ui/arch/subgroup/subgroup_ballot_bit_count.stderr index 52b6bcf944..d4bbbfe372 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_ballot_bit_count.stderr +++ b/tests/compiletests/ui/arch/subgroup/subgroup_ballot_bit_count.stderr @@ -1,7 +1,6 @@ %1 = OpFunction %2 None %3 %4 = OpFunctionParameter %5 %6 = OpLabel -OpLine %7 498 0 %8 = OpGroupNonUniformBallotBitCount %2 %9 Reduce %4 OpNoLine OpReturnValue %8 diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_broadcast_first.rs b/tests/compiletests/ui/arch/subgroup/subgroup_broadcast_first.rs index c2544101c2..53efc5d0be 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_broadcast_first.rs +++ b/tests/compiletests/ui/arch/subgroup/subgroup_broadcast_first.rs @@ -1,6 +1,7 @@ // build-pass // compile-flags: -C target-feature=+GroupNonUniform,+GroupNonUniformBallot,+ext:SPV_KHR_vulkan_memory_model // compile-flags: -C llvm-args=--disassemble-fn=subgroup_broadcast_first::subgroup_broadcast_first +// normalize-stderr-test "OpLine .*\n" -> "" use glam::Vec3; use spirv_std::spirv; diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_broadcast_first.stderr b/tests/compiletests/ui/arch/subgroup/subgroup_broadcast_first.stderr index 44fa624f0e..e2d1d7b0da 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_broadcast_first.stderr +++ b/tests/compiletests/ui/arch/subgroup/subgroup_broadcast_first.stderr @@ -1,7 +1,6 @@ %1 = OpFunction %2 None %3 %4 = OpFunctionParameter %2 %5 = OpLabel -OpLine %6 331 13 %7 = OpGroupNonUniformBroadcastFirst %2 %8 %4 OpNoLine OpReturnValue %7 diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_elect.rs b/tests/compiletests/ui/arch/subgroup/subgroup_elect.rs index 4aee376c6b..6c3337d4f7 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_elect.rs +++ b/tests/compiletests/ui/arch/subgroup/subgroup_elect.rs @@ -1,6 +1,7 @@ // build-pass // compile-flags: -C target-feature=+GroupNonUniform,+ext:SPV_KHR_vulkan_memory_model // compile-flags: -C llvm-args=--disassemble-fn=subgroup_elect::subgroup_elect +// normalize-stderr-test "OpLine .*\n" -> "" use spirv_std::spirv; diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_elect.stderr b/tests/compiletests/ui/arch/subgroup/subgroup_elect.stderr index 26a079b145..4c94384ff2 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_elect.stderr +++ b/tests/compiletests/ui/arch/subgroup/subgroup_elect.stderr @@ -1,6 +1,5 @@ %1 = OpFunction %2 None %3 %4 = OpLabel -OpLine %5 161 13 %6 = OpGroupNonUniformElect %2 %7 OpNoLine OpReturnValue %6 diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_i_add_clustered.rs b/tests/compiletests/ui/arch/subgroup/subgroup_i_add_clustered.rs index 880325aa61..028a1a78b4 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_i_add_clustered.rs +++ b/tests/compiletests/ui/arch/subgroup/subgroup_i_add_clustered.rs @@ -1,6 +1,7 @@ // build-pass // compile-flags: -C target-feature=+GroupNonUniform,+GroupNonUniformArithmetic,+GroupNonUniformClustered,+ext:SPV_KHR_vulkan_memory_model // compile-flags: -C llvm-args=--disassemble-fn=subgroup_i_add_clustered::subgroup_i_add_clustered +// normalize-stderr-test "OpLine .*\n" -> "" use glam::UVec3; use spirv_std::arch::{GroupOperation, SubgroupMask}; diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_i_add_clustered.stderr b/tests/compiletests/ui/arch/subgroup/subgroup_i_add_clustered.stderr index 4c022abaf0..1ba9f80c10 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_i_add_clustered.stderr +++ b/tests/compiletests/ui/arch/subgroup/subgroup_i_add_clustered.stderr @@ -1,7 +1,6 @@ %1 = OpFunction %2 None %3 %4 = OpFunctionParameter %2 %5 = OpLabel -OpLine %6 826 0 %7 = OpGroupNonUniformIAdd %2 %8 ClusteredReduce %4 %9 OpNoLine OpReturnValue %7 diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_i_add_exclusive_scan.rs b/tests/compiletests/ui/arch/subgroup/subgroup_i_add_exclusive_scan.rs index feab4bd986..fd97235a71 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_i_add_exclusive_scan.rs +++ b/tests/compiletests/ui/arch/subgroup/subgroup_i_add_exclusive_scan.rs @@ -1,6 +1,7 @@ // build-pass // compile-flags: -C target-feature=+GroupNonUniform,+GroupNonUniformArithmetic,+ext:SPV_KHR_vulkan_memory_model // compile-flags: -C llvm-args=--disassemble-fn=subgroup_i_add_exclusive_scan::subgroup_i_add_exclusive_scan +// normalize-stderr-test "OpLine .*\n" -> "" use glam::UVec3; use spirv_std::arch::{GroupOperation, SubgroupMask}; diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_i_add_exclusive_scan.stderr b/tests/compiletests/ui/arch/subgroup/subgroup_i_add_exclusive_scan.stderr index a5ec1af956..a1abe00020 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_i_add_exclusive_scan.stderr +++ b/tests/compiletests/ui/arch/subgroup/subgroup_i_add_exclusive_scan.stderr @@ -1,7 +1,6 @@ %1 = OpFunction %2 None %3 %4 = OpFunctionParameter %2 %5 = OpLabel -OpLine %6 813 0 %7 = OpGroupNonUniformIAdd %2 %8 ExclusiveScan %4 OpNoLine OpReturnValue %7 diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_i_add_inclusive_scan.rs b/tests/compiletests/ui/arch/subgroup/subgroup_i_add_inclusive_scan.rs index e880491793..786bdd71e4 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_i_add_inclusive_scan.rs +++ b/tests/compiletests/ui/arch/subgroup/subgroup_i_add_inclusive_scan.rs @@ -1,6 +1,7 @@ // build-pass // compile-flags: -C target-feature=+GroupNonUniform,+GroupNonUniformArithmetic,+ext:SPV_KHR_vulkan_memory_model // compile-flags: -C llvm-args=--disassemble-fn=subgroup_i_add_inclusive_scan::subgroup_i_add_inclusive_scan +// normalize-stderr-test "OpLine .*\n" -> "" use glam::UVec3; use spirv_std::arch::{GroupOperation, SubgroupMask}; diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_i_add_inclusive_scan.stderr b/tests/compiletests/ui/arch/subgroup/subgroup_i_add_inclusive_scan.stderr index b6fcceb39f..5db68bc975 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_i_add_inclusive_scan.stderr +++ b/tests/compiletests/ui/arch/subgroup/subgroup_i_add_inclusive_scan.stderr @@ -1,7 +1,6 @@ %1 = OpFunction %2 None %3 %4 = OpFunctionParameter %2 %5 = OpLabel -OpLine %6 813 0 %7 = OpGroupNonUniformIAdd %2 %8 InclusiveScan %4 OpNoLine OpReturnValue %7 diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_i_add_reduce.rs b/tests/compiletests/ui/arch/subgroup/subgroup_i_add_reduce.rs index 7739e0f4bf..086ddd7f24 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_i_add_reduce.rs +++ b/tests/compiletests/ui/arch/subgroup/subgroup_i_add_reduce.rs @@ -1,6 +1,7 @@ // build-pass // compile-flags: -C target-feature=+GroupNonUniform,+GroupNonUniformArithmetic,+ext:SPV_KHR_vulkan_memory_model // compile-flags: -C llvm-args=--disassemble-fn=subgroup_i_add_reduce::subgroup_i_add_reduce +// normalize-stderr-test "OpLine .*\n" -> "" use glam::UVec3; use spirv_std::arch::{GroupOperation, SubgroupMask}; diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_i_add_reduce.stderr b/tests/compiletests/ui/arch/subgroup/subgroup_i_add_reduce.stderr index 73fdd65b86..c82f53e16d 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_i_add_reduce.stderr +++ b/tests/compiletests/ui/arch/subgroup/subgroup_i_add_reduce.stderr @@ -1,7 +1,6 @@ %1 = OpFunction %2 None %3 %4 = OpFunctionParameter %2 %5 = OpLabel -OpLine %6 813 0 %7 = OpGroupNonUniformIAdd %2 %8 Reduce %4 OpNoLine OpReturnValue %7 From 121a6617a48349982b15fc8b9c30fcd8777ee8e1 Mon Sep 17 00:00:00 2001 From: firestar99 Date: Tue, 14 Oct 2025 14:37:14 +0200 Subject: [PATCH 2/2] compiletest: normalize rustc error lines and columns --- tests/compiletests/README.md | 2 + .../ui/arch/debug_printf_type_checking.rs | 2 + .../ui/arch/debug_printf_type_checking.stderr | 136 +- .../subgroup/subgroup_cluster_size_0_fail.rs | 2 + .../subgroup_cluster_size_0_fail.stderr | 36 +- ...roup_cluster_size_non_power_of_two_fail.rs | 2 + ..._cluster_size_non_power_of_two_fail.stderr | 36 +- .../ui/glam/invalid_vector_type.rs | 2 + .../ui/glam/invalid_vector_type.stderr | 36 +- tests/compiletests/ui/image/gather_err.rs | 2 + tests/compiletests/ui/image/gather_err.stderr | 20 +- .../ui/image/query/query_levels_err.rs | 2 + .../ui/image/query/query_levels_err.stderr | 12 +- .../ui/image/query/query_lod_err.rs | 2 + .../ui/image/query/query_lod_err.stderr | 10 +- .../ui/image/query/query_size_err.rs | 2 + .../ui/image/query/query_size_err.stderr | 26 +- .../ui/image/query/query_size_lod_err.rs | 2 + .../ui/image/query/query_size_lod_err.stderr | 24 +- .../sampled_image_rect_query_size_lod_err.rs | 2 + ...mpled_image_rect_query_size_lod_err.stderr | 24 +- .../ui/lang/asm/block_tracking_fail.rs | 2 + .../ui/lang/asm/block_tracking_fail.stderr | 24 +- tests/compiletests/ui/lang/asm/issue-1002.rs | 2 + .../ui/lang/asm/issue-1002.stderr | 48 +- .../ui/lang/consts/nested-ref-in-composite.rs | 2 + .../consts/nested-ref-in-composite.stderr | 52 +- .../compiletests/ui/lang/consts/nested-ref.rs | 2 + .../ui/lang/consts/nested-ref.stderr | 28 +- .../ui/lang/consts/u32-from-u64-fail.rs | 2 + .../ui/lang/consts/u32-from-u64-fail.stderr | 12 +- .../ui/lang/core/ptr/allocate_const_scalar.rs | 2 + .../core/ptr/allocate_const_scalar.stderr | 32 +- .../ui/lang/core/ptr/allocate_vec_like.rs | 2 + .../ui/lang/core/ptr/allocate_vec_like.stderr | 14 +- .../ui/lang/core/ref/member_ref_arg-broken.rs | 2 + .../core/ref/member_ref_arg-broken.stderr | 62 +- .../ui/lang/core/ref/member_ref_arg.rs | 2 + .../ui/lang/core/ref/member_ref_arg.stderr | 28 +- .../core/ref/zst_member_ref_arg-broken.rs | 2 + .../core/ref/zst_member_ref_arg-broken.stderr | 234 +- .../ui/lang/panic/track_caller.rs | 2 + .../ui/lang/panic/track_caller.stderr | 14 +- .../ui/spirv-attr/bad-deduce-storage-class.rs | 2 + .../bad-deduce-storage-class.stderr | 38 +- .../ui/spirv-attr/bool-inputs-err.rs | 2 + .../ui/spirv-attr/bool-inputs-err.stderr | 32 +- .../ui/spirv-attr/int-without-flat.rs | 2 + .../ui/spirv-attr/int-without-flat.stderr | 16 +- .../spirv-attr/invalid-matrix-type-empty.rs | 2 + .../invalid-matrix-type-empty.stderr | 8 +- .../ui/spirv-attr/invalid-matrix-type.rs | 2 + .../ui/spirv-attr/invalid-matrix-type.stderr | 28 +- .../ui/spirv-attr/invalid-storage-class.rs | 2 + .../spirv-attr/invalid-storage-class.stderr | 40 +- .../ui/spirv-attr/invalid-target.rs | 2 + .../ui/spirv-attr/invalid-target.stderr | 2162 ++++++++--------- .../ui/spirv-attr/invariant-invalid.rs | 2 + .../ui/spirv-attr/invariant-invalid.stderr | 8 +- tests/compiletests/ui/spirv-attr/multiple.rs | 2 + .../ui/spirv-attr/multiple.stderr | 314 +-- .../ui/storage_class/mutability-errors.rs | 2 + .../ui/storage_class/mutability-errors.stderr | 116 +- .../runtime_descriptor_array_error.rs | 2 + .../runtime_descriptor_array_error.stderr | 16 +- 65 files changed, 1909 insertions(+), 1843 deletions(-) diff --git a/tests/compiletests/README.md b/tests/compiletests/README.md index 374bb0130b..fbf2d1c279 100644 --- a/tests/compiletests/README.md +++ b/tests/compiletests/README.md @@ -83,3 +83,5 @@ contents of `path/to/test.rs.stderr`. * remove rustc error src paths: * `// normalize-stderr-test "\S*/lib/rustlib/" -> "$$SYSROOT/lib/rustlib/"` normalize path to crates delivered with rustc, such as `core` * `// normalize-stderr-test "\S*/crates/spirv-std/src/" -> "$$SPIRV_STD_SRC/"` normalize path to the `spirv-std` crate + * `// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:""` remove the line and column from error messages, eg. `--> path/to/some.rs:8:6` + * `// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3""` remove the line number prefixing the source code snippet, does not touch `...` diff --git a/tests/compiletests/ui/arch/debug_printf_type_checking.rs b/tests/compiletests/ui/arch/debug_printf_type_checking.rs index 5efe7ecd3a..d2b576bcd9 100644 --- a/tests/compiletests/ui/arch/debug_printf_type_checking.rs +++ b/tests/compiletests/ui/arch/debug_printf_type_checking.rs @@ -1,6 +1,8 @@ // build-fail // normalize-stderr-test "\S*/crates/spirv-std/src/" -> "$$SPIRV_STD_SRC/" // compile-flags: -Ctarget-feature=+ext:SPV_KHR_non_semantic_info +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use spirv_std::spirv; use spirv_std::{glam::Vec2, macros::debug_printf}; diff --git a/tests/compiletests/ui/arch/debug_printf_type_checking.stderr b/tests/compiletests/ui/arch/debug_printf_type_checking.stderr index 6ec5956a55..c1fd9eec3c 100644 --- a/tests/compiletests/ui/arch/debug_printf_type_checking.stderr +++ b/tests/compiletests/ui/arch/debug_printf_type_checking.stderr @@ -1,123 +1,123 @@ error: Unterminated format specifier: missing type after precision - --> $DIR/debug_printf_type_checking.rs:11:23 - | -11 | debug_printf!("%1"); - | ^^^^ + --> $DIR/debug_printf_type_checking.rs: + | + | debug_printf!("%1"); + | ^^^^ error: Unterminated format specifier: missing type after decimal point - --> $DIR/debug_printf_type_checking.rs:12:23 - | -12 | debug_printf!("%1."); - | ^^^^^ + --> $DIR/debug_printf_type_checking.rs: + | + | debug_printf!("%1."); + | ^^^^^ error: Unrecognised format specifier: '.' - --> $DIR/debug_printf_type_checking.rs:13:23 - | -13 | debug_printf!("%."); - | ^^^^ + --> $DIR/debug_printf_type_checking.rs: + | + | debug_printf!("%."); + | ^^^^ error: Unrecognised format specifier: '.' - --> $DIR/debug_printf_type_checking.rs:14:23 - | -14 | debug_printf!("%.1"); - | ^^^^^ + --> $DIR/debug_printf_type_checking.rs: + | + | debug_printf!("%.1"); + | ^^^^^ error: Unterminated format specifier: missing type after fraction precision - --> $DIR/debug_printf_type_checking.rs:15:23 - | -15 | debug_printf!("%1.1"); - | ^^^^^^ + --> $DIR/debug_printf_type_checking.rs: + | + | debug_printf!("%1.1"); + | ^^^^^^ error: Missing vector dimensions specifier - --> $DIR/debug_printf_type_checking.rs:16:23 - | -16 | debug_printf!("%1.1v"); - | ^^^^^^^ + --> $DIR/debug_printf_type_checking.rs: + | + | debug_printf!("%1.1v"); + | ^^^^^^^ error: Invalid width for vector: 5 - --> $DIR/debug_printf_type_checking.rs:17:23 - | -17 | debug_printf!("%1.1v5"); - | ^^^^^^^^ + --> $DIR/debug_printf_type_checking.rs: + | + | debug_printf!("%1.1v5"); + | ^^^^^^^^ error: Missing vector type specifier - --> $DIR/debug_printf_type_checking.rs:18:23 - | -18 | debug_printf!("%1.1v2"); - | ^^^^^^^^ + --> $DIR/debug_printf_type_checking.rs: + | + | debug_printf!("%1.1v2"); + | ^^^^^^^^ error: Unrecognised vector type specifier: 'r' - --> $DIR/debug_printf_type_checking.rs:19:23 - | -19 | debug_printf!("%1.1v2r"); - | ^^^^^^^^^ + --> $DIR/debug_printf_type_checking.rs: + | + | debug_printf!("%1.1v2r"); + | ^^^^^^^^^ error: Unrecognised format specifier: 'r' - --> $DIR/debug_printf_type_checking.rs:20:23 - | -20 | debug_printf!("%r", 11_i32); - | ^^^^ + --> $DIR/debug_printf_type_checking.rs: + | + | debug_printf!("%r", 11_i32); + | ^^^^ error[E0308]: mismatched types - --> $DIR/debug_printf_type_checking.rs:21:29 + --> $DIR/debug_printf_type_checking.rs: | -21 | debug_printf!("%f", 11_u32); + | debug_printf!("%f", 11_u32); | --------------------^^^^^^- | | | | | expected `f32`, found `u32` | arguments to this function are incorrect | help: the return type of this call is `u32` due to the type of the argument passed - --> $DIR/debug_printf_type_checking.rs:21:9 + --> $DIR/debug_printf_type_checking.rs: | -21 | debug_printf!("%f", 11_u32); + | debug_printf!("%f", 11_u32); | ^^^^^^^^^^^^^^^^^^^^------^ | | | this argument influences the return type of `debug_printf_assert_is_type` note: function defined here - --> $SPIRV_STD_SRC/lib.rs:134:8 + --> $SPIRV_STD_SRC/lib.rs: | -134 | pub fn debug_printf_assert_is_type(ty: T) -> T { + | pub fn debug_printf_assert_is_type(ty: T) -> T { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info) help: change the type of the numeric literal from `u32` to `f32` | -21 - debug_printf!("%f", 11_u32); -21 + debug_printf!("%f", 11_f32); + - debug_printf!("%f", 11_u32); + + debug_printf!("%f", 11_f32); | error[E0308]: mismatched types - --> $DIR/debug_printf_type_checking.rs:22:29 + --> $DIR/debug_printf_type_checking.rs: | -22 | debug_printf!("%u", 11.0_f32); + | debug_printf!("%u", 11.0_f32); | --------------------^^^^^^^^- | | | | | expected `u32`, found `f32` | arguments to this function are incorrect | help: the return type of this call is `f32` due to the type of the argument passed - --> $DIR/debug_printf_type_checking.rs:22:9 + --> $DIR/debug_printf_type_checking.rs: | -22 | debug_printf!("%u", 11.0_f32); + | debug_printf!("%u", 11.0_f32); | ^^^^^^^^^^^^^^^^^^^^--------^ | | | this argument influences the return type of `debug_printf_assert_is_type` note: function defined here - --> $SPIRV_STD_SRC/lib.rs:134:8 + --> $SPIRV_STD_SRC/lib.rs: | -134 | pub fn debug_printf_assert_is_type(ty: T) -> T { + | pub fn debug_printf_assert_is_type(ty: T) -> T { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info) help: change the type of the numeric literal from `f32` to `u32` | -22 - debug_printf!("%u", 11.0_f32); -22 + debug_printf!("%u", 11u32); + - debug_printf!("%u", 11.0_f32); + + debug_printf!("%u", 11u32); | error[E0277]: the trait bound `{float}: Vector` is not satisfied - --> $DIR/debug_printf_type_checking.rs:23:9 + --> $DIR/debug_printf_type_checking.rs: | -23 | debug_printf!("%v2f", 11.0); + | debug_printf!("%v2f", 11.0); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Vector` is not implemented for `{float}` | = help: the following other types implement trait `Vector`: @@ -131,35 +131,35 @@ error[E0277]: the trait bound `{float}: Vector` is not satisfied `IVec3` implements `Vector` and 8 others note: required by a bound in `debug_printf_assert_is_vector` - --> $SPIRV_STD_SRC/lib.rs:141:8 + --> $SPIRV_STD_SRC/lib.rs: | -139 | pub fn debug_printf_assert_is_vector< + | pub fn debug_printf_assert_is_vector< | ----------------------------- required by a bound in this function -140 | TY: crate::scalar::Scalar, -141 | V: crate::vector::Vector, + | TY: crate::scalar::Scalar, + | V: crate::vector::Vector, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `debug_printf_assert_is_vector` = note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0308]: mismatched types - --> $DIR/debug_printf_type_checking.rs:24:29 + --> $DIR/debug_printf_type_checking.rs: | -24 | debug_printf!("%f", Vec2::splat(33.3)); + | debug_printf!("%f", Vec2::splat(33.3)); | --------------------^^^^^^^^^^^^^^^^^- | | | | | expected `f32`, found `Vec2` | arguments to this function are incorrect | help: the return type of this call is `Vec2` due to the type of the argument passed - --> $DIR/debug_printf_type_checking.rs:24:9 + --> $DIR/debug_printf_type_checking.rs: | -24 | debug_printf!("%f", Vec2::splat(33.3)); + | debug_printf!("%f", Vec2::splat(33.3)); | ^^^^^^^^^^^^^^^^^^^^-----------------^ | | | this argument influences the return type of `debug_printf_assert_is_type` note: function defined here - --> $SPIRV_STD_SRC/lib.rs:134:8 + --> $SPIRV_STD_SRC/lib.rs: | -134 | pub fn debug_printf_assert_is_type(ty: T) -> T { + | pub fn debug_printf_assert_is_type(ty: T) -> T { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_cluster_size_0_fail.rs b/tests/compiletests/ui/arch/subgroup/subgroup_cluster_size_0_fail.rs index 4fec2a3db5..ac81537f60 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_cluster_size_0_fail.rs +++ b/tests/compiletests/ui/arch/subgroup/subgroup_cluster_size_0_fail.rs @@ -1,6 +1,8 @@ // build-pass // compile-flags: -C target-feature=+GroupNonUniform,+GroupNonUniformArithmetic,+GroupNonUniformClustered,+ext:SPV_KHR_vulkan_memory_model // normalize-stderr-test "\S*/crates/spirv-std/src/" -> "$$SPIRV_STD_SRC/" +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use glam::UVec3; use spirv_std::arch::{GroupOperation, SubgroupMask}; diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_cluster_size_0_fail.stderr b/tests/compiletests/ui/arch/subgroup/subgroup_cluster_size_0_fail.stderr index fe2f180d78..10e390bd03 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_cluster_size_0_fail.stderr +++ b/tests/compiletests/ui/arch/subgroup/subgroup_cluster_size_0_fail.stderr @@ -1,36 +1,36 @@ error[E0080]: evaluation panicked: `ClusterSize` must be at least 1 - --> $SPIRV_STD_SRC/arch/subgroup.rs:826:1 + --> $SPIRV_STD_SRC/arch/subgroup.rs: | -826 | / macro_subgroup_op_clustered!(impl Integer, "OpGroupNonUniformIAdd", subgroup_clustered_i_add; r" -827 | | An integer add group operation of all `value` operands contributed by active invocations in the group. -828 | | -829 | | Result Type must be a scalar or vector of integer type. + | / macro_subgroup_op_clustered!(impl Integer, "OpGroupNonUniformIAdd", subgroup_clustered_i_add; r" + | | An integer add group operation of all `value` operands contributed by active invocations in the group. + | | + | | Result Type must be a scalar or vector of integer type. ... | -842 | | * `ClusterSize` must not be greater than the size of the group -843 | | "); + | | * `ClusterSize` must not be greater than the size of the group + | | "); | |__^ evaluation of `spirv_std::arch::subgroup_clustered_i_add::<0, u32, u32>::{constant#0}` failed here | = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `macro_subgroup_op_clustered` (in Nightly builds, run with -Z macro-backtrace for more info) note: erroneous constant encountered - --> $SPIRV_STD_SRC/arch/subgroup.rs:826:1 + --> $SPIRV_STD_SRC/arch/subgroup.rs: | -826 | / macro_subgroup_op_clustered!(impl Integer, "OpGroupNonUniformIAdd", subgroup_clustered_i_add; r" -827 | | An integer add group operation of all `value` operands contributed by active invocations in the group. -828 | | -829 | | Result Type must be a scalar or vector of integer type. + | / macro_subgroup_op_clustered!(impl Integer, "OpGroupNonUniformIAdd", subgroup_clustered_i_add; r" + | | An integer add group operation of all `value` operands contributed by active invocations in the group. + | | + | | Result Type must be a scalar or vector of integer type. ... | -842 | | * `ClusterSize` must not be greater than the size of the group -843 | | "); + | | * `ClusterSize` must not be greater than the size of the group + | | "); | |__^ | = note: this note originates in the macro `macro_subgroup_op_clustered` (in Nightly builds, run with -Z macro-backtrace for more info) note: the above error was encountered while instantiating `fn spirv_std::arch::subgroup_clustered_i_add::<0, u32, u32>` - --> $DIR/subgroup_cluster_size_0_fail.rs:10:5 - | -10 | spirv_std::arch::subgroup_clustered_i_add::<0, _>(value) - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + --> $DIR/subgroup_cluster_size_0_fail.rs: + | + | spirv_std::arch::subgroup_clustered_i_add::<0, _>(value) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 1 previous error diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_cluster_size_non_power_of_two_fail.rs b/tests/compiletests/ui/arch/subgroup/subgroup_cluster_size_non_power_of_two_fail.rs index 9184cc25b1..3afc91e156 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_cluster_size_non_power_of_two_fail.rs +++ b/tests/compiletests/ui/arch/subgroup/subgroup_cluster_size_non_power_of_two_fail.rs @@ -1,6 +1,8 @@ // build-pass // compile-flags: -C target-feature=+GroupNonUniform,+GroupNonUniformArithmetic,+GroupNonUniformClustered,+ext:SPV_KHR_vulkan_memory_model // normalize-stderr-test "\S*/crates/spirv-std/src/" -> "$$SPIRV_STD_SRC/" +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use glam::UVec3; use spirv_std::arch::{GroupOperation, SubgroupMask}; diff --git a/tests/compiletests/ui/arch/subgroup/subgroup_cluster_size_non_power_of_two_fail.stderr b/tests/compiletests/ui/arch/subgroup/subgroup_cluster_size_non_power_of_two_fail.stderr index 40c37e2740..b20363983c 100644 --- a/tests/compiletests/ui/arch/subgroup/subgroup_cluster_size_non_power_of_two_fail.stderr +++ b/tests/compiletests/ui/arch/subgroup/subgroup_cluster_size_non_power_of_two_fail.stderr @@ -1,36 +1,36 @@ error[E0080]: evaluation panicked: `ClusterSize` must be a power of 2 - --> $SPIRV_STD_SRC/arch/subgroup.rs:826:1 + --> $SPIRV_STD_SRC/arch/subgroup.rs: | -826 | / macro_subgroup_op_clustered!(impl Integer, "OpGroupNonUniformIAdd", subgroup_clustered_i_add; r" -827 | | An integer add group operation of all `value` operands contributed by active invocations in the group. -828 | | -829 | | Result Type must be a scalar or vector of integer type. + | / macro_subgroup_op_clustered!(impl Integer, "OpGroupNonUniformIAdd", subgroup_clustered_i_add; r" + | | An integer add group operation of all `value` operands contributed by active invocations in the group. + | | + | | Result Type must be a scalar or vector of integer type. ... | -842 | | * `ClusterSize` must not be greater than the size of the group -843 | | "); + | | * `ClusterSize` must not be greater than the size of the group + | | "); | |__^ evaluation of `spirv_std::arch::subgroup_clustered_i_add::<5, u32, u32>::{constant#0}` failed here | = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `macro_subgroup_op_clustered` (in Nightly builds, run with -Z macro-backtrace for more info) note: erroneous constant encountered - --> $SPIRV_STD_SRC/arch/subgroup.rs:826:1 + --> $SPIRV_STD_SRC/arch/subgroup.rs: | -826 | / macro_subgroup_op_clustered!(impl Integer, "OpGroupNonUniformIAdd", subgroup_clustered_i_add; r" -827 | | An integer add group operation of all `value` operands contributed by active invocations in the group. -828 | | -829 | | Result Type must be a scalar or vector of integer type. + | / macro_subgroup_op_clustered!(impl Integer, "OpGroupNonUniformIAdd", subgroup_clustered_i_add; r" + | | An integer add group operation of all `value` operands contributed by active invocations in the group. + | | + | | Result Type must be a scalar or vector of integer type. ... | -842 | | * `ClusterSize` must not be greater than the size of the group -843 | | "); + | | * `ClusterSize` must not be greater than the size of the group + | | "); | |__^ | = note: this note originates in the macro `macro_subgroup_op_clustered` (in Nightly builds, run with -Z macro-backtrace for more info) note: the above error was encountered while instantiating `fn spirv_std::arch::subgroup_clustered_i_add::<5, u32, u32>` - --> $DIR/subgroup_cluster_size_non_power_of_two_fail.rs:10:5 - | -10 | spirv_std::arch::subgroup_clustered_i_add::<5, _>(value) - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + --> $DIR/subgroup_cluster_size_non_power_of_two_fail.rs: + | + | spirv_std::arch::subgroup_clustered_i_add::<5, _>(value) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 1 previous error diff --git a/tests/compiletests/ui/glam/invalid_vector_type.rs b/tests/compiletests/ui/glam/invalid_vector_type.rs index 7c8ed9be5a..26f72d2a36 100644 --- a/tests/compiletests/ui/glam/invalid_vector_type.rs +++ b/tests/compiletests/ui/glam/invalid_vector_type.rs @@ -1,4 +1,6 @@ // build-fail +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use core::num::NonZeroU32; use spirv_std::glam::Vec2; diff --git a/tests/compiletests/ui/glam/invalid_vector_type.stderr b/tests/compiletests/ui/glam/invalid_vector_type.stderr index b0826e800c..561dc777d4 100644 --- a/tests/compiletests/ui/glam/invalid_vector_type.stderr +++ b/tests/compiletests/ui/glam/invalid_vector_type.stderr @@ -1,28 +1,28 @@ error: `#[spirv(vector)]` must have 2, 3 or 4 members - --> $DIR/invalid_vector_type.rs:8:1 - | -8 | pub struct FewerFields { - | ^^^^^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid_vector_type.rs: + | + | pub struct FewerFields { + | ^^^^^^^^^^^^^^^^^^^^^^ error: `#[spirv(vector)]` must have 2, 3 or 4 members - --> $DIR/invalid_vector_type.rs:13:1 - | -13 | pub struct TooManyFields { - | ^^^^^^^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid_vector_type.rs: + | + | pub struct TooManyFields { + | ^^^^^^^^^^^^^^^^^^^^^^^^ error: `#[spirv(vector)]` type fields must all be floats, integers or bools - --> $DIR/invalid_vector_type.rs:22:1 - | -22 | pub struct NotVectorField { - | ^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: field type is f32x2 + --> $DIR/invalid_vector_type.rs: + | + | pub struct NotVectorField { + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: field type is f32x2 error: `#[spirv(vector)]` member types must all be the same - --> $DIR/invalid_vector_type.rs:34:1 - | -34 | pub struct DifferentTypes { - | ^^^^^^^^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid_vector_type.rs: + | + | pub struct DifferentTypes { + | ^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 4 previous errors diff --git a/tests/compiletests/ui/image/gather_err.rs b/tests/compiletests/ui/image/gather_err.rs index e44da14565..53c8701b97 100644 --- a/tests/compiletests/ui/image/gather_err.rs +++ b/tests/compiletests/ui/image/gather_err.rs @@ -1,5 +1,7 @@ // build-fail // normalize-stderr-test "\S*/crates/spirv-std/src/" -> "$$SPIRV_STD_SRC/" +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" // compile-flags: -Ctarget-feature=+Sampled1D use spirv_std::{Image, Sampler, arch, spirv}; diff --git a/tests/compiletests/ui/image/gather_err.stderr b/tests/compiletests/ui/image/gather_err.stderr index a2d0519500..4f718f4128 100644 --- a/tests/compiletests/ui/image/gather_err.stderr +++ b/tests/compiletests/ui/image/gather_err.stderr @@ -1,7 +1,7 @@ error[E0277]: the trait bound `Image: HasGather` is not satisfied - --> $DIR/gather_err.rs:15:34 + --> $DIR/gather_err.rs: | -15 | let r1: glam::Vec4 = image1d.gather(*sampler, 0.0f32, 0); + | let r1: glam::Vec4 = image1d.gather(*sampler, 0.0f32, 0); | ^^^^^^ the trait `HasGather` is not implemented for `Image` | = help: the following other types implement trait `HasGather`: @@ -9,18 +9,18 @@ error[E0277]: the trait bound `Image: HasGather` is no Image Image note: required by a bound in `Image::::gather` - --> $SPIRV_STD_SRC/image.rs:215:15 + --> $SPIRV_STD_SRC/image.rs: | -208 | pub fn gather( + | pub fn gather( | ------ required by a bound in this associated function ... -215 | Self: HasGather, + | Self: HasGather, | ^^^^^^^^^ required by this bound in `Image::::gather` error[E0277]: the trait bound `Image: HasGather` is not satisfied - --> $DIR/gather_err.rs:16:34 + --> $DIR/gather_err.rs: | -16 | let r2: glam::Vec4 = image3d.gather(*sampler, v3, 0); + | let r2: glam::Vec4 = image3d.gather(*sampler, v3, 0); | ^^^^^^ the trait `HasGather` is not implemented for `Image` | = help: the following other types implement trait `HasGather`: @@ -28,12 +28,12 @@ error[E0277]: the trait bound `Image: HasGather` is no Image Image note: required by a bound in `Image::::gather` - --> $SPIRV_STD_SRC/image.rs:215:15 + --> $SPIRV_STD_SRC/image.rs: | -208 | pub fn gather( + | pub fn gather( | ------ required by a bound in this associated function ... -215 | Self: HasGather, + | Self: HasGather, | ^^^^^^^^^ required by this bound in `Image::::gather` error: aborting due to 2 previous errors diff --git a/tests/compiletests/ui/image/query/query_levels_err.rs b/tests/compiletests/ui/image/query/query_levels_err.rs index 1fa5581a41..fae00eed73 100644 --- a/tests/compiletests/ui/image/query/query_levels_err.rs +++ b/tests/compiletests/ui/image/query/query_levels_err.rs @@ -1,5 +1,7 @@ // build-fail // normalize-stderr-test "\S*/crates/spirv-std/src/" -> "$$SPIRV_STD_SRC/" +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" // compile-flags: -C target-feature=+ImageQuery use spirv_std::{Image, arch, spirv}; diff --git a/tests/compiletests/ui/image/query/query_levels_err.stderr b/tests/compiletests/ui/image/query/query_levels_err.stderr index dd3220d9f3..b617b63c7a 100644 --- a/tests/compiletests/ui/image/query/query_levels_err.stderr +++ b/tests/compiletests/ui/image/query/query_levels_err.stderr @@ -1,7 +1,7 @@ error[E0277]: the trait bound `Image: HasQueryLevels` is not satisfied - --> $DIR/query_levels_err.rs:12:21 + --> $DIR/query_levels_err.rs: | -12 | *output = image.query_levels(); + | *output = image.query_levels(); | ^^^^^^^^^^^^ the trait `HasQueryLevels` is not implemented for `Image` | = help: the following other types implement trait `HasQueryLevels`: @@ -10,12 +10,12 @@ error[E0277]: the trait bound `Image: HasQueryLevels` Image Image note: required by a bound in `Image::::query_levels` - --> $SPIRV_STD_SRC/image.rs:967:15 + --> $SPIRV_STD_SRC/image.rs: | -965 | pub fn query_levels(&self) -> u32 + | pub fn query_levels(&self) -> u32 | ------------ required by a bound in this associated function -966 | where -967 | Self: HasQueryLevels, + | where + | Self: HasQueryLevels, | ^^^^^^^^^^^^^^ required by this bound in `Image::::query_levels` error: aborting due to 1 previous error diff --git a/tests/compiletests/ui/image/query/query_lod_err.rs b/tests/compiletests/ui/image/query/query_lod_err.rs index 74e86972f1..0ee74d68d6 100644 --- a/tests/compiletests/ui/image/query/query_lod_err.rs +++ b/tests/compiletests/ui/image/query/query_lod_err.rs @@ -1,5 +1,7 @@ // build-fail // normalize-stderr-test "\S*/crates/spirv-std/src/" -> "$$SPIRV_STD_SRC/" +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" // compile-flags: -C target-feature=+ImageQuery use spirv_std::{Image, Sampler, arch, spirv}; diff --git a/tests/compiletests/ui/image/query/query_lod_err.stderr b/tests/compiletests/ui/image/query/query_lod_err.stderr index 868bab22da..ad4ae14db6 100644 --- a/tests/compiletests/ui/image/query/query_lod_err.stderr +++ b/tests/compiletests/ui/image/query/query_lod_err.stderr @@ -1,7 +1,7 @@ error[E0277]: the trait bound `Image: HasQueryLevels` is not satisfied - --> $DIR/query_lod_err.rs:13:21 + --> $DIR/query_lod_err.rs: | -13 | *output = image.query_lod(*sampler, glam::Vec2::new(0.0, 1.0)); + | *output = image.query_lod(*sampler, glam::Vec2::new(0.0, 1.0)); | ^^^^^^^^^ the trait `HasQueryLevels` is not implemented for `Image` | = help: the following other types implement trait `HasQueryLevels`: @@ -10,12 +10,12 @@ error[E0277]: the trait bound `Image: HasQueryLevels` Image Image note: required by a bound in `Image::::query_lod` - --> $SPIRV_STD_SRC/image.rs:996:15 + --> $SPIRV_STD_SRC/image.rs: | -990 | pub fn query_lod( + | pub fn query_lod( | --------- required by a bound in this associated function ... -996 | Self: HasQueryLevels, + | Self: HasQueryLevels, | ^^^^^^^^^^^^^^ required by this bound in `Image::::query_lod` error: aborting due to 1 previous error diff --git a/tests/compiletests/ui/image/query/query_size_err.rs b/tests/compiletests/ui/image/query/query_size_err.rs index c526f3bd6b..b9eae40bff 100644 --- a/tests/compiletests/ui/image/query/query_size_err.rs +++ b/tests/compiletests/ui/image/query/query_size_err.rs @@ -1,5 +1,7 @@ // build-fail // normalize-stderr-test "\S*/crates/spirv-std/src/" -> "$$SPIRV_STD_SRC/" +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" // compile-flags: -C target-feature=+ImageQuery use spirv_std::{Image, arch, spirv}; diff --git a/tests/compiletests/ui/image/query/query_size_err.stderr b/tests/compiletests/ui/image/query/query_size_err.stderr index cdbd9245f5..827a78e8da 100644 --- a/tests/compiletests/ui/image/query/query_size_err.stderr +++ b/tests/compiletests/ui/image/query/query_size_err.stderr @@ -1,10 +1,10 @@ error[E0277]: the trait bound `Image: HasQuerySize` is not satisfied - --> $DIR/query_size_err.rs:12:21 - | -12 | *output = image.query_size(); - | ^^^^^^^^^^ the trait `HasQuerySize` is not implemented for `Image` - | - = help: the following other types implement trait `HasQuerySize`: + --> $DIR/query_size_err.rs: + | + | *output = image.query_size(); + | ^^^^^^^^^^ the trait `HasQuerySize` is not implemented for `Image` + | + = help: the following other types implement trait `HasQuerySize`: Image Image Image @@ -15,13 +15,13 @@ error[E0277]: the trait bound `Image: HasQuerySize` is Image and 6 others note: required by a bound in `Image::::query_size` - --> $SPIRV_STD_SRC/image.rs:1031:15 - | -1029 | pub fn query_size + Default>(&self) -> Size - | ---------- required by a bound in this associated function -1030 | where -1031 | Self: HasQuerySize, - | ^^^^^^^^^^^^ required by this bound in `Image::::query_size` + --> $SPIRV_STD_SRC/image.rs: + | + | pub fn query_size + Default>(&self) -> Size + | ---------- required by a bound in this associated function + | where + | Self: HasQuerySize, + | ^^^^^^^^^^^^ required by this bound in `Image::::query_size` error: aborting due to 1 previous error diff --git a/tests/compiletests/ui/image/query/query_size_lod_err.rs b/tests/compiletests/ui/image/query/query_size_lod_err.rs index 8b2e9e8ff1..829aa5df71 100644 --- a/tests/compiletests/ui/image/query/query_size_lod_err.rs +++ b/tests/compiletests/ui/image/query/query_size_lod_err.rs @@ -1,5 +1,7 @@ // build-fail // normalize-stderr-test "\S*/crates/spirv-std/src/" -> "$$SPIRV_STD_SRC/" +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" // compile-flags: -C target-feature=+ImageQuery use spirv_std::{Image, arch, spirv}; diff --git a/tests/compiletests/ui/image/query/query_size_lod_err.stderr b/tests/compiletests/ui/image/query/query_size_lod_err.stderr index 69662c8e79..88769eb8f2 100644 --- a/tests/compiletests/ui/image/query/query_size_lod_err.stderr +++ b/tests/compiletests/ui/image/query/query_size_lod_err.stderr @@ -1,22 +1,22 @@ error[E0277]: the trait bound `Image: HasQuerySizeLod` is not satisfied - --> $DIR/query_size_lod_err.rs:12:21 - | -12 | *output = image.query_size_lod(0); - | ^^^^^^^^^^^^^^ the trait `HasQuerySizeLod` is not implemented for `Image` - | - = help: the following other types implement trait `HasQuerySizeLod`: + --> $DIR/query_size_lod_err.rs: + | + | *output = image.query_size_lod(0); + | ^^^^^^^^^^^^^^ the trait `HasQuerySizeLod` is not implemented for `Image` + | + = help: the following other types implement trait `HasQuerySizeLod`: Image Image Image Image note: required by a bound in `Image::::query_size_lod` - --> $SPIRV_STD_SRC/image.rs:1077:15 - | -1072 | pub fn query_size_lod + Default>( - | -------------- required by a bound in this associated function + --> $SPIRV_STD_SRC/image.rs: + | + | pub fn query_size_lod + Default>( + | -------------- required by a bound in this associated function ... -1077 | Self: HasQuerySizeLod, - | ^^^^^^^^^^^^^^^ required by this bound in `Image::::query_size_lod` + | Self: HasQuerySizeLod, + | ^^^^^^^^^^^^^^^ required by this bound in `Image::::query_size_lod` error: aborting due to 1 previous error diff --git a/tests/compiletests/ui/image/query/sampled_image_rect_query_size_lod_err.rs b/tests/compiletests/ui/image/query/sampled_image_rect_query_size_lod_err.rs index acfe0a61a3..9431fb0983 100644 --- a/tests/compiletests/ui/image/query/sampled_image_rect_query_size_lod_err.rs +++ b/tests/compiletests/ui/image/query/sampled_image_rect_query_size_lod_err.rs @@ -1,5 +1,7 @@ // build-fail // normalize-stderr-test "\S*/crates/spirv-std/src/" -> "$SPIRV_STD_SRC/" +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" // compile-flags: -C target-feature=+ImageQuery,+SampledRect // ignore-vulkan1.0 // ignore-vulkan1.1 diff --git a/tests/compiletests/ui/image/query/sampled_image_rect_query_size_lod_err.stderr b/tests/compiletests/ui/image/query/sampled_image_rect_query_size_lod_err.stderr index 0b3bcea2ab..ae5c7d5933 100644 --- a/tests/compiletests/ui/image/query/sampled_image_rect_query_size_lod_err.stderr +++ b/tests/compiletests/ui/image/query/sampled_image_rect_query_size_lod_err.stderr @@ -1,22 +1,22 @@ error[E0277]: the trait bound `Image: HasQuerySizeLod` is not satisfied - --> $DIR/sampled_image_rect_query_size_lod_err.rs:21:28 - | -21 | *output = rect_sampled.query_size_lod(0); - | ^^^^^^^^^^^^^^ the trait `HasQuerySizeLod` is not implemented for `Image` - | - = help: the following other types implement trait `HasQuerySizeLod`: + --> $DIR/sampled_image_rect_query_size_lod_err.rs: + | + | *output = rect_sampled.query_size_lod(0); + | ^^^^^^^^^^^^^^ the trait `HasQuerySizeLod` is not implemented for `Image` + | + = help: the following other types implement trait `HasQuerySizeLod`: Image Image Image Image note: required by a bound in `SampledImage::>::query_size_lod` - --> /image.rs:1242:12 - | -1228 | pub fn query_size_lod + Default>( - | -------------- required by a bound in this associated function + --> /image.rs: + | + | pub fn query_size_lod + Default>( + | -------------- required by a bound in this associated function ... -1242 | >: HasQuerySizeLod, - | ^^^^^^^^^^^^^^^ required by this bound in `SampledImage::>::query_size_lod` + | >: HasQuerySizeLod, + | ^^^^^^^^^^^^^^^ required by this bound in `SampledImage::>::query_size_lod` error: aborting due to 1 previous error diff --git a/tests/compiletests/ui/lang/asm/block_tracking_fail.rs b/tests/compiletests/ui/lang/asm/block_tracking_fail.rs index d0e229bae0..bdefea24dd 100644 --- a/tests/compiletests/ui/lang/asm/block_tracking_fail.rs +++ b/tests/compiletests/ui/lang/asm/block_tracking_fail.rs @@ -1,6 +1,8 @@ // Tests validating tracking of basic blocks // within the `asm!` macro. // build-fail +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use core::arch::asm; use spirv_std::spirv; diff --git a/tests/compiletests/ui/lang/asm/block_tracking_fail.stderr b/tests/compiletests/ui/lang/asm/block_tracking_fail.stderr index 12c83f142e..f9024a7410 100644 --- a/tests/compiletests/ui/lang/asm/block_tracking_fail.stderr +++ b/tests/compiletests/ui/lang/asm/block_tracking_fail.stderr @@ -1,20 +1,20 @@ error: `noreturn` requires a terminator at the end - --> $DIR/block_tracking_fail.rs:11:15 - | -11 | asm!("", options(noreturn)); - | ^ + --> $DIR/block_tracking_fail.rs: + | + | asm!("", options(noreturn)); + | ^ error: trailing terminator `OpUnreachable` requires `options(noreturn)` - --> $DIR/block_tracking_fail.rs:18:15 - | -18 | asm!("OpUnreachable"); - | ^^^^^^^^^^^^^ + --> $DIR/block_tracking_fail.rs: + | + | asm!("OpUnreachable"); + | ^^^^^^^^^^^^^ error: expected `OpLabel` after terminator `OpKill` - --> $DIR/block_tracking_fail.rs:26:14 - | -26 | "OpKill", - | ^^^^^^ + --> $DIR/block_tracking_fail.rs: + | + | "OpKill", + | ^^^^^^ error: aborting due to 3 previous errors diff --git a/tests/compiletests/ui/lang/asm/issue-1002.rs b/tests/compiletests/ui/lang/asm/issue-1002.rs index 07bae5b294..ce9c0580c2 100644 --- a/tests/compiletests/ui/lang/asm/issue-1002.rs +++ b/tests/compiletests/ui/lang/asm/issue-1002.rs @@ -1,5 +1,7 @@ // Tests that we don't allow returning from `asm!` (which would always be UB). // build-fail +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use core::arch::asm; use spirv_std::spirv; diff --git a/tests/compiletests/ui/lang/asm/issue-1002.stderr b/tests/compiletests/ui/lang/asm/issue-1002.stderr index e1f8c10c6e..37366afaac 100644 --- a/tests/compiletests/ui/lang/asm/issue-1002.stderr +++ b/tests/compiletests/ui/lang/asm/issue-1002.stderr @@ -1,34 +1,34 @@ error: using `OpReturn` to return from within `asm!` is disallowed - --> $DIR/issue-1002.rs:9:15 - | -9 | asm!("OpReturn", options(noreturn)); - | ^^^^^^^^ - | - = note: resuming execution, without falling through the end of the `asm!` block, is always undefined behavior + --> $DIR/issue-1002.rs: + | + | asm!("OpReturn", options(noreturn)); + | ^^^^^^^^ + | + = note: resuming execution, without falling through the end of the `asm!` block, is always undefined behavior error: using `OpReturnValue` to return from within `asm!` is disallowed - --> $DIR/issue-1002.rs:16:14 - | -16 | "OpReturnValue {x}", - | ^^^^^^^^^^^^^^^^^ - | - = note: resuming execution, without falling through the end of the `asm!` block, is always undefined behavior + --> $DIR/issue-1002.rs: + | + | "OpReturnValue {x}", + | ^^^^^^^^^^^^^^^^^ + | + = note: resuming execution, without falling through the end of the `asm!` block, is always undefined behavior error: using `OpReturn` to return from within `asm!` is disallowed - --> $DIR/issue-1002.rs:26:14 - | -26 | "OpReturn", // close active block - | ^^^^^^^^ - | - = note: resuming execution, without falling through the end of the `asm!` block, is always undefined behavior + --> $DIR/issue-1002.rs: + | + | "OpReturn", // close active block + | ^^^^^^^^ + | + = note: resuming execution, without falling through the end of the `asm!` block, is always undefined behavior error: using `OpReturnValue` to return from within `asm!` is disallowed - --> $DIR/issue-1002.rs:35:14 - | -35 | "OpReturnValue {x}", // close active block - | ^^^^^^^^^^^^^^^^^ - | - = note: resuming execution, without falling through the end of the `asm!` block, is always undefined behavior + --> $DIR/issue-1002.rs: + | + | "OpReturnValue {x}", // close active block + | ^^^^^^^^^^^^^^^^^ + | + = note: resuming execution, without falling through the end of the `asm!` block, is always undefined behavior error: aborting due to 4 previous errors diff --git a/tests/compiletests/ui/lang/consts/nested-ref-in-composite.rs b/tests/compiletests/ui/lang/consts/nested-ref-in-composite.rs index c2a852333f..b30749a271 100644 --- a/tests/compiletests/ui/lang/consts/nested-ref-in-composite.rs +++ b/tests/compiletests/ui/lang/consts/nested-ref-in-composite.rs @@ -2,6 +2,8 @@ // nested in `OpConstantComposite` (structs/arrays) - currently these are disallowed. // build-fail +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use spirv_std::spirv; diff --git a/tests/compiletests/ui/lang/consts/nested-ref-in-composite.stderr b/tests/compiletests/ui/lang/consts/nested-ref-in-composite.stderr index 632757f31d..b26c3319a8 100644 --- a/tests/compiletests/ui/lang/consts/nested-ref-in-composite.stderr +++ b/tests/compiletests/ui/lang/consts/nested-ref-in-composite.stderr @@ -1,36 +1,36 @@ error: constant arrays/structs cannot contain pointers to other constants - --> $DIR/nested-ref-in-composite.rs:20:17 - | -20 | *pair_out = pair_deep_load(&(&123, &3.14)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | + --> $DIR/nested-ref-in-composite.rs: + | + | *pair_out = pair_deep_load(&(&123, &3.14)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | note: used from within `nested_ref_in_composite::main_pair` - --> $DIR/nested-ref-in-composite.rs:20:17 - | -20 | *pair_out = pair_deep_load(&(&123, &3.14)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + --> $DIR/nested-ref-in-composite.rs: + | + | *pair_out = pair_deep_load(&(&123, &3.14)); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ note: called by `main_pair` - --> $DIR/nested-ref-in-composite.rs:19:8 - | -19 | pub fn main_pair(pair_out: &mut (u32, f32)) { - | ^^^^^^^^^ + --> $DIR/nested-ref-in-composite.rs: + | + | pub fn main_pair(pair_out: &mut (u32, f32)) { + | ^^^^^^^^^ error: constant arrays/structs cannot contain pointers to other constants - --> $DIR/nested-ref-in-composite.rs:25:19 - | -25 | *array3_out = array3_deep_load(&[&0, &1, &2]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | + --> $DIR/nested-ref-in-composite.rs: + | + | *array3_out = array3_deep_load(&[&0, &1, &2]); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | note: used from within `nested_ref_in_composite::main_array3` - --> $DIR/nested-ref-in-composite.rs:25:19 - | -25 | *array3_out = array3_deep_load(&[&0, &1, &2]); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + --> $DIR/nested-ref-in-composite.rs: + | + | *array3_out = array3_deep_load(&[&0, &1, &2]); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ note: called by `main_array3` - --> $DIR/nested-ref-in-composite.rs:24:8 - | -24 | pub fn main_array3(array3_out: &mut [u32; 3]) { - | ^^^^^^^^^^^ + --> $DIR/nested-ref-in-composite.rs: + | + | pub fn main_array3(array3_out: &mut [u32; 3]) { + | ^^^^^^^^^^^ error: aborting due to 2 previous errors diff --git a/tests/compiletests/ui/lang/consts/nested-ref.rs b/tests/compiletests/ui/lang/consts/nested-ref.rs index 293325475c..8753a2c79b 100644 --- a/tests/compiletests/ui/lang/consts/nested-ref.rs +++ b/tests/compiletests/ui/lang/consts/nested-ref.rs @@ -3,6 +3,8 @@ // build-pass // compile-flags: -C target-feature=+VariablePointers +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use spirv_std::spirv; diff --git a/tests/compiletests/ui/lang/consts/nested-ref.stderr b/tests/compiletests/ui/lang/consts/nested-ref.stderr index e66427d0a3..f939a2cec9 100644 --- a/tests/compiletests/ui/lang/consts/nested-ref.stderr +++ b/tests/compiletests/ui/lang/consts/nested-ref.stderr @@ -1,20 +1,20 @@ warning: `#[inline(never)]` function `nested_ref::deep_load` has been inlined - --> $DIR/nested-ref.rs:12:4 - | -12 | fn deep_load(r: &'static &'static u32) -> u32 { - | ^^^^^^^^^ - | - = note: inlining was required due to illegal parameter type - = note: called from `nested_ref::main` + --> $DIR/nested-ref.rs: + | + | fn deep_load(r: &'static &'static u32) -> u32 { + | ^^^^^^^^^ + | + = note: inlining was required due to illegal parameter type + = note: called from `nested_ref::main` warning: `#[inline(never)]` function `nested_ref::deep_transpose` has been inlined - --> $DIR/nested-ref.rs:19:4 - | -19 | fn deep_transpose(r: &'static &'static Mat2) -> Mat2 { - | ^^^^^^^^^^^^^^ - | - = note: inlining was required due to illegal parameter type - = note: called from `nested_ref::main` + --> $DIR/nested-ref.rs: + | + | fn deep_transpose(r: &'static &'static Mat2) -> Mat2 { + | ^^^^^^^^^^^^^^ + | + = note: inlining was required due to illegal parameter type + = note: called from `nested_ref::main` warning: 2 warnings emitted diff --git a/tests/compiletests/ui/lang/consts/u32-from-u64-fail.rs b/tests/compiletests/ui/lang/consts/u32-from-u64-fail.rs index b4e26d56f5..23aa33f0e5 100644 --- a/tests/compiletests/ui/lang/consts/u32-from-u64-fail.rs +++ b/tests/compiletests/ui/lang/consts/u32-from-u64-fail.rs @@ -2,6 +2,8 @@ // This ensures our From trait optimization doesn't accidentally allow invalid conversions // build-fail +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use spirv_std::spirv; diff --git a/tests/compiletests/ui/lang/consts/u32-from-u64-fail.stderr b/tests/compiletests/ui/lang/consts/u32-from-u64-fail.stderr index 4b9e8f23ea..20fd4547af 100644 --- a/tests/compiletests/ui/lang/consts/u32-from-u64-fail.stderr +++ b/tests/compiletests/ui/lang/consts/u32-from-u64-fail.stderr @@ -1,10 +1,10 @@ error[E0277]: the trait bound `u32: From` is not satisfied - --> $DIR/u32-from-u64-fail.rs:14:17 - | -14 | let value = u32::from(K); - | ^^^ the trait `From` is not implemented for `u32` - | - = help: the following other types implement trait `From`: + --> $DIR/u32-from-u64-fail.rs: + | + | let value = u32::from(K); + | ^^^ the trait `From` is not implemented for `u32` + | + = help: the following other types implement trait `From`: `u32` implements `From` `u32` implements `From` `u32` implements `From` diff --git a/tests/compiletests/ui/lang/core/ptr/allocate_const_scalar.rs b/tests/compiletests/ui/lang/core/ptr/allocate_const_scalar.rs index 4d49c6ce7a..d12fb79561 100644 --- a/tests/compiletests/ui/lang/core/ptr/allocate_const_scalar.rs +++ b/tests/compiletests/ui/lang/core/ptr/allocate_const_scalar.rs @@ -2,6 +2,8 @@ // hitting the backend. // build-fail +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" #![feature(ptr_internals)] diff --git a/tests/compiletests/ui/lang/core/ptr/allocate_const_scalar.stderr b/tests/compiletests/ui/lang/core/ptr/allocate_const_scalar.stderr index f094f850fa..4f564669ac 100644 --- a/tests/compiletests/ui/lang/core/ptr/allocate_const_scalar.stderr +++ b/tests/compiletests/ui/lang/core/ptr/allocate_const_scalar.stderr @@ -1,24 +1,24 @@ warning: the feature `ptr_internals` is internal to the compiler or standard library - --> $DIR/allocate_const_scalar.rs:6:12 - | -6 | #![feature(ptr_internals)] - | ^^^^^^^^^^^^^ - | - = note: using it is strongly discouraged - = note: `#[warn(internal_features)]` on by default + --> $DIR/allocate_const_scalar.rs: + | + | #![feature(ptr_internals)] + | ^^^^^^^^^^^^^ + | + = note: using it is strongly discouraged + = note: `#[warn(internal_features)]` on by default error: pointer has non-null integer address - | + | note: used from within `allocate_const_scalar::main` - --> $DIR/allocate_const_scalar.rs:16:5 - | -16 | *output = POINTER; - | ^^^^^^^^^^^^^^^^^ + --> $DIR/allocate_const_scalar.rs: + | + | *output = POINTER; + | ^^^^^^^^^^^^^^^^^ note: called by `main` - --> $DIR/allocate_const_scalar.rs:15:8 - | -15 | pub fn main(output: &mut Unique<()>) { - | ^^^^ + --> $DIR/allocate_const_scalar.rs: + | + | pub fn main(output: &mut Unique<()>) { + | ^^^^ error: aborting due to 1 previous error; 1 warning emitted diff --git a/tests/compiletests/ui/lang/core/ptr/allocate_vec_like.rs b/tests/compiletests/ui/lang/core/ptr/allocate_vec_like.rs index 7319a25ca6..5097f723f1 100644 --- a/tests/compiletests/ui/lang/core/ptr/allocate_vec_like.rs +++ b/tests/compiletests/ui/lang/core/ptr/allocate_vec_like.rs @@ -1,5 +1,7 @@ // Tests using a vector like pointer at `const` time. // build-pass +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" #![feature(ptr_internals)] diff --git a/tests/compiletests/ui/lang/core/ptr/allocate_vec_like.stderr b/tests/compiletests/ui/lang/core/ptr/allocate_vec_like.stderr index d4376b8486..7ccbb89ae5 100644 --- a/tests/compiletests/ui/lang/core/ptr/allocate_vec_like.stderr +++ b/tests/compiletests/ui/lang/core/ptr/allocate_vec_like.stderr @@ -1,11 +1,11 @@ warning: the feature `ptr_internals` is internal to the compiler or standard library - --> $DIR/allocate_vec_like.rs:4:12 - | -4 | #![feature(ptr_internals)] - | ^^^^^^^^^^^^^ - | - = note: using it is strongly discouraged - = note: `#[warn(internal_features)]` on by default + --> $DIR/allocate_vec_like.rs: + | + | #![feature(ptr_internals)] + | ^^^^^^^^^^^^^ + | + = note: using it is strongly discouraged + = note: `#[warn(internal_features)]` on by default warning: 1 warning emitted diff --git a/tests/compiletests/ui/lang/core/ref/member_ref_arg-broken.rs b/tests/compiletests/ui/lang/core/ref/member_ref_arg-broken.rs index e0f13873ba..f513793941 100644 --- a/tests/compiletests/ui/lang/core/ref/member_ref_arg-broken.rs +++ b/tests/compiletests/ui/lang/core/ref/member_ref_arg-broken.rs @@ -5,6 +5,8 @@ // build-fail // normalize-stderr-test "ref/member_ref_arg-broken\.[^`]*" -> "ref/member_ref_arg-broken" // normalize-stderr-test "38\[%38\]" -> "$$ID[%$$ID]" +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use spirv_std::spirv; diff --git a/tests/compiletests/ui/lang/core/ref/member_ref_arg-broken.stderr b/tests/compiletests/ui/lang/core/ref/member_ref_arg-broken.stderr index 21d8dd55b6..6f2d6bbf23 100644 --- a/tests/compiletests/ui/lang/core/ref/member_ref_arg-broken.stderr +++ b/tests/compiletests/ui/lang/core/ref/member_ref_arg-broken.stderr @@ -1,44 +1,44 @@ warning: `#[inline(never)]` function `member_ref_arg_broken::f` has been inlined - --> $DIR/member_ref_arg-broken.rs:20:4 - | -20 | fn f(x: &u32) -> u32 { - | ^ - | - = note: inlining was required due to illegal (pointer) argument - = note: called from `member_ref_arg_broken::main` + --> $DIR/member_ref_arg-broken.rs: + | + | fn f(x: &u32) -> u32 { + | ^ + | + = note: inlining was required due to illegal (pointer) argument + = note: called from `member_ref_arg_broken::main` warning: `#[inline(never)]` function `member_ref_arg_broken::g` has been inlined - --> $DIR/member_ref_arg-broken.rs:25:4 - | -25 | fn g(xy: (&u32, &u32)) -> (u32, u32) { - | ^ - | - = note: inlining was required due to illegal (pointer) argument - = note: called from `member_ref_arg_broken::main` + --> $DIR/member_ref_arg-broken.rs: + | + | fn g(xy: (&u32, &u32)) -> (u32, u32) { + | ^ + | + = note: inlining was required due to illegal (pointer) argument + = note: called from `member_ref_arg_broken::main` warning: `#[inline(never)]` function `member_ref_arg_broken::h` has been inlined - --> $DIR/member_ref_arg-broken.rs:30:4 - | -30 | fn h(xyz: (&u32, &u32, &u32)) -> (u32, u32, u32) { - | ^ - | - = note: inlining was required due to illegal parameter type - = note: called from `member_ref_arg_broken::main` + --> $DIR/member_ref_arg-broken.rs: + | + | fn h(xyz: (&u32, &u32, &u32)) -> (u32, u32, u32) { + | ^ + | + = note: inlining was required due to illegal parameter type + = note: called from `member_ref_arg_broken::main` warning: `#[inline(never)]` function `member_ref_arg_broken::h_newtyped` has been inlined - --> $DIR/member_ref_arg-broken.rs:41:4 - | -41 | fn h_newtyped(xyz: ((&u32, &u32, &u32),)) -> (u32, u32, u32) { - | ^^^^^^^^^^ - | - = note: inlining was required due to illegal parameter type - = note: called from `member_ref_arg_broken::main` + --> $DIR/member_ref_arg-broken.rs: + | + | fn h_newtyped(xyz: ((&u32, &u32, &u32),)) -> (u32, u32, u32) { + | ^^^^^^^^^^ + | + = note: inlining was required due to illegal parameter type + = note: called from `member_ref_arg_broken::main` error: error:0:0 - OpLoad Pointer '$ID[%$ID]' is not a logical pointer. %39 = OpLoad %uint %38 - | - = note: spirv-val failed - = note: module `$TEST_BUILD_DIR/lang/core/ref/member_ref_arg-broken` + | + = note: spirv-val failed + = note: module `$TEST_BUILD_DIR/lang/core/ref/member_ref_arg-broken` error: aborting due to 1 previous error; 4 warnings emitted diff --git a/tests/compiletests/ui/lang/core/ref/member_ref_arg.rs b/tests/compiletests/ui/lang/core/ref/member_ref_arg.rs index fdf6b1b356..3b042eb1ab 100644 --- a/tests/compiletests/ui/lang/core/ref/member_ref_arg.rs +++ b/tests/compiletests/ui/lang/core/ref/member_ref_arg.rs @@ -1,4 +1,6 @@ // build-pass +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use spirv_std::spirv; diff --git a/tests/compiletests/ui/lang/core/ref/member_ref_arg.stderr b/tests/compiletests/ui/lang/core/ref/member_ref_arg.stderr index fd875abfcc..4b1acb2f36 100644 --- a/tests/compiletests/ui/lang/core/ref/member_ref_arg.stderr +++ b/tests/compiletests/ui/lang/core/ref/member_ref_arg.stderr @@ -1,20 +1,20 @@ warning: `#[inline(never)]` function `member_ref_arg::f` has been inlined - --> $DIR/member_ref_arg.rs:14:4 - | -14 | fn f(x: &u32) {} - | ^ - | - = note: inlining was required due to illegal (pointer) argument - = note: called from `member_ref_arg::main` + --> $DIR/member_ref_arg.rs: + | + | fn f(x: &u32) {} + | ^ + | + = note: inlining was required due to illegal (pointer) argument + = note: called from `member_ref_arg::main` warning: `#[inline(never)]` function `member_ref_arg::g` has been inlined - --> $DIR/member_ref_arg.rs:17:4 - | -17 | fn g(xy: (&u32, &u32)) {} - | ^ - | - = note: inlining was required due to illegal (pointer) argument - = note: called from `member_ref_arg::main` + --> $DIR/member_ref_arg.rs: + | + | fn g(xy: (&u32, &u32)) {} + | ^ + | + = note: inlining was required due to illegal (pointer) argument + = note: called from `member_ref_arg::main` warning: 2 warnings emitted diff --git a/tests/compiletests/ui/lang/core/ref/zst_member_ref_arg-broken.rs b/tests/compiletests/ui/lang/core/ref/zst_member_ref_arg-broken.rs index cdb10e4fbd..2b11031990 100644 --- a/tests/compiletests/ui/lang/core/ref/zst_member_ref_arg-broken.rs +++ b/tests/compiletests/ui/lang/core/ref/zst_member_ref_arg-broken.rs @@ -3,6 +3,8 @@ // for now we care more that the error messages do not regress too much. // build-fail +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use spirv_std::spirv; struct A; diff --git a/tests/compiletests/ui/lang/core/ref/zst_member_ref_arg-broken.stderr b/tests/compiletests/ui/lang/core/ref/zst_member_ref_arg-broken.stderr index 126ff058ac..64dedd3be2 100644 --- a/tests/compiletests/ui/lang/core/ref/zst_member_ref_arg-broken.stderr +++ b/tests/compiletests/ui/lang/core/ref/zst_member_ref_arg-broken.stderr @@ -1,167 +1,167 @@ error: cannot offset a pointer to an arbitrary element - --> $DIR/zst_member_ref_arg-broken.rs:23:7 - | -23 | f(&s.y); - | ^^^^ - | + --> $DIR/zst_member_ref_arg-broken.rs: + | + | f(&s.y); + | ^^^^ + | note: used from within `zst_member_ref_arg_broken::main_scalar` - --> $DIR/zst_member_ref_arg-broken.rs:23:7 - | -23 | f(&s.y); - | ^^^^ + --> $DIR/zst_member_ref_arg-broken.rs: + | + | f(&s.y); + | ^^^^ note: called by `main_scalar` - --> $DIR/zst_member_ref_arg-broken.rs:22:8 - | -22 | pub fn main_scalar(#[spirv(push_constant)] s: &S) { - | ^^^^^^^^^^^ + --> $DIR/zst_member_ref_arg-broken.rs: + | + | pub fn main_scalar(#[spirv(push_constant)] s: &S) { + | ^^^^^^^^^^^ error: cannot cast between pointer types from `*u32` to `*u8` - --> $DIR/zst_member_ref_arg-broken.rs:23:7 - | -23 | f(&s.y); - | ^^^^ - | + --> $DIR/zst_member_ref_arg-broken.rs: + | + | f(&s.y); + | ^^^^ + | note: used from within `zst_member_ref_arg_broken::main_scalar` - --> $DIR/zst_member_ref_arg-broken.rs:23:7 - | -23 | f(&s.y); - | ^^^^ + --> $DIR/zst_member_ref_arg-broken.rs: + | + | f(&s.y); + | ^^^^ note: called by `main_scalar` - --> $DIR/zst_member_ref_arg-broken.rs:22:8 - | -22 | pub fn main_scalar(#[spirv(push_constant)] s: &S) { - | ^^^^^^^^^^^ + --> $DIR/zst_member_ref_arg-broken.rs: + | + | pub fn main_scalar(#[spirv(push_constant)] s: &S) { + | ^^^^^^^^^^^ error: cannot cast between pointer types from `*u8` to `*struct B { }` - --> $DIR/zst_member_ref_arg-broken.rs:23:5 - | -23 | f(&s.y); - | ^^^^^^^ - | + --> $DIR/zst_member_ref_arg-broken.rs: + | + | f(&s.y); + | ^^^^^^^ + | note: used from within `zst_member_ref_arg_broken::main_scalar` - --> $DIR/zst_member_ref_arg-broken.rs:23:5 - | -23 | f(&s.y); - | ^^^^^^^ + --> $DIR/zst_member_ref_arg-broken.rs: + | + | f(&s.y); + | ^^^^^^^ note: called by `main_scalar` - --> $DIR/zst_member_ref_arg-broken.rs:22:8 - | -22 | pub fn main_scalar(#[spirv(push_constant)] s: &S) { - | ^^^^^^^^^^^ + --> $DIR/zst_member_ref_arg-broken.rs: + | + | pub fn main_scalar(#[spirv(push_constant)] s: &S) { + | ^^^^^^^^^^^ error: cannot offset a pointer to an arbitrary element - --> $DIR/zst_member_ref_arg-broken.rs:28:7 - | -28 | f(&s.y); - | ^^^^ - | + --> $DIR/zst_member_ref_arg-broken.rs: + | + | f(&s.y); + | ^^^^ + | note: used from within `zst_member_ref_arg_broken::main_scalar_pair` - --> $DIR/zst_member_ref_arg-broken.rs:28:7 - | -28 | f(&s.y); - | ^^^^ + --> $DIR/zst_member_ref_arg-broken.rs: + | + | f(&s.y); + | ^^^^ note: called by `main_scalar_pair` - --> $DIR/zst_member_ref_arg-broken.rs:27:8 - | -27 | pub fn main_scalar_pair(#[spirv(push_constant)] s: &S) { - | ^^^^^^^^^^^^^^^^ + --> $DIR/zst_member_ref_arg-broken.rs: + | + | pub fn main_scalar_pair(#[spirv(push_constant)] s: &S) { + | ^^^^^^^^^^^^^^^^ error: cannot cast between pointer types from `*struct S { u32, u32 }` to `*u8` - --> $DIR/zst_member_ref_arg-broken.rs:28:7 - | -28 | f(&s.y); - | ^^^^ - | + --> $DIR/zst_member_ref_arg-broken.rs: + | + | f(&s.y); + | ^^^^ + | note: used from within `zst_member_ref_arg_broken::main_scalar_pair` - --> $DIR/zst_member_ref_arg-broken.rs:28:7 - | -28 | f(&s.y); - | ^^^^ + --> $DIR/zst_member_ref_arg-broken.rs: + | + | f(&s.y); + | ^^^^ note: called by `main_scalar_pair` - --> $DIR/zst_member_ref_arg-broken.rs:27:8 - | -27 | pub fn main_scalar_pair(#[spirv(push_constant)] s: &S) { - | ^^^^^^^^^^^^^^^^ + --> $DIR/zst_member_ref_arg-broken.rs: + | + | pub fn main_scalar_pair(#[spirv(push_constant)] s: &S) { + | ^^^^^^^^^^^^^^^^ error: cannot cast between pointer types from `*u8` to `*struct B { }` - --> $DIR/zst_member_ref_arg-broken.rs:28:5 - | -28 | f(&s.y); - | ^^^^^^^ - | + --> $DIR/zst_member_ref_arg-broken.rs: + | + | f(&s.y); + | ^^^^^^^ + | note: used from within `zst_member_ref_arg_broken::main_scalar_pair` - --> $DIR/zst_member_ref_arg-broken.rs:28:5 - | -28 | f(&s.y); - | ^^^^^^^ + --> $DIR/zst_member_ref_arg-broken.rs: + | + | f(&s.y); + | ^^^^^^^ note: called by `main_scalar_pair` - --> $DIR/zst_member_ref_arg-broken.rs:27:8 - | -27 | pub fn main_scalar_pair(#[spirv(push_constant)] s: &S) { - | ^^^^^^^^^^^^^^^^ + --> $DIR/zst_member_ref_arg-broken.rs: + | + | pub fn main_scalar_pair(#[spirv(push_constant)] s: &S) { + | ^^^^^^^^^^^^^^^^ error: cannot offset a pointer to an arbitrary element - --> $DIR/zst_member_ref_arg-broken.rs:33:7 - | -33 | f(&s.y); - | ^^^^ - | + --> $DIR/zst_member_ref_arg-broken.rs: + | + | f(&s.y); + | ^^^^ + | note: used from within `zst_member_ref_arg_broken::main_scalar_scalar_pair_nested` - --> $DIR/zst_member_ref_arg-broken.rs:33:7 - | -33 | f(&s.y); - | ^^^^ + --> $DIR/zst_member_ref_arg-broken.rs: + | + | f(&s.y); + | ^^^^ note: called by `main_scalar_scalar_pair_nested` - --> $DIR/zst_member_ref_arg-broken.rs:32:8 - | -32 | pub fn main_scalar_scalar_pair_nested(#[spirv(push_constant)] s: &S<(usize, usize)>) { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + --> $DIR/zst_member_ref_arg-broken.rs: + | + | pub fn main_scalar_scalar_pair_nested(#[spirv(push_constant)] s: &S<(usize, usize)>) { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot cast between pointer types from `*struct (usize, usize) { u32, u32 }` to `*u8` - --> $DIR/zst_member_ref_arg-broken.rs:33:7 - | -33 | f(&s.y); - | ^^^^ - | + --> $DIR/zst_member_ref_arg-broken.rs: + | + | f(&s.y); + | ^^^^ + | note: used from within `zst_member_ref_arg_broken::main_scalar_scalar_pair_nested` - --> $DIR/zst_member_ref_arg-broken.rs:33:7 - | -33 | f(&s.y); - | ^^^^ + --> $DIR/zst_member_ref_arg-broken.rs: + | + | f(&s.y); + | ^^^^ note: called by `main_scalar_scalar_pair_nested` - --> $DIR/zst_member_ref_arg-broken.rs:32:8 - | -32 | pub fn main_scalar_scalar_pair_nested(#[spirv(push_constant)] s: &S<(usize, usize)>) { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + --> $DIR/zst_member_ref_arg-broken.rs: + | + | pub fn main_scalar_scalar_pair_nested(#[spirv(push_constant)] s: &S<(usize, usize)>) { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot cast between pointer types from `*u8` to `*struct B { }` - --> $DIR/zst_member_ref_arg-broken.rs:33:5 - | -33 | f(&s.y); - | ^^^^^^^ - | + --> $DIR/zst_member_ref_arg-broken.rs: + | + | f(&s.y); + | ^^^^^^^ + | note: used from within `zst_member_ref_arg_broken::main_scalar_scalar_pair_nested` - --> $DIR/zst_member_ref_arg-broken.rs:33:5 - | -33 | f(&s.y); - | ^^^^^^^ + --> $DIR/zst_member_ref_arg-broken.rs: + | + | f(&s.y); + | ^^^^^^^ note: called by `main_scalar_scalar_pair_nested` - --> $DIR/zst_member_ref_arg-broken.rs:32:8 - | -32 | pub fn main_scalar_scalar_pair_nested(#[spirv(push_constant)] s: &S<(usize, usize)>) { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + --> $DIR/zst_member_ref_arg-broken.rs: + | + | pub fn main_scalar_scalar_pair_nested(#[spirv(push_constant)] s: &S<(usize, usize)>) { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 9 previous errors diff --git a/tests/compiletests/ui/lang/panic/track_caller.rs b/tests/compiletests/ui/lang/panic/track_caller.rs index 436136876c..fd09a2750b 100644 --- a/tests/compiletests/ui/lang/panic/track_caller.rs +++ b/tests/compiletests/ui/lang/panic/track_caller.rs @@ -1,6 +1,8 @@ // Test that propagating `#[track_caller]` doesn't cause constant-related errors. // build-pass +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use spirv_std::spirv; diff --git a/tests/compiletests/ui/lang/panic/track_caller.stderr b/tests/compiletests/ui/lang/panic/track_caller.stderr index 0b97060a71..c77b65928b 100644 --- a/tests/compiletests/ui/lang/panic/track_caller.stderr +++ b/tests/compiletests/ui/lang/panic/track_caller.stderr @@ -1,11 +1,11 @@ warning: `#[inline(never)]` function `track_caller::track_caller_maybe_panic::panic_cold_explicit` has been inlined - --> $DIR/track_caller.rs:10:9 - | -10 | panic!(); - | ^^^^^^^^ - | - = note: inlining was required due to panicking - = note: called from `track_caller::track_caller_maybe_panic` + --> $DIR/track_caller.rs: + | + | panic!(); + | ^^^^^^^^ + | + = note: inlining was required due to panicking + = note: called from `track_caller::track_caller_maybe_panic` warning: 1 warning emitted diff --git a/tests/compiletests/ui/spirv-attr/bad-deduce-storage-class.rs b/tests/compiletests/ui/spirv-attr/bad-deduce-storage-class.rs index ef1a523ecf..4054ec22d0 100644 --- a/tests/compiletests/ui/spirv-attr/bad-deduce-storage-class.rs +++ b/tests/compiletests/ui/spirv-attr/bad-deduce-storage-class.rs @@ -1,5 +1,7 @@ // Tests that storage class deduction (from entry-point signature) fails correctly // build-fail +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use spirv_std::{Image, spirv}; diff --git a/tests/compiletests/ui/spirv-attr/bad-deduce-storage-class.stderr b/tests/compiletests/ui/spirv-attr/bad-deduce-storage-class.stderr index d1295c78ab..a8fca3dd26 100644 --- a/tests/compiletests/ui/spirv-attr/bad-deduce-storage-class.stderr +++ b/tests/compiletests/ui/spirv-attr/bad-deduce-storage-class.stderr @@ -1,27 +1,27 @@ error: storage class mismatch - --> $DIR/bad-deduce-storage-class.rs:8:5 - | -8 | #[spirv(uniform)] error: &Image!(2D, type=f32), - | ^^^^^^^^-------^^^^^^^^^^--------------------- - | | | - | | `UniformConstant` deduced from type - | `Uniform` specified in attribute - | - = help: remove storage class attribute to use `UniformConstant` as storage class + --> $DIR/bad-deduce-storage-class.rs: + | + | #[spirv(uniform)] error: &Image!(2D, type=f32), + | ^^^^^^^^-------^^^^^^^^^^--------------------- + | | | + | | `UniformConstant` deduced from type + | `Uniform` specified in attribute + | + = help: remove storage class attribute to use `UniformConstant` as storage class warning: redundant storage class attribute, storage class is deduced from type - --> $DIR/bad-deduce-storage-class.rs:9:13 - | -9 | #[spirv(uniform_constant)] warning: &Image!(2D, type=f32), - | ^^^^^^^^^^^^^^^^ + --> $DIR/bad-deduce-storage-class.rs: + | + | #[spirv(uniform_constant)] warning: &Image!(2D, type=f32), + | ^^^^^^^^^^^^^^^^ error: entry parameter type must be by-reference: `&spirv_std::image::Image` - --> $DIR/bad-deduce-storage-class.rs:15:27 - | -15 | pub fn issue_585(invalid: Image!(2D, type=f32)) {} - | ^^^^^^^^^^^^^^^^^^^^ - | - = note: this error originates in the macro `Image` (in Nightly builds, run with -Z macro-backtrace for more info) + --> $DIR/bad-deduce-storage-class.rs: + | + | pub fn issue_585(invalid: Image!(2D, type=f32)) {} + | ^^^^^^^^^^^^^^^^^^^^ + | + = note: this error originates in the macro `Image` (in Nightly builds, run with -Z macro-backtrace for more info) error: aborting due to 2 previous errors; 1 warning emitted diff --git a/tests/compiletests/ui/spirv-attr/bool-inputs-err.rs b/tests/compiletests/ui/spirv-attr/bool-inputs-err.rs index d157703a06..4eb1e2b4f4 100644 --- a/tests/compiletests/ui/spirv-attr/bool-inputs-err.rs +++ b/tests/compiletests/ui/spirv-attr/bool-inputs-err.rs @@ -1,4 +1,6 @@ // build-fail +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use spirv_std::spirv; diff --git a/tests/compiletests/ui/spirv-attr/bool-inputs-err.stderr b/tests/compiletests/ui/spirv-attr/bool-inputs-err.stderr index 2f79db13b5..8db5de7bdb 100644 --- a/tests/compiletests/ui/spirv-attr/bool-inputs-err.stderr +++ b/tests/compiletests/ui/spirv-attr/bool-inputs-err.stderr @@ -1,26 +1,26 @@ error: entry-point parameter cannot contain `bool`s - --> $DIR/bool-inputs-err.rs:13:12 - | -13 | input: bool, - | ^^^^ + --> $DIR/bool-inputs-err.rs: + | + | input: bool, + | ^^^^ error: entry-point parameter cannot contain `bool`s - --> $DIR/bool-inputs-err.rs:14:13 - | -14 | output: &mut bool, - | ^^^^^^^^^ + --> $DIR/bool-inputs-err.rs: + | + | output: &mut bool, + | ^^^^^^^^^ error: entry-point parameter cannot contain `bool`s - --> $DIR/bool-inputs-err.rs:15:35 - | -15 | #[spirv(push_constant)] push: &bool, - | ^^^^^ + --> $DIR/bool-inputs-err.rs: + | + | #[spirv(push_constant)] push: &bool, + | ^^^^^ error: entry-point parameter cannot contain `bool`s - --> $DIR/bool-inputs-err.rs:16:32 - | -16 | #[spirv(uniform)] uniform: &Boolthing, - | ^^^^^^^^^^ + --> $DIR/bool-inputs-err.rs: + | + | #[spirv(uniform)] uniform: &Boolthing, + | ^^^^^^^^^^ error: aborting due to 4 previous errors diff --git a/tests/compiletests/ui/spirv-attr/int-without-flat.rs b/tests/compiletests/ui/spirv-attr/int-without-flat.rs index 5536f1a2b9..cafa0361dd 100644 --- a/tests/compiletests/ui/spirv-attr/int-without-flat.rs +++ b/tests/compiletests/ui/spirv-attr/int-without-flat.rs @@ -1,4 +1,6 @@ // build-fail +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use spirv_std::spirv; diff --git a/tests/compiletests/ui/spirv-attr/int-without-flat.stderr b/tests/compiletests/ui/spirv-attr/int-without-flat.stderr index 45b5fcbc6b..5e12049699 100644 --- a/tests/compiletests/ui/spirv-attr/int-without-flat.stderr +++ b/tests/compiletests/ui/spirv-attr/int-without-flat.stderr @@ -1,14 +1,14 @@ error: `Fragment` entry-point `Input` parameter must be decorated with `#[spirv(flat)]` - --> $DIR/int-without-flat.rs:6:22 - | -6 | pub fn fragment(int: u32, double: f64) {} - | ^^^ + --> $DIR/int-without-flat.rs: + | + | pub fn fragment(int: u32, double: f64) {} + | ^^^ error: `Fragment` entry-point `Input` parameter must be decorated with `#[spirv(flat)]` - --> $DIR/int-without-flat.rs:6:35 - | -6 | pub fn fragment(int: u32, double: f64) {} - | ^^^ + --> $DIR/int-without-flat.rs: + | + | pub fn fragment(int: u32, double: f64) {} + | ^^^ error: aborting due to 2 previous errors diff --git a/tests/compiletests/ui/spirv-attr/invalid-matrix-type-empty.rs b/tests/compiletests/ui/spirv-attr/invalid-matrix-type-empty.rs index f323a3f17a..effe804c22 100644 --- a/tests/compiletests/ui/spirv-attr/invalid-matrix-type-empty.rs +++ b/tests/compiletests/ui/spirv-attr/invalid-matrix-type-empty.rs @@ -1,5 +1,7 @@ // Tests that matrix type inference fails correctly, for empty struct // build-fail +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use spirv_std::spirv; diff --git a/tests/compiletests/ui/spirv-attr/invalid-matrix-type-empty.stderr b/tests/compiletests/ui/spirv-attr/invalid-matrix-type-empty.stderr index 45b1139cc0..fb097a8ef5 100644 --- a/tests/compiletests/ui/spirv-attr/invalid-matrix-type-empty.stderr +++ b/tests/compiletests/ui/spirv-attr/invalid-matrix-type-empty.stderr @@ -1,8 +1,8 @@ error: `#[spirv(matrix)]` member types must all be the same - --> $DIR/invalid-matrix-type-empty.rs:7:1 - | -7 | pub struct EmptyStruct {} - | ^^^^^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-matrix-type-empty.rs: + | + | pub struct EmptyStruct {} + | ^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 1 previous error diff --git a/tests/compiletests/ui/spirv-attr/invalid-matrix-type.rs b/tests/compiletests/ui/spirv-attr/invalid-matrix-type.rs index 1fba8e60af..d7bf1768bd 100644 --- a/tests/compiletests/ui/spirv-attr/invalid-matrix-type.rs +++ b/tests/compiletests/ui/spirv-attr/invalid-matrix-type.rs @@ -1,5 +1,7 @@ // Tests that matrix type inference fails correctly // build-fail +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use spirv_std::spirv; diff --git a/tests/compiletests/ui/spirv-attr/invalid-matrix-type.stderr b/tests/compiletests/ui/spirv-attr/invalid-matrix-type.stderr index a14a76b6d6..5bfbba3076 100644 --- a/tests/compiletests/ui/spirv-attr/invalid-matrix-type.stderr +++ b/tests/compiletests/ui/spirv-attr/invalid-matrix-type.stderr @@ -1,22 +1,22 @@ error: `#[spirv(matrix)]` must have 2, 3 or 4 members - --> $DIR/invalid-matrix-type.rs:7:1 - | -7 | pub struct _FewerFields { - | ^^^^^^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-matrix-type.rs: + | + | pub struct _FewerFields { + | ^^^^^^^^^^^^^^^^^^^^^^^ error: `#[spirv(matrix)]` type fields must all be vectors - --> $DIR/invalid-matrix-type.rs:12:1 - | -12 | pub struct _NotVectorField { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: field type is f32 + --> $DIR/invalid-matrix-type.rs: + | + | pub struct _NotVectorField { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: field type is f32 error: `#[spirv(matrix)]` member types must all be the same - --> $DIR/invalid-matrix-type.rs:19:1 - | -19 | pub struct _DifferentType { - | ^^^^^^^^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-matrix-type.rs: + | + | pub struct _DifferentType { + | ^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 3 previous errors diff --git a/tests/compiletests/ui/spirv-attr/invalid-storage-class.rs b/tests/compiletests/ui/spirv-attr/invalid-storage-class.rs index 9cb86bf6ae..fd2fc9e735 100644 --- a/tests/compiletests/ui/spirv-attr/invalid-storage-class.rs +++ b/tests/compiletests/ui/spirv-attr/invalid-storage-class.rs @@ -1,6 +1,8 @@ // Tests that certain storage class `#[spirv(...)]` attributes are disallowed. // build-fail +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use spirv_std::spirv; diff --git a/tests/compiletests/ui/spirv-attr/invalid-storage-class.stderr b/tests/compiletests/ui/spirv-attr/invalid-storage-class.stderr index e3d8a39cb0..6f4d2e20de 100644 --- a/tests/compiletests/ui/spirv-attr/invalid-storage-class.stderr +++ b/tests/compiletests/ui/spirv-attr/invalid-storage-class.stderr @@ -1,32 +1,32 @@ error: `Input` storage class is the default and should not be explicitly specified - --> $DIR/invalid-storage-class.rs:9:13 - | -9 | #[spirv(input)] _: (), - | ^^^^^ + --> $DIR/invalid-storage-class.rs: + | + | #[spirv(input)] _: (), + | ^^^^^ error: `Output` storage class is the default and should not be explicitly specified - --> $DIR/invalid-storage-class.rs:10:13 - | -10 | #[spirv(output)] _: (), - | ^^^^^^ + --> $DIR/invalid-storage-class.rs: + | + | #[spirv(output)] _: (), + | ^^^^^^ error: `Private` storage class can not be used as part of an entry's interface - --> $DIR/invalid-storage-class.rs:11:13 - | -11 | #[spirv(private)] _: (), - | ^^^^^^^ + --> $DIR/invalid-storage-class.rs: + | + | #[spirv(private)] _: (), + | ^^^^^^^ error: `Function` storage class can not be used as part of an entry's interface - --> $DIR/invalid-storage-class.rs:12:13 - | -12 | #[spirv(function)] _: (), - | ^^^^^^^^ + --> $DIR/invalid-storage-class.rs: + | + | #[spirv(function)] _: (), + | ^^^^^^^^ error: `Generic` storage class can not be used as part of an entry's interface - --> $DIR/invalid-storage-class.rs:13:13 - | -13 | #[spirv(generic)] _: (), - | ^^^^^^^ + --> $DIR/invalid-storage-class.rs: + | + | #[spirv(generic)] _: (), + | ^^^^^^^ error: aborting due to 5 previous errors diff --git a/tests/compiletests/ui/spirv-attr/invalid-target.rs b/tests/compiletests/ui/spirv-attr/invalid-target.rs index e2677b42dc..c05c318ca3 100644 --- a/tests/compiletests/ui/spirv-attr/invalid-target.rs +++ b/tests/compiletests/ui/spirv-attr/invalid-target.rs @@ -2,6 +2,8 @@ // (i.e. various kinds of definitions and other syntactic categories). // build-fail +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" #![feature( extern_types, diff --git a/tests/compiletests/ui/spirv-attr/invalid-target.stderr b/tests/compiletests/ui/spirv-attr/invalid-target.stderr index 78ae3de546..df65aaa335 100644 --- a/tests/compiletests/ui/spirv-attr/invalid-target.stderr +++ b/tests/compiletests/ui/spirv-attr/invalid-target.stderr @@ -1,2650 +1,2650 @@ error: attribute is only valid on a struct, not on a macro def - --> $DIR/invalid-target.rs:38:5 - | -38 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^ error: attribute is only valid on a struct, not on a macro def - --> $DIR/invalid-target.rs:38:14 - | -38 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^ error: attribute is only valid on a struct, not on a macro def - --> $DIR/invalid-target.rs:38:21 - | -38 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a macro def - --> $DIR/invalid-target.rs:38:36 - | -38 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a macro def - --> $DIR/invalid-target.rs:39:5 - | -39 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs: + | + | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a macro def - --> $DIR/invalid-target.rs:40:5 - | -40 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^ error: attribute is only valid on a function parameter, not on a macro def - --> $DIR/invalid-target.rs:40:14 - | -40 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a macro def - --> $DIR/invalid-target.rs:40:24 - | -40 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a macro def - --> $DIR/invalid-target.rs:40:44 - | -40 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a macro def - --> $DIR/invalid-target.rs:40:57 - | -40 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^ error: attribute is only valid on a function parameter, not on a macro def - --> $DIR/invalid-target.rs:40:63 - | -40 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^ error: attribute is only valid on a struct, not on a extern crate - --> $DIR/invalid-target.rs:47:5 - | -47 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^ error: attribute is only valid on a struct, not on a extern crate - --> $DIR/invalid-target.rs:47:14 - | -47 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^ error: attribute is only valid on a struct, not on a extern crate - --> $DIR/invalid-target.rs:47:21 - | -47 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a extern crate - --> $DIR/invalid-target.rs:47:36 - | -47 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a extern crate - --> $DIR/invalid-target.rs:48:5 - | -48 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs: + | + | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a extern crate - --> $DIR/invalid-target.rs:49:5 - | -49 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^ error: attribute is only valid on a function parameter, not on a extern crate - --> $DIR/invalid-target.rs:49:14 - | -49 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a extern crate - --> $DIR/invalid-target.rs:49:24 - | -49 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a extern crate - --> $DIR/invalid-target.rs:49:44 - | -49 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a extern crate - --> $DIR/invalid-target.rs:49:57 - | -49 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^ error: attribute is only valid on a function parameter, not on a extern crate - --> $DIR/invalid-target.rs:49:63 - | -49 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^ error: attribute is only valid on a struct, not on a use - --> $DIR/invalid-target.rs:54:5 - | -54 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^ error: attribute is only valid on a struct, not on a use - --> $DIR/invalid-target.rs:54:14 - | -54 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^ error: attribute is only valid on a struct, not on a use - --> $DIR/invalid-target.rs:54:21 - | -54 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a use - --> $DIR/invalid-target.rs:54:36 - | -54 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a use - --> $DIR/invalid-target.rs:55:5 - | -55 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs: + | + | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a use - --> $DIR/invalid-target.rs:56:5 - | -56 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^ error: attribute is only valid on a function parameter, not on a use - --> $DIR/invalid-target.rs:56:14 - | -56 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a use - --> $DIR/invalid-target.rs:56:24 - | -56 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a use - --> $DIR/invalid-target.rs:56:44 - | -56 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a use - --> $DIR/invalid-target.rs:56:57 - | -56 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^ error: attribute is only valid on a function parameter, not on a use - --> $DIR/invalid-target.rs:56:63 - | -56 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^ error: attribute is only valid on a struct, not on a module - --> $DIR/invalid-target.rs:61:5 - | -61 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^ error: attribute is only valid on a struct, not on a module - --> $DIR/invalid-target.rs:61:14 - | -61 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^ error: attribute is only valid on a struct, not on a module - --> $DIR/invalid-target.rs:61:21 - | -61 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a module - --> $DIR/invalid-target.rs:61:36 - | -61 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a module - --> $DIR/invalid-target.rs:62:5 - | -62 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs: + | + | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a module - --> $DIR/invalid-target.rs:63:5 - | -63 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^ error: attribute is only valid on a function parameter, not on a module - --> $DIR/invalid-target.rs:63:14 - | -63 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a module - --> $DIR/invalid-target.rs:63:24 - | -63 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a module - --> $DIR/invalid-target.rs:63:44 - | -63 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a module - --> $DIR/invalid-target.rs:63:57 - | -63 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^ error: attribute is only valid on a function parameter, not on a module - --> $DIR/invalid-target.rs:63:63 - | -63 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^ error: attribute is only valid on a struct, not on a foreign module - --> $DIR/invalid-target.rs:68:5 - | -68 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^ error: attribute is only valid on a struct, not on a foreign module - --> $DIR/invalid-target.rs:68:14 - | -68 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^ error: attribute is only valid on a struct, not on a foreign module - --> $DIR/invalid-target.rs:68:21 - | -68 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a foreign module - --> $DIR/invalid-target.rs:68:36 - | -68 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a foreign module - --> $DIR/invalid-target.rs:69:5 - | -69 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs: + | + | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a foreign module - --> $DIR/invalid-target.rs:70:5 - | -70 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^ error: attribute is only valid on a function parameter, not on a foreign module - --> $DIR/invalid-target.rs:70:14 - | -70 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a foreign module - --> $DIR/invalid-target.rs:70:24 - | -70 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a foreign module - --> $DIR/invalid-target.rs:70:44 - | -70 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a foreign module - --> $DIR/invalid-target.rs:70:57 - | -70 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^ error: attribute is only valid on a function parameter, not on a foreign module - --> $DIR/invalid-target.rs:70:63 - | -70 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^ error: attribute is only valid on a struct, not on a static item - --> $DIR/invalid-target.rs:96:5 - | -96 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^ error: attribute is only valid on a struct, not on a static item - --> $DIR/invalid-target.rs:96:14 - | -96 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^ error: attribute is only valid on a struct, not on a static item - --> $DIR/invalid-target.rs:96:21 - | -96 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a static item - --> $DIR/invalid-target.rs:96:36 - | -96 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a static item - --> $DIR/invalid-target.rs:97:5 - | -97 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs: + | + | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a static item - --> $DIR/invalid-target.rs:98:5 - | -98 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^ error: attribute is only valid on a function parameter, not on a static item - --> $DIR/invalid-target.rs:98:14 - | -98 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a static item - --> $DIR/invalid-target.rs:98:24 - | -98 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a static item - --> $DIR/invalid-target.rs:98:44 - | -98 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a static item - --> $DIR/invalid-target.rs:98:57 - | -98 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^ error: attribute is only valid on a function parameter, not on a static item - --> $DIR/invalid-target.rs:98:63 - | -98 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^ error: attribute is only valid on a struct, not on a constant item - --> $DIR/invalid-target.rs:103:5 + --> $DIR/invalid-target.rs: | -103 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a constant item - --> $DIR/invalid-target.rs:103:14 + --> $DIR/invalid-target.rs: | -103 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a constant item - --> $DIR/invalid-target.rs:103:21 + --> $DIR/invalid-target.rs: | -103 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a constant item - --> $DIR/invalid-target.rs:103:36 + --> $DIR/invalid-target.rs: | -103 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a constant item - --> $DIR/invalid-target.rs:104:5 + --> $DIR/invalid-target.rs: | -104 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a constant item - --> $DIR/invalid-target.rs:105:5 + --> $DIR/invalid-target.rs: | -105 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a constant item - --> $DIR/invalid-target.rs:105:14 + --> $DIR/invalid-target.rs: | -105 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a constant item - --> $DIR/invalid-target.rs:105:24 + --> $DIR/invalid-target.rs: | -105 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a constant item - --> $DIR/invalid-target.rs:105:44 + --> $DIR/invalid-target.rs: | -105 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a constant item - --> $DIR/invalid-target.rs:105:57 + --> $DIR/invalid-target.rs: | -105 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a constant item - --> $DIR/invalid-target.rs:105:63 + --> $DIR/invalid-target.rs: | -105 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a type alias - --> $DIR/invalid-target.rs:110:5 + --> $DIR/invalid-target.rs: | -110 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a type alias - --> $DIR/invalid-target.rs:110:14 + --> $DIR/invalid-target.rs: | -110 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a type alias - --> $DIR/invalid-target.rs:110:21 + --> $DIR/invalid-target.rs: | -110 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a type alias - --> $DIR/invalid-target.rs:110:36 + --> $DIR/invalid-target.rs: | -110 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a type alias - --> $DIR/invalid-target.rs:111:5 + --> $DIR/invalid-target.rs: | -111 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a type alias - --> $DIR/invalid-target.rs:112:5 + --> $DIR/invalid-target.rs: | -112 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a type alias - --> $DIR/invalid-target.rs:112:14 + --> $DIR/invalid-target.rs: | -112 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a type alias - --> $DIR/invalid-target.rs:112:24 + --> $DIR/invalid-target.rs: | -112 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a type alias - --> $DIR/invalid-target.rs:112:44 + --> $DIR/invalid-target.rs: | -112 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a type alias - --> $DIR/invalid-target.rs:112:57 + --> $DIR/invalid-target.rs: | -112 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a type alias - --> $DIR/invalid-target.rs:112:63 + --> $DIR/invalid-target.rs: | -112 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a type alias - --> $DIR/invalid-target.rs:117:5 + --> $DIR/invalid-target.rs: | -117 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a type alias - --> $DIR/invalid-target.rs:117:14 + --> $DIR/invalid-target.rs: | -117 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a type alias - --> $DIR/invalid-target.rs:117:21 + --> $DIR/invalid-target.rs: | -117 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a type alias - --> $DIR/invalid-target.rs:117:36 + --> $DIR/invalid-target.rs: | -117 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a type alias - --> $DIR/invalid-target.rs:118:5 + --> $DIR/invalid-target.rs: | -118 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a type alias - --> $DIR/invalid-target.rs:119:5 + --> $DIR/invalid-target.rs: | -119 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a type alias - --> $DIR/invalid-target.rs:119:14 + --> $DIR/invalid-target.rs: | -119 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a type alias - --> $DIR/invalid-target.rs:119:24 + --> $DIR/invalid-target.rs: | -119 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a type alias - --> $DIR/invalid-target.rs:119:44 + --> $DIR/invalid-target.rs: | -119 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a type alias - --> $DIR/invalid-target.rs:119:57 + --> $DIR/invalid-target.rs: | -119 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a type alias - --> $DIR/invalid-target.rs:119:63 + --> $DIR/invalid-target.rs: | -119 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a enum - --> $DIR/invalid-target.rs:128:5 + --> $DIR/invalid-target.rs: | -128 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a enum - --> $DIR/invalid-target.rs:128:14 + --> $DIR/invalid-target.rs: | -128 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a enum - --> $DIR/invalid-target.rs:128:21 + --> $DIR/invalid-target.rs: | -128 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a enum - --> $DIR/invalid-target.rs:128:36 + --> $DIR/invalid-target.rs: | -128 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a enum - --> $DIR/invalid-target.rs:129:5 + --> $DIR/invalid-target.rs: | -129 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a enum - --> $DIR/invalid-target.rs:130:5 + --> $DIR/invalid-target.rs: | -130 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a enum - --> $DIR/invalid-target.rs:130:14 + --> $DIR/invalid-target.rs: | -130 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a enum - --> $DIR/invalid-target.rs:130:24 + --> $DIR/invalid-target.rs: | -130 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a enum - --> $DIR/invalid-target.rs:130:44 + --> $DIR/invalid-target.rs: | -130 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a enum - --> $DIR/invalid-target.rs:130:57 + --> $DIR/invalid-target.rs: | -130 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a enum - --> $DIR/invalid-target.rs:130:63 + --> $DIR/invalid-target.rs: | -130 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a enum variant - --> $DIR/invalid-target.rs:134:9 + --> $DIR/invalid-target.rs: | -134 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a enum variant - --> $DIR/invalid-target.rs:134:18 + --> $DIR/invalid-target.rs: | -134 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a enum variant - --> $DIR/invalid-target.rs:134:25 + --> $DIR/invalid-target.rs: | -134 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a enum variant - --> $DIR/invalid-target.rs:134:40 + --> $DIR/invalid-target.rs: | -134 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a enum variant - --> $DIR/invalid-target.rs:135:9 + --> $DIR/invalid-target.rs: | -135 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a enum variant - --> $DIR/invalid-target.rs:136:9 + --> $DIR/invalid-target.rs: | -136 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a enum variant - --> $DIR/invalid-target.rs:136:18 + --> $DIR/invalid-target.rs: | -136 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a enum variant - --> $DIR/invalid-target.rs:136:28 + --> $DIR/invalid-target.rs: | -136 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a enum variant - --> $DIR/invalid-target.rs:136:48 + --> $DIR/invalid-target.rs: | -136 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a enum variant - --> $DIR/invalid-target.rs:136:61 + --> $DIR/invalid-target.rs: | -136 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a enum variant - --> $DIR/invalid-target.rs:136:67 + --> $DIR/invalid-target.rs: | -136 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a struct field - --> $DIR/invalid-target.rs:140:13 + --> $DIR/invalid-target.rs: | -140 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a struct field - --> $DIR/invalid-target.rs:140:22 + --> $DIR/invalid-target.rs: | -140 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a struct field - --> $DIR/invalid-target.rs:140:29 + --> $DIR/invalid-target.rs: | -140 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a struct field - --> $DIR/invalid-target.rs:140:44 + --> $DIR/invalid-target.rs: | -140 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a struct field - --> $DIR/invalid-target.rs:141:13 + --> $DIR/invalid-target.rs: | -141 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:142:13 + --> $DIR/invalid-target.rs: | -142 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:142:22 + --> $DIR/invalid-target.rs: | -142 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:142:32 + --> $DIR/invalid-target.rs: | -142 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:142:52 + --> $DIR/invalid-target.rs: | -142 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:142:65 + --> $DIR/invalid-target.rs: | -142 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:142:71 + --> $DIR/invalid-target.rs: | -142 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a union - --> $DIR/invalid-target.rs:149:5 + --> $DIR/invalid-target.rs: | -149 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a union - --> $DIR/invalid-target.rs:149:14 + --> $DIR/invalid-target.rs: | -149 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a union - --> $DIR/invalid-target.rs:149:21 + --> $DIR/invalid-target.rs: | -149 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a union - --> $DIR/invalid-target.rs:149:36 + --> $DIR/invalid-target.rs: | -149 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a union - --> $DIR/invalid-target.rs:150:5 + --> $DIR/invalid-target.rs: | -150 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a union - --> $DIR/invalid-target.rs:151:5 + --> $DIR/invalid-target.rs: | -151 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a union - --> $DIR/invalid-target.rs:151:14 + --> $DIR/invalid-target.rs: | -151 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a union - --> $DIR/invalid-target.rs:151:24 + --> $DIR/invalid-target.rs: | -151 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a union - --> $DIR/invalid-target.rs:151:44 + --> $DIR/invalid-target.rs: | -151 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a union - --> $DIR/invalid-target.rs:151:57 + --> $DIR/invalid-target.rs: | -151 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a union - --> $DIR/invalid-target.rs:151:63 + --> $DIR/invalid-target.rs: | -151 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a struct field - --> $DIR/invalid-target.rs:155:9 + --> $DIR/invalid-target.rs: | -155 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a struct field - --> $DIR/invalid-target.rs:155:18 + --> $DIR/invalid-target.rs: | -155 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a struct field - --> $DIR/invalid-target.rs:155:25 + --> $DIR/invalid-target.rs: | -155 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a struct field - --> $DIR/invalid-target.rs:155:40 + --> $DIR/invalid-target.rs: | -155 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a struct field - --> $DIR/invalid-target.rs:156:9 + --> $DIR/invalid-target.rs: | -156 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:157:9 + --> $DIR/invalid-target.rs: | -157 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:157:18 + --> $DIR/invalid-target.rs: | -157 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:157:28 + --> $DIR/invalid-target.rs: | -157 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:157:48 + --> $DIR/invalid-target.rs: | -157 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:157:61 + --> $DIR/invalid-target.rs: | -157 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:157:67 + --> $DIR/invalid-target.rs: | -157 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a function, not on a struct - --> $DIR/invalid-target.rs:163:5 + --> $DIR/invalid-target.rs: | -163 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a struct - --> $DIR/invalid-target.rs:164:5 + --> $DIR/invalid-target.rs: | -164 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a struct - --> $DIR/invalid-target.rs:164:14 + --> $DIR/invalid-target.rs: | -164 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a struct - --> $DIR/invalid-target.rs:164:24 + --> $DIR/invalid-target.rs: | -164 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a struct - --> $DIR/invalid-target.rs:164:44 + --> $DIR/invalid-target.rs: | -164 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a struct - --> $DIR/invalid-target.rs:164:57 + --> $DIR/invalid-target.rs: | -164 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a struct - --> $DIR/invalid-target.rs:164:63 + --> $DIR/invalid-target.rs: | -164 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a struct field - --> $DIR/invalid-target.rs:168:9 + --> $DIR/invalid-target.rs: | -168 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a struct field - --> $DIR/invalid-target.rs:168:18 + --> $DIR/invalid-target.rs: | -168 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a struct field - --> $DIR/invalid-target.rs:168:25 + --> $DIR/invalid-target.rs: | -168 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a struct field - --> $DIR/invalid-target.rs:168:40 + --> $DIR/invalid-target.rs: | -168 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a struct field - --> $DIR/invalid-target.rs:169:9 + --> $DIR/invalid-target.rs: | -169 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:170:9 + --> $DIR/invalid-target.rs: | -170 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:170:18 + --> $DIR/invalid-target.rs: | -170 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:170:28 + --> $DIR/invalid-target.rs: | -170 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:170:48 + --> $DIR/invalid-target.rs: | -170 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:170:61 + --> $DIR/invalid-target.rs: | -170 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:170:67 + --> $DIR/invalid-target.rs: | -170 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a implementation block - --> $DIR/invalid-target.rs:176:5 + --> $DIR/invalid-target.rs: | -176 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a implementation block - --> $DIR/invalid-target.rs:176:14 + --> $DIR/invalid-target.rs: | -176 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a implementation block - --> $DIR/invalid-target.rs:176:21 + --> $DIR/invalid-target.rs: | -176 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a implementation block - --> $DIR/invalid-target.rs:176:36 + --> $DIR/invalid-target.rs: | -176 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a implementation block - --> $DIR/invalid-target.rs:177:5 + --> $DIR/invalid-target.rs: | -177 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a implementation block - --> $DIR/invalid-target.rs:178:5 + --> $DIR/invalid-target.rs: | -178 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a implementation block - --> $DIR/invalid-target.rs:178:14 + --> $DIR/invalid-target.rs: | -178 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a implementation block - --> $DIR/invalid-target.rs:178:24 + --> $DIR/invalid-target.rs: | -178 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a implementation block - --> $DIR/invalid-target.rs:178:44 + --> $DIR/invalid-target.rs: | -178 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a implementation block - --> $DIR/invalid-target.rs:178:57 + --> $DIR/invalid-target.rs: | -178 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a implementation block - --> $DIR/invalid-target.rs:178:63 + --> $DIR/invalid-target.rs: | -178 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a trait alias - --> $DIR/invalid-target.rs:196:5 + --> $DIR/invalid-target.rs: | -196 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a trait alias - --> $DIR/invalid-target.rs:196:14 + --> $DIR/invalid-target.rs: | -196 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a trait alias - --> $DIR/invalid-target.rs:196:21 + --> $DIR/invalid-target.rs: | -196 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a trait alias - --> $DIR/invalid-target.rs:196:36 + --> $DIR/invalid-target.rs: | -196 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a trait alias - --> $DIR/invalid-target.rs:197:5 + --> $DIR/invalid-target.rs: | -197 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a trait alias - --> $DIR/invalid-target.rs:198:5 + --> $DIR/invalid-target.rs: | -198 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a trait alias - --> $DIR/invalid-target.rs:198:14 + --> $DIR/invalid-target.rs: | -198 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a trait alias - --> $DIR/invalid-target.rs:198:24 + --> $DIR/invalid-target.rs: | -198 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a trait alias - --> $DIR/invalid-target.rs:198:44 + --> $DIR/invalid-target.rs: | -198 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a trait alias - --> $DIR/invalid-target.rs:198:57 + --> $DIR/invalid-target.rs: | -198 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a trait alias - --> $DIR/invalid-target.rs:198:63 + --> $DIR/invalid-target.rs: | -198 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a trait - --> $DIR/invalid-target.rs:203:5 + --> $DIR/invalid-target.rs: | -203 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a trait - --> $DIR/invalid-target.rs:203:14 + --> $DIR/invalid-target.rs: | -203 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a trait - --> $DIR/invalid-target.rs:203:21 + --> $DIR/invalid-target.rs: | -203 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a trait - --> $DIR/invalid-target.rs:203:36 + --> $DIR/invalid-target.rs: | -203 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a trait - --> $DIR/invalid-target.rs:204:5 + --> $DIR/invalid-target.rs: | -204 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a trait - --> $DIR/invalid-target.rs:205:5 + --> $DIR/invalid-target.rs: | -205 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a trait - --> $DIR/invalid-target.rs:205:14 + --> $DIR/invalid-target.rs: | -205 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a trait - --> $DIR/invalid-target.rs:205:24 + --> $DIR/invalid-target.rs: | -205 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a trait - --> $DIR/invalid-target.rs:205:44 + --> $DIR/invalid-target.rs: | -205 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a trait - --> $DIR/invalid-target.rs:205:57 + --> $DIR/invalid-target.rs: | -205 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a trait - --> $DIR/invalid-target.rs:205:63 + --> $DIR/invalid-target.rs: | -205 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a implementation block - --> $DIR/invalid-target.rs:237:5 + --> $DIR/invalid-target.rs: | -237 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a implementation block - --> $DIR/invalid-target.rs:237:14 + --> $DIR/invalid-target.rs: | -237 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a implementation block - --> $DIR/invalid-target.rs:237:21 + --> $DIR/invalid-target.rs: | -237 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a implementation block - --> $DIR/invalid-target.rs:237:36 + --> $DIR/invalid-target.rs: | -237 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a implementation block - --> $DIR/invalid-target.rs:238:5 + --> $DIR/invalid-target.rs: | -238 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a implementation block - --> $DIR/invalid-target.rs:239:5 + --> $DIR/invalid-target.rs: | -239 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a implementation block - --> $DIR/invalid-target.rs:239:14 + --> $DIR/invalid-target.rs: | -239 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a implementation block - --> $DIR/invalid-target.rs:239:24 + --> $DIR/invalid-target.rs: | -239 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a implementation block - --> $DIR/invalid-target.rs:239:44 + --> $DIR/invalid-target.rs: | -239 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a implementation block - --> $DIR/invalid-target.rs:239:57 + --> $DIR/invalid-target.rs: | -239 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a implementation block - --> $DIR/invalid-target.rs:239:63 + --> $DIR/invalid-target.rs: | -239 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a function - --> $DIR/invalid-target.rs:264:5 + --> $DIR/invalid-target.rs: | -264 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a function - --> $DIR/invalid-target.rs:264:14 + --> $DIR/invalid-target.rs: | -264 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a function - --> $DIR/invalid-target.rs:264:21 + --> $DIR/invalid-target.rs: | -264 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a function - --> $DIR/invalid-target.rs:264:36 + --> $DIR/invalid-target.rs: | -264 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a function - --> $DIR/invalid-target.rs:265:5 + --> $DIR/invalid-target.rs: | -265 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a function - --> $DIR/invalid-target.rs:265:14 + --> $DIR/invalid-target.rs: | -265 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a function - --> $DIR/invalid-target.rs:265:24 + --> $DIR/invalid-target.rs: | -265 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a function - --> $DIR/invalid-target.rs:265:44 + --> $DIR/invalid-target.rs: | -265 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a function - --> $DIR/invalid-target.rs:265:57 + --> $DIR/invalid-target.rs: | -265 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a function - --> $DIR/invalid-target.rs:265:63 + --> $DIR/invalid-target.rs: | -265 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a function param - --> $DIR/invalid-target.rs:269:9 + --> $DIR/invalid-target.rs: | -269 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a function param - --> $DIR/invalid-target.rs:269:18 + --> $DIR/invalid-target.rs: | -269 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a function param - --> $DIR/invalid-target.rs:269:25 + --> $DIR/invalid-target.rs: | -269 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a function param - --> $DIR/invalid-target.rs:269:40 + --> $DIR/invalid-target.rs: | -269 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a function param - --> $DIR/invalid-target.rs:270:9 + --> $DIR/invalid-target.rs: | -270 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a struct, not on a statement - --> $DIR/invalid-target.rs:275:9 + --> $DIR/invalid-target.rs: | -275 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a statement - --> $DIR/invalid-target.rs:275:18 + --> $DIR/invalid-target.rs: | -275 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a statement - --> $DIR/invalid-target.rs:275:25 + --> $DIR/invalid-target.rs: | -275 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a statement - --> $DIR/invalid-target.rs:275:40 + --> $DIR/invalid-target.rs: | -275 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a statement - --> $DIR/invalid-target.rs:276:9 + --> $DIR/invalid-target.rs: | -276 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a statement - --> $DIR/invalid-target.rs:277:9 + --> $DIR/invalid-target.rs: | -277 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a statement - --> $DIR/invalid-target.rs:277:18 + --> $DIR/invalid-target.rs: | -277 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a statement - --> $DIR/invalid-target.rs:277:28 + --> $DIR/invalid-target.rs: | -277 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a statement - --> $DIR/invalid-target.rs:277:48 + --> $DIR/invalid-target.rs: | -277 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a statement - --> $DIR/invalid-target.rs:277:61 + --> $DIR/invalid-target.rs: | -277 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a statement - --> $DIR/invalid-target.rs:277:67 + --> $DIR/invalid-target.rs: | -277 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a closure - --> $DIR/invalid-target.rs:282:13 + --> $DIR/invalid-target.rs: | -282 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a closure - --> $DIR/invalid-target.rs:282:22 + --> $DIR/invalid-target.rs: | -282 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a closure - --> $DIR/invalid-target.rs:282:29 + --> $DIR/invalid-target.rs: | -282 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a closure - --> $DIR/invalid-target.rs:282:44 + --> $DIR/invalid-target.rs: | -282 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a closure - --> $DIR/invalid-target.rs:283:13 + --> $DIR/invalid-target.rs: | -283 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a closure - --> $DIR/invalid-target.rs:284:13 + --> $DIR/invalid-target.rs: | -284 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a closure - --> $DIR/invalid-target.rs:284:22 + --> $DIR/invalid-target.rs: | -284 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a closure - --> $DIR/invalid-target.rs:284:32 + --> $DIR/invalid-target.rs: | -284 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a closure - --> $DIR/invalid-target.rs:284:52 + --> $DIR/invalid-target.rs: | -284 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a closure - --> $DIR/invalid-target.rs:284:65 + --> $DIR/invalid-target.rs: | -284 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a closure - --> $DIR/invalid-target.rs:284:71 + --> $DIR/invalid-target.rs: | -284 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a expression - --> $DIR/invalid-target.rs:290:13 + --> $DIR/invalid-target.rs: | -290 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a expression - --> $DIR/invalid-target.rs:290:22 + --> $DIR/invalid-target.rs: | -290 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a expression - --> $DIR/invalid-target.rs:290:29 + --> $DIR/invalid-target.rs: | -290 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a expression - --> $DIR/invalid-target.rs:290:44 + --> $DIR/invalid-target.rs: | -290 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a expression - --> $DIR/invalid-target.rs:291:13 + --> $DIR/invalid-target.rs: | -291 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a expression - --> $DIR/invalid-target.rs:292:13 + --> $DIR/invalid-target.rs: | -292 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a expression - --> $DIR/invalid-target.rs:292:22 + --> $DIR/invalid-target.rs: | -292 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a expression - --> $DIR/invalid-target.rs:292:32 + --> $DIR/invalid-target.rs: | -292 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a expression - --> $DIR/invalid-target.rs:292:52 + --> $DIR/invalid-target.rs: | -292 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a expression - --> $DIR/invalid-target.rs:292:65 + --> $DIR/invalid-target.rs: | -292 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a expression - --> $DIR/invalid-target.rs:292:71 + --> $DIR/invalid-target.rs: | -292 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a match arm - --> $DIR/invalid-target.rs:300:13 + --> $DIR/invalid-target.rs: | -300 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a match arm - --> $DIR/invalid-target.rs:300:22 + --> $DIR/invalid-target.rs: | -300 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a match arm - --> $DIR/invalid-target.rs:300:29 + --> $DIR/invalid-target.rs: | -300 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a match arm - --> $DIR/invalid-target.rs:300:44 + --> $DIR/invalid-target.rs: | -300 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a match arm - --> $DIR/invalid-target.rs:301:13 + --> $DIR/invalid-target.rs: | -301 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a match arm - --> $DIR/invalid-target.rs:302:13 + --> $DIR/invalid-target.rs: | -302 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a match arm - --> $DIR/invalid-target.rs:302:22 + --> $DIR/invalid-target.rs: | -302 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a match arm - --> $DIR/invalid-target.rs:302:32 + --> $DIR/invalid-target.rs: | -302 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a match arm - --> $DIR/invalid-target.rs:302:52 + --> $DIR/invalid-target.rs: | -302 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a match arm - --> $DIR/invalid-target.rs:302:65 + --> $DIR/invalid-target.rs: | -302 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a match arm - --> $DIR/invalid-target.rs:302:71 + --> $DIR/invalid-target.rs: | -302 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a lifetime parameter - --> $DIR/invalid-target.rs:311:9 + --> $DIR/invalid-target.rs: | -311 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a lifetime parameter - --> $DIR/invalid-target.rs:311:18 + --> $DIR/invalid-target.rs: | -311 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a lifetime parameter - --> $DIR/invalid-target.rs:311:25 + --> $DIR/invalid-target.rs: | -311 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a lifetime parameter - --> $DIR/invalid-target.rs:311:40 + --> $DIR/invalid-target.rs: | -311 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a lifetime parameter - --> $DIR/invalid-target.rs:312:9 + --> $DIR/invalid-target.rs: | -312 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a lifetime parameter - --> $DIR/invalid-target.rs:313:9 + --> $DIR/invalid-target.rs: | -313 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | 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:313:18 + --> $DIR/invalid-target.rs: | -313 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | 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:313:28 + --> $DIR/invalid-target.rs: | -313 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | 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:313:48 + --> $DIR/invalid-target.rs: | -313 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | 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:313:61 + --> $DIR/invalid-target.rs: | -313 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | 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:313:67 + --> $DIR/invalid-target.rs: | -313 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a type parameter - --> $DIR/invalid-target.rs:316:9 + --> $DIR/invalid-target.rs: | -316 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a type parameter - --> $DIR/invalid-target.rs:316:18 + --> $DIR/invalid-target.rs: | -316 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a type parameter - --> $DIR/invalid-target.rs:316:25 + --> $DIR/invalid-target.rs: | -316 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a type parameter - --> $DIR/invalid-target.rs:316:40 + --> $DIR/invalid-target.rs: | -316 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a type parameter - --> $DIR/invalid-target.rs:317:9 + --> $DIR/invalid-target.rs: | -317 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a type parameter - --> $DIR/invalid-target.rs:318:9 + --> $DIR/invalid-target.rs: | -318 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a type parameter - --> $DIR/invalid-target.rs:318:18 + --> $DIR/invalid-target.rs: | -318 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a type parameter - --> $DIR/invalid-target.rs:318:28 + --> $DIR/invalid-target.rs: | -318 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a type parameter - --> $DIR/invalid-target.rs:318:48 + --> $DIR/invalid-target.rs: | -318 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a type parameter - --> $DIR/invalid-target.rs:318:61 + --> $DIR/invalid-target.rs: | -318 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a type parameter - --> $DIR/invalid-target.rs:318:67 + --> $DIR/invalid-target.rs: | -318 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a const parameter - --> $DIR/invalid-target.rs:321:9 + --> $DIR/invalid-target.rs: | -321 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a const parameter - --> $DIR/invalid-target.rs:321:18 + --> $DIR/invalid-target.rs: | -321 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a const parameter - --> $DIR/invalid-target.rs:321:25 + --> $DIR/invalid-target.rs: | -321 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a const parameter - --> $DIR/invalid-target.rs:321:40 + --> $DIR/invalid-target.rs: | -321 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a const parameter - --> $DIR/invalid-target.rs:322:9 + --> $DIR/invalid-target.rs: | -322 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a const parameter - --> $DIR/invalid-target.rs:323:9 + --> $DIR/invalid-target.rs: | -323 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a const parameter - --> $DIR/invalid-target.rs:323:18 + --> $DIR/invalid-target.rs: | -323 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a const parameter - --> $DIR/invalid-target.rs:323:28 + --> $DIR/invalid-target.rs: | -323 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a const parameter - --> $DIR/invalid-target.rs:323:48 + --> $DIR/invalid-target.rs: | -323 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a const parameter - --> $DIR/invalid-target.rs:323:61 + --> $DIR/invalid-target.rs: | -323 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a const parameter - --> $DIR/invalid-target.rs:323:67 + --> $DIR/invalid-target.rs: | -323 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a associated type - --> $DIR/invalid-target.rs:209:9 + --> $DIR/invalid-target.rs: | -209 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a associated type - --> $DIR/invalid-target.rs:209:18 + --> $DIR/invalid-target.rs: | -209 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a associated type - --> $DIR/invalid-target.rs:209:25 + --> $DIR/invalid-target.rs: | -209 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a associated type - --> $DIR/invalid-target.rs:209:40 + --> $DIR/invalid-target.rs: | -209 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a associated type - --> $DIR/invalid-target.rs:210:9 + --> $DIR/invalid-target.rs: | -210 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a associated type - --> $DIR/invalid-target.rs:211:9 + --> $DIR/invalid-target.rs: | -211 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a associated type - --> $DIR/invalid-target.rs:211:18 + --> $DIR/invalid-target.rs: | -211 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a associated type - --> $DIR/invalid-target.rs:211:28 + --> $DIR/invalid-target.rs: | -211 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a associated type - --> $DIR/invalid-target.rs:211:48 + --> $DIR/invalid-target.rs: | -211 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a associated type - --> $DIR/invalid-target.rs:211:61 + --> $DIR/invalid-target.rs: | -211 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a associated type - --> $DIR/invalid-target.rs:211:67 + --> $DIR/invalid-target.rs: | -211 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a associated const - --> $DIR/invalid-target.rs:216:9 + --> $DIR/invalid-target.rs: | -216 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a associated const - --> $DIR/invalid-target.rs:216:18 + --> $DIR/invalid-target.rs: | -216 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a associated const - --> $DIR/invalid-target.rs:216:25 + --> $DIR/invalid-target.rs: | -216 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a associated const - --> $DIR/invalid-target.rs:216:40 + --> $DIR/invalid-target.rs: | -216 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a associated const - --> $DIR/invalid-target.rs:217:9 + --> $DIR/invalid-target.rs: | -217 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:218:9 + --> $DIR/invalid-target.rs: | -218 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:218:18 + --> $DIR/invalid-target.rs: | -218 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:218:28 + --> $DIR/invalid-target.rs: | -218 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:218:48 + --> $DIR/invalid-target.rs: | -218 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:218:61 + --> $DIR/invalid-target.rs: | -218 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:218:67 + --> $DIR/invalid-target.rs: | -218 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a required trait method - --> $DIR/invalid-target.rs:223:9 + --> $DIR/invalid-target.rs: | -223 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a required trait method - --> $DIR/invalid-target.rs:223:18 + --> $DIR/invalid-target.rs: | -223 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a required trait method - --> $DIR/invalid-target.rs:223:25 + --> $DIR/invalid-target.rs: | -223 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a required trait method - --> $DIR/invalid-target.rs:223:40 + --> $DIR/invalid-target.rs: | -223 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a required trait method - --> $DIR/invalid-target.rs:224:9 + --> $DIR/invalid-target.rs: | -224 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a required trait method - --> $DIR/invalid-target.rs:225:9 + --> $DIR/invalid-target.rs: | -225 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a required trait method - --> $DIR/invalid-target.rs:225:18 + --> $DIR/invalid-target.rs: | -225 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a required trait method - --> $DIR/invalid-target.rs:225:28 + --> $DIR/invalid-target.rs: | -225 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a required trait method - --> $DIR/invalid-target.rs:225:48 + --> $DIR/invalid-target.rs: | -225 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a required trait method - --> $DIR/invalid-target.rs:225:61 + --> $DIR/invalid-target.rs: | -225 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a required trait method - --> $DIR/invalid-target.rs:225:67 + --> $DIR/invalid-target.rs: | -225 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a provided trait method - --> $DIR/invalid-target.rs:230:9 + --> $DIR/invalid-target.rs: | -230 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a provided trait method - --> $DIR/invalid-target.rs:230:18 + --> $DIR/invalid-target.rs: | -230 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a provided trait method - --> $DIR/invalid-target.rs:230:25 + --> $DIR/invalid-target.rs: | -230 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a provided trait method - --> $DIR/invalid-target.rs:230:40 + --> $DIR/invalid-target.rs: | -230 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a provided trait method - --> $DIR/invalid-target.rs:231:9 + --> $DIR/invalid-target.rs: | -231 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a provided trait method - --> $DIR/invalid-target.rs:231:18 + --> $DIR/invalid-target.rs: | -231 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a provided trait method - --> $DIR/invalid-target.rs:231:28 + --> $DIR/invalid-target.rs: | -231 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a provided trait method - --> $DIR/invalid-target.rs:231:48 + --> $DIR/invalid-target.rs: | -231 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a provided trait method - --> $DIR/invalid-target.rs:231:61 + --> $DIR/invalid-target.rs: | -231 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a provided trait method - --> $DIR/invalid-target.rs:231:67 + --> $DIR/invalid-target.rs: | -231 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a associated const - --> $DIR/invalid-target.rs:182:9 + --> $DIR/invalid-target.rs: | -182 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a associated const - --> $DIR/invalid-target.rs:182:18 + --> $DIR/invalid-target.rs: | -182 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a associated const - --> $DIR/invalid-target.rs:182:25 + --> $DIR/invalid-target.rs: | -182 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a associated const - --> $DIR/invalid-target.rs:182:40 + --> $DIR/invalid-target.rs: | -182 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a associated const - --> $DIR/invalid-target.rs:183:9 + --> $DIR/invalid-target.rs: | -183 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:184:9 + --> $DIR/invalid-target.rs: | -184 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:184:18 + --> $DIR/invalid-target.rs: | -184 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:184:28 + --> $DIR/invalid-target.rs: | -184 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:184:48 + --> $DIR/invalid-target.rs: | -184 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:184:61 + --> $DIR/invalid-target.rs: | -184 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:184:67 + --> $DIR/invalid-target.rs: | -184 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a inherent method - --> $DIR/invalid-target.rs:189:9 + --> $DIR/invalid-target.rs: | -189 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a inherent method - --> $DIR/invalid-target.rs:189:18 + --> $DIR/invalid-target.rs: | -189 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a inherent method - --> $DIR/invalid-target.rs:189:25 + --> $DIR/invalid-target.rs: | -189 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a inherent method - --> $DIR/invalid-target.rs:189:40 + --> $DIR/invalid-target.rs: | -189 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a inherent method - --> $DIR/invalid-target.rs:190:9 + --> $DIR/invalid-target.rs: | -190 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a inherent method - --> $DIR/invalid-target.rs:190:18 + --> $DIR/invalid-target.rs: | -190 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a inherent method - --> $DIR/invalid-target.rs:190:28 + --> $DIR/invalid-target.rs: | -190 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a inherent method - --> $DIR/invalid-target.rs:190:48 + --> $DIR/invalid-target.rs: | -190 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a inherent method - --> $DIR/invalid-target.rs:190:61 + --> $DIR/invalid-target.rs: | -190 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a inherent method - --> $DIR/invalid-target.rs:190:67 + --> $DIR/invalid-target.rs: | -190 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a associated type - --> $DIR/invalid-target.rs:243:9 + --> $DIR/invalid-target.rs: | -243 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a associated type - --> $DIR/invalid-target.rs:243:18 + --> $DIR/invalid-target.rs: | -243 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a associated type - --> $DIR/invalid-target.rs:243:25 + --> $DIR/invalid-target.rs: | -243 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a associated type - --> $DIR/invalid-target.rs:243:40 + --> $DIR/invalid-target.rs: | -243 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a associated type - --> $DIR/invalid-target.rs:244:9 + --> $DIR/invalid-target.rs: | -244 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a associated type - --> $DIR/invalid-target.rs:245:9 + --> $DIR/invalid-target.rs: | -245 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a associated type - --> $DIR/invalid-target.rs:245:18 + --> $DIR/invalid-target.rs: | -245 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a associated type - --> $DIR/invalid-target.rs:245:28 + --> $DIR/invalid-target.rs: | -245 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a associated type - --> $DIR/invalid-target.rs:245:48 + --> $DIR/invalid-target.rs: | -245 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a associated type - --> $DIR/invalid-target.rs:245:61 + --> $DIR/invalid-target.rs: | -245 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a associated type - --> $DIR/invalid-target.rs:245:67 + --> $DIR/invalid-target.rs: | -245 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a associated const - --> $DIR/invalid-target.rs:250:9 + --> $DIR/invalid-target.rs: | -250 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a associated const - --> $DIR/invalid-target.rs:250:18 + --> $DIR/invalid-target.rs: | -250 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a associated const - --> $DIR/invalid-target.rs:250:25 + --> $DIR/invalid-target.rs: | -250 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a associated const - --> $DIR/invalid-target.rs:250:40 + --> $DIR/invalid-target.rs: | -250 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a associated const - --> $DIR/invalid-target.rs:251:9 + --> $DIR/invalid-target.rs: | -251 | vertex, // fn-only + | vertex, // fn-only | ^^^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:252:9 + --> $DIR/invalid-target.rs: | -252 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:252:18 + --> $DIR/invalid-target.rs: | -252 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:252:28 + --> $DIR/invalid-target.rs: | -252 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:252:48 + --> $DIR/invalid-target.rs: | -252 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:252:61 + --> $DIR/invalid-target.rs: | -252 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:252:67 + --> $DIR/invalid-target.rs: | -252 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a provided trait method - --> $DIR/invalid-target.rs:257:9 + --> $DIR/invalid-target.rs: | -257 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^ error: attribute is only valid on a struct, not on a provided trait method - --> $DIR/invalid-target.rs:257:18 + --> $DIR/invalid-target.rs: | -257 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^ error: attribute is only valid on a struct, not on a provided trait method - --> $DIR/invalid-target.rs:257:25 + --> $DIR/invalid-target.rs: | -257 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a provided trait method - --> $DIR/invalid-target.rs:257:40 + --> $DIR/invalid-target.rs: | -257 | sampler, block, sampled_image, generic_image_type, // struct-only + | sampler, block, sampled_image, generic_image_type, // struct-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a provided trait method - --> $DIR/invalid-target.rs:258:9 + --> $DIR/invalid-target.rs: | -258 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^ error: attribute is only valid on a function parameter, not on a provided trait method - --> $DIR/invalid-target.rs:258:18 + --> $DIR/invalid-target.rs: | -258 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a provided trait method - --> $DIR/invalid-target.rs:258:28 + --> $DIR/invalid-target.rs: | -258 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a provided trait method - --> $DIR/invalid-target.rs:258:48 + --> $DIR/invalid-target.rs: | -258 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a provided trait method - --> $DIR/invalid-target.rs:258:61 + --> $DIR/invalid-target.rs: | -258 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^ error: attribute is only valid on a function parameter, not on a provided trait method - --> $DIR/invalid-target.rs:258:67 + --> $DIR/invalid-target.rs: | -258 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: attribute is only valid on a struct, not on a foreign type - --> $DIR/invalid-target.rs:74:9 - | -74 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^ error: attribute is only valid on a struct, not on a foreign type - --> $DIR/invalid-target.rs:74:18 - | -74 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^ error: attribute is only valid on a struct, not on a foreign type - --> $DIR/invalid-target.rs:74:25 - | -74 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a foreign type - --> $DIR/invalid-target.rs:74:40 - | -74 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a foreign type - --> $DIR/invalid-target.rs:75:9 - | -75 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs: + | + | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a foreign type - --> $DIR/invalid-target.rs:76:9 - | -76 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^ error: attribute is only valid on a function parameter, not on a foreign type - --> $DIR/invalid-target.rs:76:18 - | -76 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a foreign type - --> $DIR/invalid-target.rs:76:28 - | -76 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a foreign type - --> $DIR/invalid-target.rs:76:48 - | -76 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a foreign type - --> $DIR/invalid-target.rs:76:61 - | -76 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^ error: attribute is only valid on a function parameter, not on a foreign type - --> $DIR/invalid-target.rs:76:67 - | -76 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^ error: attribute is only valid on a struct, not on a foreign static item - --> $DIR/invalid-target.rs:81:9 - | -81 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^ error: attribute is only valid on a struct, not on a foreign static item - --> $DIR/invalid-target.rs:81:18 - | -81 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^ error: attribute is only valid on a struct, not on a foreign static item - --> $DIR/invalid-target.rs:81:25 - | -81 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a foreign static item - --> $DIR/invalid-target.rs:81:40 - | -81 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a foreign static item - --> $DIR/invalid-target.rs:82:9 - | -82 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs: + | + | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a foreign static item - --> $DIR/invalid-target.rs:83:9 - | -83 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^ error: attribute is only valid on a function parameter, not on a foreign static item - --> $DIR/invalid-target.rs:83:18 - | -83 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a foreign static item - --> $DIR/invalid-target.rs:83:28 - | -83 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a foreign static item - --> $DIR/invalid-target.rs:83:48 - | -83 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a foreign static item - --> $DIR/invalid-target.rs:83:61 - | -83 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^ error: attribute is only valid on a function parameter, not on a foreign static item - --> $DIR/invalid-target.rs:83:67 - | -83 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^ error: attribute is only valid on a struct, not on a foreign function - --> $DIR/invalid-target.rs:88:9 - | -88 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^ error: attribute is only valid on a struct, not on a foreign function - --> $DIR/invalid-target.rs:88:18 - | -88 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^ error: attribute is only valid on a struct, not on a foreign function - --> $DIR/invalid-target.rs:88:25 - | -88 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^^^^^^^ error: attribute is only valid on a struct, not on a foreign function - --> $DIR/invalid-target.rs:88:40 - | -88 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | sampler, block, sampled_image, generic_image_type, // struct-only + | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function, not on a foreign function - --> $DIR/invalid-target.rs:89:9 - | -89 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs: + | + | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a foreign function - --> $DIR/invalid-target.rs:90:9 - | -90 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^ error: attribute is only valid on a function parameter, not on a foreign function - --> $DIR/invalid-target.rs:90:18 - | -90 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^ error: attribute is only valid on a function parameter, not on a foreign function - --> $DIR/invalid-target.rs:90:28 - | -90 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a foreign function - --> $DIR/invalid-target.rs:90:48 - | -90 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^^^ error: attribute is only valid on a function parameter, not on a foreign function - --> $DIR/invalid-target.rs:90:61 - | -90 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^ error: attribute is only valid on a function parameter, not on a foreign function - --> $DIR/invalid-target.rs:90:67 - | -90 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs: + | + | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only + | ^^^^^^^^^ error: unconstrained opaque type - --> $DIR/invalid-target.rs:121:18 + --> $DIR/invalid-target.rs: | -121 | type _OpaqueTy = impl Copy; + | type _OpaqueTy = impl Copy; | ^^^^^^^^^ | = note: `_OpaqueTy` must be used in combination with a concrete type within the same crate error[E0308]: mismatched types - --> $DIR/invalid-target.rs:124:5 + --> $DIR/invalid-target.rs: | -121 | type _OpaqueTy = impl Copy; + | type _OpaqueTy = impl Copy; | --------- the expected opaque type -122 | -123 | fn _opaque_ty_definer() -> _OpaqueTy { + | + | fn _opaque_ty_definer() -> _OpaqueTy { | --------- expected `_OpaqueTy` because of return type -124 | () + | () | ^^ expected opaque type, found `()` | = note: expected opaque type `_OpaqueTy` found unit type `()` note: this item must have a `#[define_opaque(_OpaqueTy)]` attribute to be able to define hidden types - --> $DIR/invalid-target.rs:123:4 + --> $DIR/invalid-target.rs: | -123 | fn _opaque_ty_definer() -> _OpaqueTy { + | fn _opaque_ty_definer() -> _OpaqueTy { | ^^^^^^^^^^^^^^^^^^ error: aborting due to 439 previous errors diff --git a/tests/compiletests/ui/spirv-attr/invariant-invalid.rs b/tests/compiletests/ui/spirv-attr/invariant-invalid.rs index 73634a2aa2..b48a3f6e1a 100644 --- a/tests/compiletests/ui/spirv-attr/invariant-invalid.rs +++ b/tests/compiletests/ui/spirv-attr/invariant-invalid.rs @@ -1,5 +1,7 @@ // Tests that the invariant attribute can't be applied on inputs // build-fail +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use spirv_std::spirv; diff --git a/tests/compiletests/ui/spirv-attr/invariant-invalid.stderr b/tests/compiletests/ui/spirv-attr/invariant-invalid.stderr index 8db5f32424..93425f1f7e 100644 --- a/tests/compiletests/ui/spirv-attr/invariant-invalid.stderr +++ b/tests/compiletests/ui/spirv-attr/invariant-invalid.stderr @@ -1,8 +1,8 @@ error: `#[spirv(invariant)]` is only valid on Output variables - --> $DIR/invariant-invalid.rs:7:21 - | -7 | pub fn main(#[spirv(invariant)] input: f32) {} - | ^^^^^^^^^ + --> $DIR/invariant-invalid.rs: + | + | pub fn main(#[spirv(invariant)] input: f32) {} + | ^^^^^^^^^ error: aborting due to 1 previous error diff --git a/tests/compiletests/ui/spirv-attr/multiple.rs b/tests/compiletests/ui/spirv-attr/multiple.rs index 328d017648..d03fbaf274 100644 --- a/tests/compiletests/ui/spirv-attr/multiple.rs +++ b/tests/compiletests/ui/spirv-attr/multiple.rs @@ -2,6 +2,8 @@ // part of the same mutually exclusive category, are properly disallowed. // build-fail +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use spirv_std::spirv; diff --git a/tests/compiletests/ui/spirv-attr/multiple.stderr b/tests/compiletests/ui/spirv-attr/multiple.stderr index 35811e8b7d..41723258a5 100644 --- a/tests/compiletests/ui/spirv-attr/multiple.stderr +++ b/tests/compiletests/ui/spirv-attr/multiple.stderr @@ -1,212 +1,212 @@ error: only one intrinsic type attribute is allowed on a struct - --> $DIR/multiple.rs:8:18 - | -8 | #[spirv(sampler, sampler)] - | ^^^^^^^ - | + --> $DIR/multiple.rs: + | + | #[spirv(sampler, sampler)] + | ^^^^^^^ + | note: previous intrinsic type attribute - --> $DIR/multiple.rs:8:9 - | -8 | #[spirv(sampler, sampler)] - | ^^^^^^^ + --> $DIR/multiple.rs: + | + | #[spirv(sampler, sampler)] + | ^^^^^^^ error: only one intrinsic type attribute is allowed on a struct - --> $DIR/multiple.rs:11:17 - | -11 | #[spirv(matrix, matrix)] - | ^^^^^^ - | + --> $DIR/multiple.rs: + | + | #[spirv(matrix, matrix)] + | ^^^^^^ + | note: previous intrinsic type attribute - --> $DIR/multiple.rs:11:9 - | -11 | #[spirv(matrix, matrix)] - | ^^^^^^ + --> $DIR/multiple.rs: + | + | #[spirv(matrix, matrix)] + | ^^^^^^ error: only one intrinsic type attribute is allowed on a struct - --> $DIR/multiple.rs:17:18 - | -17 | #[spirv(sampler, generic_image_type)] - | ^^^^^^^^^^^^^^^^^^ - | + --> $DIR/multiple.rs: + | + | #[spirv(sampler, generic_image_type)] + | ^^^^^^^^^^^^^^^^^^ + | note: previous intrinsic type attribute - --> $DIR/multiple.rs:17:9 - | -17 | #[spirv(sampler, generic_image_type)] - | ^^^^^^^ + --> $DIR/multiple.rs: + | + | #[spirv(sampler, generic_image_type)] + | ^^^^^^^ error: only one intrinsic type attribute is allowed on a struct - --> $DIR/multiple.rs:20:18 - | -20 | #[spirv(sampler, matrix)] - | ^^^^^^ - | + --> $DIR/multiple.rs: + | + | #[spirv(sampler, matrix)] + | ^^^^^^ + | note: previous intrinsic type attribute - --> $DIR/multiple.rs:20:9 - | -20 | #[spirv(sampler, matrix)] - | ^^^^^^^ + --> $DIR/multiple.rs: + | + | #[spirv(sampler, matrix)] + | ^^^^^^^ error: only one #[spirv(block)] attribute is allowed on a struct - --> $DIR/multiple.rs:26:16 - | -26 | #[spirv(block, block)] - | ^^^^^ - | + --> $DIR/multiple.rs: + | + | #[spirv(block, block)] + | ^^^^^ + | note: previous #[spirv(block)] attribute - --> $DIR/multiple.rs:26:9 - | -26 | #[spirv(block, block)] - | ^^^^^ + --> $DIR/multiple.rs: + | + | #[spirv(block, block)] + | ^^^^^ warning: #[spirv(block)] is no longer needed and should be removed - --> $DIR/multiple.rs:26:9 - | -26 | #[spirv(block, block)] - | ^^^^^ + --> $DIR/multiple.rs: + | + | #[spirv(block, block)] + | ^^^^^ error: only one entry-point attribute is allowed on a function - --> $DIR/multiple.rs:29:17 - | -29 | #[spirv(vertex, vertex)] - | ^^^^^^ - | + --> $DIR/multiple.rs: + | + | #[spirv(vertex, vertex)] + | ^^^^^^ + | note: previous entry-point attribute - --> $DIR/multiple.rs:29:9 - | -29 | #[spirv(vertex, vertex)] - | ^^^^^^ + --> $DIR/multiple.rs: + | + | #[spirv(vertex, vertex)] + | ^^^^^^ error: only one entry-point attribute is allowed on a function - --> $DIR/multiple.rs:32:17 - | -32 | #[spirv(vertex, fragment)] - | ^^^^^^^^ - | + --> $DIR/multiple.rs: + | + | #[spirv(vertex, fragment)] + | ^^^^^^^^ + | note: previous entry-point attribute - --> $DIR/multiple.rs:32:9 - | -32 | #[spirv(vertex, fragment)] - | ^^^^^^ + --> $DIR/multiple.rs: + | + | #[spirv(vertex, fragment)] + | ^^^^^^ error: only one storage class attribute is allowed on a function param - --> $DIR/multiple.rs:37:22 - | -37 | #[spirv(uniform, uniform)] _same_storage_class: (), - | ^^^^^^^ - | + --> $DIR/multiple.rs: + | + | #[spirv(uniform, uniform)] _same_storage_class: (), + | ^^^^^^^ + | note: previous storage class attribute - --> $DIR/multiple.rs:37:13 - | -37 | #[spirv(uniform, uniform)] _same_storage_class: (), - | ^^^^^^^ + --> $DIR/multiple.rs: + | + | #[spirv(uniform, uniform)] _same_storage_class: (), + | ^^^^^^^ error: only one storage class attribute is allowed on a function param - --> $DIR/multiple.rs:38:22 - | -38 | #[spirv(uniform, push_constant)] _diff_storage_class: (), - | ^^^^^^^^^^^^^ - | + --> $DIR/multiple.rs: + | + | #[spirv(uniform, push_constant)] _diff_storage_class: (), + | ^^^^^^^^^^^^^ + | note: previous storage class attribute - --> $DIR/multiple.rs:38:13 - | -38 | #[spirv(uniform, push_constant)] _diff_storage_class: (), - | ^^^^^^^ + --> $DIR/multiple.rs: + | + | #[spirv(uniform, push_constant)] _diff_storage_class: (), + | ^^^^^^^ error: only one builtin attribute is allowed on a function param - --> $DIR/multiple.rs:40:23 - | -40 | #[spirv(position, position)] _same_builtin: (), - | ^^^^^^^^ - | + --> $DIR/multiple.rs: + | + | #[spirv(position, position)] _same_builtin: (), + | ^^^^^^^^ + | note: previous builtin attribute - --> $DIR/multiple.rs:40:13 - | -40 | #[spirv(position, position)] _same_builtin: (), - | ^^^^^^^^ + --> $DIR/multiple.rs: + | + | #[spirv(position, position)] _same_builtin: (), + | ^^^^^^^^ error: only one builtin attribute is allowed on a function param - --> $DIR/multiple.rs:41:23 - | -41 | #[spirv(position, vertex_index)] _diff_builtin: (), - | ^^^^^^^^^^^^ - | + --> $DIR/multiple.rs: + | + | #[spirv(position, vertex_index)] _diff_builtin: (), + | ^^^^^^^^^^^^ + | note: previous builtin attribute - --> $DIR/multiple.rs:41:13 - | -41 | #[spirv(position, vertex_index)] _diff_builtin: (), - | ^^^^^^^^ + --> $DIR/multiple.rs: + | + | #[spirv(position, vertex_index)] _diff_builtin: (), + | ^^^^^^^^ error: only one #[spirv(descriptor_set)] attribute is allowed on a function param - --> $DIR/multiple.rs:43:33 - | -43 | #[spirv(descriptor_set = 0, descriptor_set = 0)] _same_descriptor_set: (), - | ^^^^^^^^^^^^^^^^^^ - | + --> $DIR/multiple.rs: + | + | #[spirv(descriptor_set = 0, descriptor_set = 0)] _same_descriptor_set: (), + | ^^^^^^^^^^^^^^^^^^ + | note: previous #[spirv(descriptor_set)] attribute - --> $DIR/multiple.rs:43:13 - | -43 | #[spirv(descriptor_set = 0, descriptor_set = 0)] _same_descriptor_set: (), - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/multiple.rs: + | + | #[spirv(descriptor_set = 0, descriptor_set = 0)] _same_descriptor_set: (), + | ^^^^^^^^^^^^^^^^^^ error: only one #[spirv(descriptor_set)] attribute is allowed on a function param - --> $DIR/multiple.rs:44:33 - | -44 | #[spirv(descriptor_set = 0, descriptor_set = 1)] _diff_descriptor_set: (), - | ^^^^^^^^^^^^^^^^^^ - | + --> $DIR/multiple.rs: + | + | #[spirv(descriptor_set = 0, descriptor_set = 1)] _diff_descriptor_set: (), + | ^^^^^^^^^^^^^^^^^^ + | note: previous #[spirv(descriptor_set)] attribute - --> $DIR/multiple.rs:44:13 - | -44 | #[spirv(descriptor_set = 0, descriptor_set = 1)] _diff_descriptor_set: (), - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/multiple.rs: + | + | #[spirv(descriptor_set = 0, descriptor_set = 1)] _diff_descriptor_set: (), + | ^^^^^^^^^^^^^^^^^^ error: only one #[spirv(binding)] attribute is allowed on a function param - --> $DIR/multiple.rs:46:26 - | -46 | #[spirv(binding = 0, binding = 0)] _same_binding: (), - | ^^^^^^^^^^^ - | + --> $DIR/multiple.rs: + | + | #[spirv(binding = 0, binding = 0)] _same_binding: (), + | ^^^^^^^^^^^ + | note: previous #[spirv(binding)] attribute - --> $DIR/multiple.rs:46:13 - | -46 | #[spirv(binding = 0, binding = 0)] _same_binding: (), - | ^^^^^^^^^^^ + --> $DIR/multiple.rs: + | + | #[spirv(binding = 0, binding = 0)] _same_binding: (), + | ^^^^^^^^^^^ error: only one #[spirv(binding)] attribute is allowed on a function param - --> $DIR/multiple.rs:47:26 - | -47 | #[spirv(binding = 0, binding = 1)] _diff_binding: (), - | ^^^^^^^^^^^ - | + --> $DIR/multiple.rs: + | + | #[spirv(binding = 0, binding = 1)] _diff_binding: (), + | ^^^^^^^^^^^ + | note: previous #[spirv(binding)] attribute - --> $DIR/multiple.rs:47:13 - | -47 | #[spirv(binding = 0, binding = 1)] _diff_binding: (), - | ^^^^^^^^^^^ + --> $DIR/multiple.rs: + | + | #[spirv(binding = 0, binding = 1)] _diff_binding: (), + | ^^^^^^^^^^^ error: only one #[spirv(flat)] attribute is allowed on a function param - --> $DIR/multiple.rs:49:19 - | -49 | #[spirv(flat, flat)] _flat: (), - | ^^^^ - | + --> $DIR/multiple.rs: + | + | #[spirv(flat, flat)] _flat: (), + | ^^^^ + | note: previous #[spirv(flat)] attribute - --> $DIR/multiple.rs:49:13 - | -49 | #[spirv(flat, flat)] _flat: (), - | ^^^^ + --> $DIR/multiple.rs: + | + | #[spirv(flat, flat)] _flat: (), + | ^^^^ error: only one #[spirv(invariant)] attribute is allowed on a function param - --> $DIR/multiple.rs:51:24 - | -51 | #[spirv(invariant, invariant)] _invariant: (), - | ^^^^^^^^^ - | + --> $DIR/multiple.rs: + | + | #[spirv(invariant, invariant)] _invariant: (), + | ^^^^^^^^^ + | note: previous #[spirv(invariant)] attribute - --> $DIR/multiple.rs:51:13 - | -51 | #[spirv(invariant, invariant)] _invariant: (), - | ^^^^^^^^^ + --> $DIR/multiple.rs: + | + | #[spirv(invariant, invariant)] _invariant: (), + | ^^^^^^^^^ error: aborting due to 17 previous errors; 1 warning emitted diff --git a/tests/compiletests/ui/storage_class/mutability-errors.rs b/tests/compiletests/ui/storage_class/mutability-errors.rs index e31ed99c80..766c63d392 100644 --- a/tests/compiletests/ui/storage_class/mutability-errors.rs +++ b/tests/compiletests/ui/storage_class/mutability-errors.rs @@ -1,6 +1,8 @@ // Tests that using `&mut` (or interior mutability) with read-only storage classes // does actually error (see `mutability-errors.stderr` for the error messages). // build-fail +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use core::sync::atomic::AtomicU32; use spirv_std::{image::Image2d, spirv}; diff --git a/tests/compiletests/ui/storage_class/mutability-errors.stderr b/tests/compiletests/ui/storage_class/mutability-errors.stderr index dc0a1c17dc..698d2e69b5 100644 --- a/tests/compiletests/ui/storage_class/mutability-errors.stderr +++ b/tests/compiletests/ui/storage_class/mutability-errors.stderr @@ -1,80 +1,80 @@ error: entry-point requires a mutable reference... - --> $DIR/mutability-errors.rs:10:78 - | -10 | #[spirv(descriptor_set = 0, binding = 0)] implicit_uniform_constant_mut: &mut Image2d, - | ^^^^^^^^^^^^ - | + --> $DIR/mutability-errors.rs: + | + | #[spirv(descriptor_set = 0, binding = 0)] implicit_uniform_constant_mut: &mut Image2d, + | ^^^^^^^^^^^^ + | note: ...but storage class `UniformConstant` is read-only - --> $DIR/mutability-errors.rs:10:78 - | -10 | #[spirv(descriptor_set = 0, binding = 0)] implicit_uniform_constant_mut: &mut Image2d, - | ^^^^^^^^^^^^ `UniformConstant` deduced from type + --> $DIR/mutability-errors.rs: + | + | #[spirv(descriptor_set = 0, binding = 0)] implicit_uniform_constant_mut: &mut Image2d, + | ^^^^^^^^^^^^ `UniformConstant` deduced from type warning: redundant storage class attribute, storage class is deduced from type - --> $DIR/mutability-errors.rs:11:13 - | -11 | #[spirv(uniform_constant, descriptor_set = 0, binding = 0)] uniform_constant_mut: &mut Image2d, - | ^^^^^^^^^^^^^^^^ + --> $DIR/mutability-errors.rs: + | + | #[spirv(uniform_constant, descriptor_set = 0, binding = 0)] uniform_constant_mut: &mut Image2d, + | ^^^^^^^^^^^^^^^^ error: entry-point requires a mutable reference... - --> $DIR/mutability-errors.rs:11:87 - | -11 | #[spirv(uniform_constant, descriptor_set = 0, binding = 0)] uniform_constant_mut: &mut Image2d, - | ^^^^^^^^^^^^ - | + --> $DIR/mutability-errors.rs: + | + | #[spirv(uniform_constant, descriptor_set = 0, binding = 0)] uniform_constant_mut: &mut Image2d, + | ^^^^^^^^^^^^ + | note: ...but storage class `UniformConstant` is read-only - --> $DIR/mutability-errors.rs:11:13 - | -11 | #[spirv(uniform_constant, descriptor_set = 0, binding = 0)] uniform_constant_mut: &mut Image2d, - | ^^^^^^^^^^^^^^^^ `UniformConstant` specified in attribute + --> $DIR/mutability-errors.rs: + | + | #[spirv(uniform_constant, descriptor_set = 0, binding = 0)] uniform_constant_mut: &mut Image2d, + | ^^^^^^^^^^^^^^^^ `UniformConstant` specified in attribute error: entry-point requires a mutable reference... - --> $DIR/mutability-errors.rs:12:69 - | -12 | #[spirv(uniform, descriptor_set = 0, binding = 0)] uniform_mut: &mut u32, - | ^^^^^^^^ - | + --> $DIR/mutability-errors.rs: + | + | #[spirv(uniform, descriptor_set = 0, binding = 0)] uniform_mut: &mut u32, + | ^^^^^^^^ + | note: ...but storage class `Uniform` is read-only - --> $DIR/mutability-errors.rs:12:13 - | -12 | #[spirv(uniform, descriptor_set = 0, binding = 0)] uniform_mut: &mut u32, - | ^^^^^^^ `Uniform` specified in attribute + --> $DIR/mutability-errors.rs: + | + | #[spirv(uniform, descriptor_set = 0, binding = 0)] uniform_mut: &mut u32, + | ^^^^^^^ `Uniform` specified in attribute error: entry-point requires interior mutability... - --> $DIR/mutability-errors.rs:13:78 - | -13 | #[spirv(uniform, descriptor_set = 0, binding = 0)] uniform_interior_mut: &AtomicU32, - | ^^^^^^^^^^ - | + --> $DIR/mutability-errors.rs: + | + | #[spirv(uniform, descriptor_set = 0, binding = 0)] uniform_interior_mut: &AtomicU32, + | ^^^^^^^^^^ + | note: ...but storage class `Uniform` is read-only - --> $DIR/mutability-errors.rs:13:13 - | -13 | #[spirv(uniform, descriptor_set = 0, binding = 0)] uniform_interior_mut: &AtomicU32, - | ^^^^^^^ `Uniform` specified in attribute + --> $DIR/mutability-errors.rs: + | + | #[spirv(uniform, descriptor_set = 0, binding = 0)] uniform_interior_mut: &AtomicU32, + | ^^^^^^^ `Uniform` specified in attribute error: entry-point requires a mutable reference... - --> $DIR/mutability-errors.rs:14:48 - | -14 | #[spirv(push_constant)] push_constant_mut: &mut u32, - | ^^^^^^^^ - | + --> $DIR/mutability-errors.rs: + | + | #[spirv(push_constant)] push_constant_mut: &mut u32, + | ^^^^^^^^ + | note: ...but storage class `PushConstant` is read-only - --> $DIR/mutability-errors.rs:14:13 - | -14 | #[spirv(push_constant)] push_constant_mut: &mut u32, - | ^^^^^^^^^^^^^ `PushConstant` specified in attribute + --> $DIR/mutability-errors.rs: + | + | #[spirv(push_constant)] push_constant_mut: &mut u32, + | ^^^^^^^^^^^^^ `PushConstant` specified in attribute error: entry-point requires interior mutability... - --> $DIR/mutability-errors.rs:15:57 - | -15 | #[spirv(push_constant)] push_constant_interior_mut: &AtomicU32, - | ^^^^^^^^^^ - | + --> $DIR/mutability-errors.rs: + | + | #[spirv(push_constant)] push_constant_interior_mut: &AtomicU32, + | ^^^^^^^^^^ + | note: ...but storage class `PushConstant` is read-only - --> $DIR/mutability-errors.rs:15:13 - | -15 | #[spirv(push_constant)] push_constant_interior_mut: &AtomicU32, - | ^^^^^^^^^^^^^ `PushConstant` specified in attribute + --> $DIR/mutability-errors.rs: + | + | #[spirv(push_constant)] push_constant_interior_mut: &AtomicU32, + | ^^^^^^^^^^^^^ `PushConstant` specified in attribute error: aborting due to 6 previous errors; 1 warning emitted diff --git a/tests/compiletests/ui/storage_class/runtime_descriptor_array_error.rs b/tests/compiletests/ui/storage_class/runtime_descriptor_array_error.rs index 5ccefec3de..41e5ae5bd3 100644 --- a/tests/compiletests/ui/storage_class/runtime_descriptor_array_error.rs +++ b/tests/compiletests/ui/storage_class/runtime_descriptor_array_error.rs @@ -1,4 +1,6 @@ // build-fail +// normalize-stderr-test "\.rs:\d+:\d+" -> ".rs:" +// normalize-stderr-test "(\n)\d* *([ -])([\|\+\-\=])" -> "$1 $2$3" use spirv_std::{Image, RuntimeArray, spirv}; diff --git a/tests/compiletests/ui/storage_class/runtime_descriptor_array_error.stderr b/tests/compiletests/ui/storage_class/runtime_descriptor_array_error.stderr index a3c0d1b0b6..ec21764cf0 100644 --- a/tests/compiletests/ui/storage_class/runtime_descriptor_array_error.stderr +++ b/tests/compiletests/ui/storage_class/runtime_descriptor_array_error.stderr @@ -1,14 +1,14 @@ error: descriptor indexing must use &RuntimeArray, not &[T] - --> $DIR/runtime_descriptor_array_error.rs:7:52 - | -7 | #[spirv(descriptor_set = 0, binding = 0)] one: &[Image!(2D, type=f32, sampled)], - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + --> $DIR/runtime_descriptor_array_error.rs: + | + | #[spirv(descriptor_set = 0, binding = 0)] one: &[Image!(2D, type=f32, sampled)], + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: use &[T] instead of &RuntimeArray - --> $DIR/runtime_descriptor_array_error.rs:8:61 - | -8 | #[spirv(uniform, descriptor_set = 0, binding = 0)] two: &RuntimeArray, - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/runtime_descriptor_array_error.rs: + | + | #[spirv(uniform, descriptor_set = 0, binding = 0)] two: &RuntimeArray, + | ^^^^^^^^^^^^^^^^^^ error: aborting due to 1 previous error; 1 warning emitted