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 067b38b9d79874f3aaf807e1a1f2f740f64e4d83 Mon Sep 17 00:00:00 2001 From: firestar99 Date: Tue, 21 Oct 2025 10:13:20 +0200 Subject: [PATCH 2/2] compiletest: pass `-Zui-testing` to rustc --- tests/compiletests/src/main.rs | 1 + .../ui/arch/debug_printf_type_checking.stderr | 196 +- .../subgroup_cluster_size_0_fail.stderr | 50 +- ..._cluster_size_non_power_of_two_fail.stderr | 50 +- .../ui/dis/ptr_copy.normal.stderr | 104 +- .../compiletests/ui/dis/scalars.nocaps.stderr | 26 +- .../ui/glam/invalid_vector_type.stderr | 14 +- tests/compiletests/ui/image/gather_err.stderr | 60 +- .../ui/image/implicit_not_in_fragment.stderr | 24 +- .../ui/image/query/query_levels_err.stderr | 34 +- .../ui/image/query/query_lod_err.stderr | 32 +- .../ui/image/query/query_size_err.stderr | 44 +- .../ui/image/query/query_size_lod_err.stderr | 32 +- ...mpled_image_rect_query_size_lod_err.stderr | 32 +- .../ui/lang/asm/block_tracking_fail.stderr | 6 +- .../ui/lang/asm/issue-1002.stderr | 18 +- .../consts/nested-ref-in-composite.stderr | 12 +- .../ui/lang/consts/nested-ref.stderr | 4 +- .../ui/lang/consts/u32-from-u64-fail.stderr | 2 +- .../core/ptr/allocate_const_scalar.stderr | 18 +- .../ui/lang/core/ptr/allocate_vec_like.stderr | 14 +- .../core/ref/member_ref_arg-broken.stderr | 14 +- .../ui/lang/core/ref/member_ref_arg.stderr | 4 +- .../core/ref/zst_member_ref_arg-broken.stderr | 54 +- .../ui/lang/panic/track_caller.stderr | 2 +- .../bad-deduce-storage-class.stderr | 28 +- .../ui/spirv-attr/bool-inputs-err.stderr | 8 +- .../ui/spirv-attr/int-without-flat.stderr | 16 +- .../invalid-matrix-type-empty.stderr | 8 +- .../ui/spirv-attr/invalid-matrix-type.stderr | 12 +- .../spirv-attr/invalid-storage-class.stderr | 16 +- .../ui/spirv-attr/invalid-target.stderr | 2946 ++++++++--------- .../ui/spirv-attr/invariant-invalid.stderr | 8 +- .../ui/spirv-attr/multiple.stderr | 84 +- .../ui/storage_class/mutability-errors.stderr | 26 +- .../runtime_descriptor_array_error.stderr | 16 +- 36 files changed, 2008 insertions(+), 2007 deletions(-) diff --git a/tests/compiletests/src/main.rs b/tests/compiletests/src/main.rs index c4bb687700..843f9d9ea7 100644 --- a/tests/compiletests/src/main.rs +++ b/tests/compiletests/src/main.rs @@ -128,6 +128,7 @@ impl Runner { "-Zunstable-options", "-Zcrate-attr=no_std", "-Zcrate-attr=feature(asm_experimental_arch)", + "-Zui-testing", ] .join(" ") } diff --git a/tests/compiletests/ui/arch/debug_printf_type_checking.stderr b/tests/compiletests/ui/arch/debug_printf_type_checking.stderr index 6ec5956a55..2570e7c695 100644 --- a/tests/compiletests/ui/arch/debug_printf_type_checking.stderr +++ b/tests/compiletests/ui/arch/debug_printf_type_checking.stderr @@ -1,167 +1,167 @@ error: Unterminated format specifier: missing type after precision --> $DIR/debug_printf_type_checking.rs:11:23 | -11 | debug_printf!("%1"); +LL | debug_printf!("%1"); | ^^^^ error: Unterminated format specifier: missing type after decimal point --> $DIR/debug_printf_type_checking.rs:12:23 | -12 | debug_printf!("%1."); +LL | debug_printf!("%1."); | ^^^^^ error: Unrecognised format specifier: '.' --> $DIR/debug_printf_type_checking.rs:13:23 | -13 | debug_printf!("%."); +LL | debug_printf!("%."); | ^^^^ error: Unrecognised format specifier: '.' --> $DIR/debug_printf_type_checking.rs:14:23 | -14 | debug_printf!("%.1"); +LL | 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"); +LL | debug_printf!("%1.1"); | ^^^^^^ error: Missing vector dimensions specifier --> $DIR/debug_printf_type_checking.rs:16:23 | -16 | debug_printf!("%1.1v"); +LL | debug_printf!("%1.1v"); | ^^^^^^^ error: Invalid width for vector: 5 --> $DIR/debug_printf_type_checking.rs:17:23 | -17 | debug_printf!("%1.1v5"); +LL | debug_printf!("%1.1v5"); | ^^^^^^^^ error: Missing vector type specifier --> $DIR/debug_printf_type_checking.rs:18:23 | -18 | debug_printf!("%1.1v2"); +LL | debug_printf!("%1.1v2"); | ^^^^^^^^ error: Unrecognised vector type specifier: 'r' --> $DIR/debug_printf_type_checking.rs:19:23 | -19 | debug_printf!("%1.1v2r"); +LL | debug_printf!("%1.1v2r"); | ^^^^^^^^^ error: Unrecognised format specifier: 'r' --> $DIR/debug_printf_type_checking.rs:20:23 | -20 | debug_printf!("%r", 11_i32); +LL | debug_printf!("%r", 11_i32); | ^^^^ error[E0308]: mismatched types - --> $DIR/debug_printf_type_checking.rs:21:29 - | -21 | debug_printf!("%f", 11_u32); - | --------------------^^^^^^- - | | | - | | expected `f32`, found `u32` - | arguments to this function are incorrect - | + --> $DIR/debug_printf_type_checking.rs:21:29 + | +LL | 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 - | -21 | debug_printf!("%f", 11_u32); - | ^^^^^^^^^^^^^^^^^^^^------^ - | | - | this argument influences the return type of `debug_printf_assert_is_type` + --> $DIR/debug_printf_type_checking.rs:21:9 + | +LL | 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 - | -134 | 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) + --> $SPIRV_STD_SRC/lib.rs:134:8 + | +LL | 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); - | + | +LL - debug_printf!("%f", 11_u32); +LL + debug_printf!("%f", 11_f32); + | error[E0308]: mismatched types - --> $DIR/debug_printf_type_checking.rs:22:29 - | -22 | debug_printf!("%u", 11.0_f32); - | --------------------^^^^^^^^- - | | | - | | expected `u32`, found `f32` - | arguments to this function are incorrect - | + --> $DIR/debug_printf_type_checking.rs:22:29 + | +LL | 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 - | -22 | debug_printf!("%u", 11.0_f32); - | ^^^^^^^^^^^^^^^^^^^^--------^ - | | - | this argument influences the return type of `debug_printf_assert_is_type` + --> $DIR/debug_printf_type_checking.rs:22:9 + | +LL | 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 - | -134 | 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) + --> $SPIRV_STD_SRC/lib.rs:134:8 + | +LL | 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); - | + | +LL - debug_printf!("%u", 11.0_f32); +LL + debug_printf!("%u", 11u32); + | error[E0277]: the trait bound `{float}: Vector` is not satisfied - --> $DIR/debug_printf_type_checking.rs:23:9 - | -23 | debug_printf!("%v2f", 11.0); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Vector` is not implemented for `{float}` - | - = help: the following other types implement trait `Vector`: - `BVec2` implements `Vector` - `BVec3` implements `Vector` - `BVec4` implements `Vector` - `DVec2` implements `Vector` - `DVec3` implements `Vector` - `DVec4` implements `Vector` - `IVec2` implements `Vector` - `IVec3` implements `Vector` - and 8 others + --> $DIR/debug_printf_type_checking.rs:23:9 + | +LL | debug_printf!("%v2f", 11.0); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Vector` is not implemented for `{float}` + | + = help: the following other types implement trait `Vector`: + `BVec2` implements `Vector` + `BVec3` implements `Vector` + `BVec4` implements `Vector` + `DVec2` implements `Vector` + `DVec3` implements `Vector` + `DVec4` implements `Vector` + `IVec2` implements `Vector` + `IVec3` implements `Vector` + and 8 others note: required by a bound in `debug_printf_assert_is_vector` - --> $SPIRV_STD_SRC/lib.rs:141:8 - | -139 | pub fn debug_printf_assert_is_vector< - | ----------------------------- required by a bound in this function -140 | TY: crate::scalar::Scalar, -141 | 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) + --> $SPIRV_STD_SRC/lib.rs:141:8 + | +LL | pub fn debug_printf_assert_is_vector< + | ----------------------------- required by a bound in this function +LL | TY: crate::scalar::Scalar, +LL | 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 - | -24 | debug_printf!("%f", Vec2::splat(33.3)); - | --------------------^^^^^^^^^^^^^^^^^- - | | | - | | expected `f32`, found `Vec2` - | arguments to this function are incorrect - | + --> $DIR/debug_printf_type_checking.rs:24:29 + | +LL | 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 - | -24 | debug_printf!("%f", Vec2::splat(33.3)); - | ^^^^^^^^^^^^^^^^^^^^-----------------^ - | | - | this argument influences the return type of `debug_printf_assert_is_type` + --> $DIR/debug_printf_type_checking.rs:24:9 + | +LL | 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 - | -134 | 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) + --> $SPIRV_STD_SRC/lib.rs:134:8 + | +LL | 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) error: aborting due to 14 previous errors 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..3007bf1aec 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,35 +1,35 @@ error[E0080]: evaluation panicked: `ClusterSize` must be at least 1 - --> $SPIRV_STD_SRC/arch/subgroup.rs:826:1 - | -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. -... | -842 | | * `ClusterSize` must not be greater than the size of the group -843 | | "); - | |__^ 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) + --> $SPIRV_STD_SRC/arch/subgroup.rs:826:1 + | +LL | / macro_subgroup_op_clustered!(impl Integer, "OpGroupNonUniformIAdd", subgroup_clustered_i_add; r" +LL | | An integer add group operation of all `value` operands contributed by active invocations in the group. +LL | | +LL | | Result Type must be a scalar or vector of integer type. +... | +LL | | * `ClusterSize` must not be greater than the size of the group +LL | | "); + | |__^ 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 - | -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. -... | -842 | | * `ClusterSize` must not be greater than the size of the group -843 | | "); - | |__^ - | - = note: this note originates in the macro `macro_subgroup_op_clustered` (in Nightly builds, run with -Z macro-backtrace for more info) + --> $SPIRV_STD_SRC/arch/subgroup.rs:826:1 + | +LL | / macro_subgroup_op_clustered!(impl Integer, "OpGroupNonUniformIAdd", subgroup_clustered_i_add; r" +LL | | An integer add group operation of all `value` operands contributed by active invocations in the group. +LL | | +LL | | Result Type must be a scalar or vector of integer type. +... | +LL | | * `ClusterSize` must not be greater than the size of the group +LL | | "); + | |__^ + | + = 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) +LL | 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.stderr b/tests/compiletests/ui/arch/subgroup/subgroup_cluster_size_non_power_of_two_fail.stderr index 40c37e2740..e1ca2a1ea3 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,35 +1,35 @@ error[E0080]: evaluation panicked: `ClusterSize` must be a power of 2 - --> $SPIRV_STD_SRC/arch/subgroup.rs:826:1 - | -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. -... | -842 | | * `ClusterSize` must not be greater than the size of the group -843 | | "); - | |__^ 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) + --> $SPIRV_STD_SRC/arch/subgroup.rs:826:1 + | +LL | / macro_subgroup_op_clustered!(impl Integer, "OpGroupNonUniformIAdd", subgroup_clustered_i_add; r" +LL | | An integer add group operation of all `value` operands contributed by active invocations in the group. +LL | | +LL | | Result Type must be a scalar or vector of integer type. +... | +LL | | * `ClusterSize` must not be greater than the size of the group +LL | | "); + | |__^ 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 - | -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. -... | -842 | | * `ClusterSize` must not be greater than the size of the group -843 | | "); - | |__^ - | - = note: this note originates in the macro `macro_subgroup_op_clustered` (in Nightly builds, run with -Z macro-backtrace for more info) + --> $SPIRV_STD_SRC/arch/subgroup.rs:826:1 + | +LL | / macro_subgroup_op_clustered!(impl Integer, "OpGroupNonUniformIAdd", subgroup_clustered_i_add; r" +LL | | An integer add group operation of all `value` operands contributed by active invocations in the group. +LL | | +LL | | Result Type must be a scalar or vector of integer type. +... | +LL | | * `ClusterSize` must not be greater than the size of the group +LL | | "); + | |__^ + | + = 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) +LL | spirv_std::arch::subgroup_clustered_i_add::<5, _>(value) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 1 previous error diff --git a/tests/compiletests/ui/dis/ptr_copy.normal.stderr b/tests/compiletests/ui/dis/ptr_copy.normal.stderr index c7db2ddf11..dd442fbb40 100644 --- a/tests/compiletests/ui/dis/ptr_copy.normal.stderr +++ b/tests/compiletests/ui/dis/ptr_copy.normal.stderr @@ -1,68 +1,68 @@ error: cannot memcpy dynamically sized data - --> $CORE_SRC/ptr/mod.rs:633:9 - | -633 | crate::intrinsics::copy(src, dst, count) - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | + --> $CORE_SRC/ptr/mod.rs:633:9 + | +LL | crate::intrinsics::copy(src, dst, count) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | note: used from within `core::ptr::copy::` - --> $CORE_SRC/ptr/mod.rs:618:21 - | -618 | pub const unsafe fn copy(src: *const T, dst: *mut T, count: usize) { - | ^^^^ + --> $CORE_SRC/ptr/mod.rs:618:21 + | +LL | pub const unsafe fn copy(src: *const T, dst: *mut T, count: usize) { + | ^^^^ note: called by `ptr_copy::copy_via_raw_ptr` - --> $DIR/ptr_copy.rs:28:18 - | -28 | unsafe { core::ptr::copy(src, dst, 1) } - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + --> $DIR/ptr_copy.rs:28:18 + | +LL | unsafe { core::ptr::copy(src, dst, 1) } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ note: called by `ptr_copy::main` - --> $DIR/ptr_copy.rs:33:5 - | -33 | copy_via_raw_ptr(&i, o); - | ^^^^^^^^^^^^^^^^^^^^^^^ + --> $DIR/ptr_copy.rs:33:5 + | +LL | copy_via_raw_ptr(&i, o); + | ^^^^^^^^^^^^^^^^^^^^^^^ note: called by `main` - --> $DIR/ptr_copy.rs:32:8 - | -32 | pub fn main(i: f32, o: &mut f32) { - | ^^^^ + --> $DIR/ptr_copy.rs:32:8 + | +LL | pub fn main(i: f32, o: &mut f32) { + | ^^^^ error: cannot cast between pointer types from `*f32` to `*struct () { }` - --> $CORE_SRC/ptr/mod.rs:621:9 - | -621 | / ub_checks::assert_unsafe_precondition!( -622 | | check_language_ub, -623 | | "ptr::copy requires that both pointer arguments are aligned and non-null", -... | -631 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size) -632 | | ); - | |_________^ - | + --> $CORE_SRC/ptr/mod.rs:621:9 + | +LL | / ub_checks::assert_unsafe_precondition!( +LL | | check_language_ub, +LL | | "ptr::copy requires that both pointer arguments are aligned and non-null", +... | +LL | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size) +LL | | ); + | |_________^ + | note: used from within `core::ptr::copy::` - --> $CORE_SRC/ptr/mod.rs:621:9 - | -621 | / ub_checks::assert_unsafe_precondition!( -622 | | check_language_ub, -623 | | "ptr::copy requires that both pointer arguments are aligned and non-null", -... | -631 | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size) -632 | | ); - | |_________^ + --> $CORE_SRC/ptr/mod.rs:621:9 + | +LL | / ub_checks::assert_unsafe_precondition!( +LL | | check_language_ub, +LL | | "ptr::copy requires that both pointer arguments are aligned and non-null", +... | +LL | | && ub_checks::maybe_is_aligned_and_not_null(dst, align, zero_size) +LL | | ); + | |_________^ note: called by `ptr_copy::copy_via_raw_ptr` - --> $DIR/ptr_copy.rs:28:18 - | -28 | unsafe { core::ptr::copy(src, dst, 1) } - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + --> $DIR/ptr_copy.rs:28:18 + | +LL | unsafe { core::ptr::copy(src, dst, 1) } + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ note: called by `ptr_copy::main` - --> $DIR/ptr_copy.rs:33:5 - | -33 | copy_via_raw_ptr(&i, o); - | ^^^^^^^^^^^^^^^^^^^^^^^ + --> $DIR/ptr_copy.rs:33:5 + | +LL | copy_via_raw_ptr(&i, o); + | ^^^^^^^^^^^^^^^^^^^^^^^ note: called by `main` - --> $DIR/ptr_copy.rs:32:8 - | -32 | pub fn main(i: f32, o: &mut f32) { - | ^^^^ + --> $DIR/ptr_copy.rs:32:8 + | +LL | pub fn main(i: f32, o: &mut f32) { + | ^^^^ error: aborting due to 2 previous errors diff --git a/tests/compiletests/ui/dis/scalars.nocaps.stderr b/tests/compiletests/ui/dis/scalars.nocaps.stderr index f8bcf199d7..f537b2c338 100644 --- a/tests/compiletests/ui/dis/scalars.nocaps.stderr +++ b/tests/compiletests/ui/dis/scalars.nocaps.stderr @@ -3,7 +3,7 @@ error: `u8` type used without `OpCapability Int8` note: used from within Fragment entry-point `main` --> $DIR/scalars.rs:25:5 | -25 | #[spirv(flat)] in_u8: u8, +LL | #[spirv(flat)] in_u8: u8, | ^^^^^^^^^^^^^^^^^^^^^^^^ error: `u16` type used without `OpCapability Int16` @@ -11,7 +11,7 @@ error: `u16` type used without `OpCapability Int16` note: used from within Fragment entry-point `main` --> $DIR/scalars.rs:26:5 | -26 | #[spirv(flat)] in_u16: u16, +LL | #[spirv(flat)] in_u16: u16, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ error: `u64` type used without `OpCapability Int64` @@ -19,7 +19,7 @@ error: `u64` type used without `OpCapability Int64` note: used from within Fragment entry-point `main` --> $DIR/scalars.rs:28:5 | -28 | #[spirv(flat)] in_u64: u64, +LL | #[spirv(flat)] in_u64: u64, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ error: `u128` type unsupported in SPIR-V @@ -27,9 +27,9 @@ error: `u128` type unsupported in SPIR-V note: used from within Fragment entry-point `main` --> $DIR/scalars.rs:30:5 | -30 | / #[cfg(not(supported))] -31 | | #[spirv(flat)] -32 | | in_u128: u128, +LL | / #[cfg(not(supported))] +LL | | #[spirv(flat)] +LL | | in_u128: u128, | |_________________^ error: `i8` type used without `OpCapability Int8` @@ -37,7 +37,7 @@ error: `i8` type used without `OpCapability Int8` note: used from within Fragment entry-point `main` --> $DIR/scalars.rs:34:5 | -34 | #[spirv(flat)] in_i8: i8, +LL | #[spirv(flat)] in_i8: i8, | ^^^^^^^^^^^^^^^^^^^^^^^^ error: `i16` type used without `OpCapability Int16` @@ -45,7 +45,7 @@ error: `i16` type used without `OpCapability Int16` note: used from within Fragment entry-point `main` --> $DIR/scalars.rs:35:5 | -35 | #[spirv(flat)] in_i16: i16, +LL | #[spirv(flat)] in_i16: i16, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ error: `i64` type used without `OpCapability Int64` @@ -53,7 +53,7 @@ error: `i64` type used without `OpCapability Int64` note: used from within Fragment entry-point `main` --> $DIR/scalars.rs:37:5 | -37 | #[spirv(flat)] in_i64: i64, +LL | #[spirv(flat)] in_i64: i64, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ error: `i128` type unsupported in SPIR-V @@ -61,9 +61,9 @@ error: `i128` type unsupported in SPIR-V note: used from within Fragment entry-point `main` --> $DIR/scalars.rs:39:5 | -39 | / #[cfg(not(supported))] -40 | | #[spirv(flat)] -41 | | in_i128: i128, +LL | / #[cfg(not(supported))] +LL | | #[spirv(flat)] +LL | | in_i128: i128, | |_________________^ error: `f64` type used without `OpCapability Float64` @@ -71,7 +71,7 @@ error: `f64` type used without `OpCapability Float64` note: used from within Fragment entry-point `main` --> $DIR/scalars.rs:44:5 | -44 | #[spirv(flat)] in_f64: f64, +LL | #[spirv(flat)] in_f64: f64, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 9 previous errors diff --git a/tests/compiletests/ui/glam/invalid_vector_type.stderr b/tests/compiletests/ui/glam/invalid_vector_type.stderr index b0826e800c..c040cd4d9a 100644 --- a/tests/compiletests/ui/glam/invalid_vector_type.stderr +++ b/tests/compiletests/ui/glam/invalid_vector_type.stderr @@ -1,19 +1,19 @@ 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:8:1 + | +LL | pub struct FewerFields { + | ^^^^^^^^^^^^^^^^^^^^^^ error: `#[spirv(vector)]` must have 2, 3 or 4 members --> $DIR/invalid_vector_type.rs:13:1 | -13 | pub struct TooManyFields { +LL | 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 { +LL | pub struct NotVectorField { | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: field type is f32x2 @@ -21,7 +21,7 @@ error: `#[spirv(vector)]` type fields must all be floats, integers or bools error: `#[spirv(vector)]` member types must all be the same --> $DIR/invalid_vector_type.rs:34:1 | -34 | pub struct DifferentTypes { +LL | pub struct DifferentTypes { | ^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 4 previous errors diff --git a/tests/compiletests/ui/image/gather_err.stderr b/tests/compiletests/ui/image/gather_err.stderr index a2d0519500..b21ebe518d 100644 --- a/tests/compiletests/ui/image/gather_err.stderr +++ b/tests/compiletests/ui/image/gather_err.stderr @@ -1,40 +1,40 @@ error[E0277]: the trait bound `Image: HasGather` is not satisfied - --> $DIR/gather_err.rs:15:34 - | -15 | 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`: - Image - Image - Image + --> $DIR/gather_err.rs:15:34 + | +LL | 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`: + Image + Image + Image note: required by a bound in `Image::::gather` - --> $SPIRV_STD_SRC/image.rs:215:15 - | -208 | pub fn gather( - | ------ required by a bound in this associated function + --> $SPIRV_STD_SRC/image.rs:215:15 + | +LL | pub fn gather( + | ------ required by a bound in this associated function ... -215 | Self: HasGather, - | ^^^^^^^^^ required by this bound in `Image::::gather` +LL | 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 - | -16 | 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`: - Image - Image - Image + --> $DIR/gather_err.rs:16:34 + | +LL | 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`: + Image + Image + Image note: required by a bound in `Image::::gather` - --> $SPIRV_STD_SRC/image.rs:215:15 - | -208 | pub fn gather( - | ------ required by a bound in this associated function + --> $SPIRV_STD_SRC/image.rs:215:15 + | +LL | pub fn gather( + | ------ required by a bound in this associated function ... -215 | Self: HasGather, - | ^^^^^^^^^ required by this bound in `Image::::gather` +LL | Self: HasGather, + | ^^^^^^^^^ required by this bound in `Image::::gather` error: aborting due to 2 previous errors diff --git a/tests/compiletests/ui/image/implicit_not_in_fragment.stderr b/tests/compiletests/ui/image/implicit_not_in_fragment.stderr index e799fee473..bad49aef2b 100644 --- a/tests/compiletests/ui/image/implicit_not_in_fragment.stderr +++ b/tests/compiletests/ui/image/implicit_not_in_fragment.stderr @@ -1,18 +1,18 @@ error: ImageSampleImplicitLod cannot be used outside a fragment shader - | - = note: Stack: - >::sample:: - implicit_not_in_fragment::deeper_stack - implicit_not_in_fragment::deep_stack - implicit_not_in_fragment::main - main + | + = note: Stack: + >::sample:: + implicit_not_in_fragment::deeper_stack + implicit_not_in_fragment::deep_stack + implicit_not_in_fragment::main + main error: ImageSampleImplicitLod cannot be used outside a fragment shader - | - = note: Stack: - >::sample:: - implicit_not_in_fragment::main - main + | + = note: Stack: + >::sample:: + implicit_not_in_fragment::main + main error: aborting due to 2 previous errors diff --git a/tests/compiletests/ui/image/query/query_levels_err.stderr b/tests/compiletests/ui/image/query/query_levels_err.stderr index dd3220d9f3..f8a5cb95e4 100644 --- a/tests/compiletests/ui/image/query/query_levels_err.stderr +++ b/tests/compiletests/ui/image/query/query_levels_err.stderr @@ -1,22 +1,22 @@ error[E0277]: the trait bound `Image: HasQueryLevels` is not satisfied - --> $DIR/query_levels_err.rs:12:21 - | -12 | *output = image.query_levels(); - | ^^^^^^^^^^^^ the trait `HasQueryLevels` is not implemented for `Image` - | - = help: the following other types implement trait `HasQueryLevels`: - Image - Image - Image - Image + --> $DIR/query_levels_err.rs:12:21 + | +LL | *output = image.query_levels(); + | ^^^^^^^^^^^^ the trait `HasQueryLevels` is not implemented for `Image` + | + = help: the following other types implement trait `HasQueryLevels`: + Image + Image + Image + Image note: required by a bound in `Image::::query_levels` - --> $SPIRV_STD_SRC/image.rs:967:15 - | -965 | pub fn query_levels(&self) -> u32 - | ------------ required by a bound in this associated function -966 | where -967 | Self: HasQueryLevels, - | ^^^^^^^^^^^^^^ required by this bound in `Image::::query_levels` + --> $SPIRV_STD_SRC/image.rs:967:15 + | +LL | pub fn query_levels(&self) -> u32 + | ------------ required by a bound in this associated function +LL | where +LL | 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.stderr b/tests/compiletests/ui/image/query/query_lod_err.stderr index 868bab22da..d82dc69840 100644 --- a/tests/compiletests/ui/image/query/query_lod_err.stderr +++ b/tests/compiletests/ui/image/query/query_lod_err.stderr @@ -1,22 +1,22 @@ error[E0277]: the trait bound `Image: HasQueryLevels` is not satisfied - --> $DIR/query_lod_err.rs:13:21 - | -13 | *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`: - Image - Image - Image - Image + --> $DIR/query_lod_err.rs:13:21 + | +LL | *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`: + Image + Image + Image + Image note: required by a bound in `Image::::query_lod` - --> $SPIRV_STD_SRC/image.rs:996:15 - | -990 | pub fn query_lod( - | --------- required by a bound in this associated function + --> $SPIRV_STD_SRC/image.rs:996:15 + | +LL | pub fn query_lod( + | --------- required by a bound in this associated function ... -996 | Self: HasQueryLevels, - | ^^^^^^^^^^^^^^ required by this bound in `Image::::query_lod` +LL | 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.stderr b/tests/compiletests/ui/image/query/query_size_err.stderr index cdbd9245f5..517c2c6611 100644 --- a/tests/compiletests/ui/image/query/query_size_err.stderr +++ b/tests/compiletests/ui/image/query/query_size_err.stderr @@ -1,27 +1,27 @@ 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`: - Image - Image - Image - Image - Image - Image - Image - Image - and 6 others + --> $DIR/query_size_err.rs:12:21 + | +LL | *output = image.query_size(); + | ^^^^^^^^^^ the trait `HasQuerySize` is not implemented for `Image` + | + = help: the following other types implement trait `HasQuerySize`: + Image + Image + Image + Image + Image + Image + Image + 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:1031:15 + | +LL | pub fn query_size + Default>(&self) -> Size + | ---------- required by a bound in this associated function +LL | where +LL | 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.stderr b/tests/compiletests/ui/image/query/query_size_lod_err.stderr index 69662c8e79..cc2dea45ff 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`: - Image - Image - Image - Image + --> $DIR/query_size_lod_err.rs:12:21 + | +LL | *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:1077:15 + | +LL | 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` +LL | 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.stderr b/tests/compiletests/ui/image/query/sampled_image_rect_query_size_lod_err.stderr index 0b3bcea2ab..85c49da023 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`: - Image - Image - Image - Image + --> $DIR/sampled_image_rect_query_size_lod_err.rs:21:28 + | +LL | *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:1242:12 + | +LL | 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` +LL | >: 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.stderr b/tests/compiletests/ui/lang/asm/block_tracking_fail.stderr index 12c83f142e..cdd2c7b0b3 100644 --- a/tests/compiletests/ui/lang/asm/block_tracking_fail.stderr +++ b/tests/compiletests/ui/lang/asm/block_tracking_fail.stderr @@ -1,19 +1,19 @@ error: `noreturn` requires a terminator at the end --> $DIR/block_tracking_fail.rs:11:15 | -11 | asm!("", options(noreturn)); +LL | asm!("", options(noreturn)); | ^ error: trailing terminator `OpUnreachable` requires `options(noreturn)` --> $DIR/block_tracking_fail.rs:18:15 | -18 | asm!("OpUnreachable"); +LL | asm!("OpUnreachable"); | ^^^^^^^^^^^^^ error: expected `OpLabel` after terminator `OpKill` --> $DIR/block_tracking_fail.rs:26:14 | -26 | "OpKill", +LL | "OpKill", | ^^^^^^ error: aborting due to 3 previous errors diff --git a/tests/compiletests/ui/lang/asm/issue-1002.stderr b/tests/compiletests/ui/lang/asm/issue-1002.stderr index e1f8c10c6e..8b811d8ae9 100644 --- a/tests/compiletests/ui/lang/asm/issue-1002.stderr +++ b/tests/compiletests/ui/lang/asm/issue-1002.stderr @@ -1,15 +1,15 @@ 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:9:15 + | +LL | 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}", +LL | "OpReturnValue {x}", | ^^^^^^^^^^^^^^^^^ | = note: resuming execution, without falling through the end of the `asm!` block, is always undefined behavior @@ -17,7 +17,7 @@ error: using `OpReturnValue` to return from within `asm!` is disallowed error: using `OpReturn` to return from within `asm!` is disallowed --> $DIR/issue-1002.rs:26:14 | -26 | "OpReturn", // close active block +LL | "OpReturn", // close active block | ^^^^^^^^ | = note: resuming execution, without falling through the end of the `asm!` block, is always undefined behavior @@ -25,7 +25,7 @@ error: using `OpReturn` to return from within `asm!` is disallowed error: using `OpReturnValue` to return from within `asm!` is disallowed --> $DIR/issue-1002.rs:35:14 | -35 | "OpReturnValue {x}", // close active block +LL | "OpReturnValue {x}", // close active block | ^^^^^^^^^^^^^^^^^ | = note: resuming execution, without falling through the end of the `asm!` block, is always undefined behavior 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..4b1883e454 100644 --- a/tests/compiletests/ui/lang/consts/nested-ref-in-composite.stderr +++ b/tests/compiletests/ui/lang/consts/nested-ref-in-composite.stderr @@ -1,35 +1,35 @@ 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)); +LL | *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)); +LL | *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)) { +LL | 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]); +LL | *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]); +LL | *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]) { +LL | 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.stderr b/tests/compiletests/ui/lang/consts/nested-ref.stderr index e66427d0a3..805ec9b607 100644 --- a/tests/compiletests/ui/lang/consts/nested-ref.stderr +++ b/tests/compiletests/ui/lang/consts/nested-ref.stderr @@ -1,7 +1,7 @@ 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 { +LL | fn deep_load(r: &'static &'static u32) -> u32 { | ^^^^^^^^^ | = note: inlining was required due to illegal parameter type @@ -10,7 +10,7 @@ warning: `#[inline(never)]` function `nested_ref::deep_load` has been inlined 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 { +LL | fn deep_transpose(r: &'static &'static Mat2) -> Mat2 { | ^^^^^^^^^^^^^^ | = note: inlining was required due to illegal parameter type 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..9ada3d8e3b 100644 --- a/tests/compiletests/ui/lang/consts/u32-from-u64-fail.stderr +++ b/tests/compiletests/ui/lang/consts/u32-from-u64-fail.stderr @@ -1,7 +1,7 @@ error[E0277]: the trait bound `u32: From` is not satisfied --> $DIR/u32-from-u64-fail.rs:14:17 | -14 | let value = u32::from(K); +LL | let value = u32::from(K); | ^^^ the trait `From` is not implemented for `u32` | = help: the following other types implement trait `From`: 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..aac0775325 100644 --- a/tests/compiletests/ui/lang/core/ptr/allocate_const_scalar.stderr +++ b/tests/compiletests/ui/lang/core/ptr/allocate_const_scalar.stderr @@ -1,23 +1,23 @@ 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:6:12 + | +LL | #![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; +LL | *output = POINTER; | ^^^^^^^^^^^^^^^^^ note: called by `main` --> $DIR/allocate_const_scalar.rs:15:8 | -15 | pub fn main(output: &mut Unique<()>) { +LL | 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.stderr b/tests/compiletests/ui/lang/core/ptr/allocate_vec_like.stderr index d4376b8486..529834b08d 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:4:12 + | +LL | #![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.stderr b/tests/compiletests/ui/lang/core/ref/member_ref_arg-broken.stderr index 21d8dd55b6..4a41bfb462 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,7 +1,7 @@ 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 { +LL | fn f(x: &u32) -> u32 { | ^ | = note: inlining was required due to illegal (pointer) argument @@ -10,7 +10,7 @@ warning: `#[inline(never)]` function `member_ref_arg_broken::f` has been inlined 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) { +LL | fn g(xy: (&u32, &u32)) -> (u32, u32) { | ^ | = note: inlining was required due to illegal (pointer) argument @@ -19,7 +19,7 @@ warning: `#[inline(never)]` function `member_ref_arg_broken::g` has been inlined 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) { +LL | fn h(xyz: (&u32, &u32, &u32)) -> (u32, u32, u32) { | ^ | = note: inlining was required due to illegal parameter type @@ -28,7 +28,7 @@ warning: `#[inline(never)]` function `member_ref_arg_broken::h` has been inlined 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) { +LL | fn h_newtyped(xyz: ((&u32, &u32, &u32),)) -> (u32, u32, u32) { | ^^^^^^^^^^ | = note: inlining was required due to illegal parameter type @@ -36,9 +36,9 @@ warning: `#[inline(never)]` function `member_ref_arg_broken::h_newtyped` has bee 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.stderr b/tests/compiletests/ui/lang/core/ref/member_ref_arg.stderr index fd875abfcc..5ec9e260b4 100644 --- a/tests/compiletests/ui/lang/core/ref/member_ref_arg.stderr +++ b/tests/compiletests/ui/lang/core/ref/member_ref_arg.stderr @@ -1,7 +1,7 @@ warning: `#[inline(never)]` function `member_ref_arg::f` has been inlined --> $DIR/member_ref_arg.rs:14:4 | -14 | fn f(x: &u32) {} +LL | fn f(x: &u32) {} | ^ | = note: inlining was required due to illegal (pointer) argument @@ -10,7 +10,7 @@ warning: `#[inline(never)]` function `member_ref_arg::f` has been inlined warning: `#[inline(never)]` function `member_ref_arg::g` has been inlined --> $DIR/member_ref_arg.rs:17:4 | -17 | fn g(xy: (&u32, &u32)) {} +LL | fn g(xy: (&u32, &u32)) {} | ^ | = note: inlining was required due to illegal (pointer) argument 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..748fe9a222 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,18 +1,18 @@ error: cannot offset a pointer to an arbitrary element --> $DIR/zst_member_ref_arg-broken.rs:23:7 | -23 | f(&s.y); +LL | 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); +LL | 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) { +LL | pub fn main_scalar(#[spirv(push_constant)] s: &S) { | ^^^^^^^^^^^ error: cannot cast between pointer types @@ -20,18 +20,18 @@ error: cannot cast between pointer types to `*u8` --> $DIR/zst_member_ref_arg-broken.rs:23:7 | -23 | f(&s.y); +LL | 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); +LL | 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) { +LL | pub fn main_scalar(#[spirv(push_constant)] s: &S) { | ^^^^^^^^^^^ error: cannot cast between pointer types @@ -39,35 +39,35 @@ error: cannot cast between pointer types to `*struct B { }` --> $DIR/zst_member_ref_arg-broken.rs:23:5 | -23 | f(&s.y); +LL | 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); +LL | 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) { +LL | 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); +LL | 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); +LL | 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) { +LL | pub fn main_scalar_pair(#[spirv(push_constant)] s: &S) { | ^^^^^^^^^^^^^^^^ error: cannot cast between pointer types @@ -75,18 +75,18 @@ error: cannot cast between pointer types to `*u8` --> $DIR/zst_member_ref_arg-broken.rs:28:7 | -28 | f(&s.y); +LL | 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); +LL | 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) { +LL | pub fn main_scalar_pair(#[spirv(push_constant)] s: &S) { | ^^^^^^^^^^^^^^^^ error: cannot cast between pointer types @@ -94,35 +94,35 @@ error: cannot cast between pointer types to `*struct B { }` --> $DIR/zst_member_ref_arg-broken.rs:28:5 | -28 | f(&s.y); +LL | 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); +LL | 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) { +LL | 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); +LL | 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); +LL | 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)>) { +LL | pub fn main_scalar_scalar_pair_nested(#[spirv(push_constant)] s: &S<(usize, usize)>) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot cast between pointer types @@ -130,18 +130,18 @@ error: cannot cast between pointer types to `*u8` --> $DIR/zst_member_ref_arg-broken.rs:33:7 | -33 | f(&s.y); +LL | 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); +LL | 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)>) { +LL | pub fn main_scalar_scalar_pair_nested(#[spirv(push_constant)] s: &S<(usize, usize)>) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot cast between pointer types @@ -149,18 +149,18 @@ error: cannot cast between pointer types to `*struct B { }` --> $DIR/zst_member_ref_arg-broken.rs:33:5 | -33 | f(&s.y); +LL | 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); +LL | 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)>) { +LL | 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.stderr b/tests/compiletests/ui/lang/panic/track_caller.stderr index 0b97060a71..b18b2fed0d 100644 --- a/tests/compiletests/ui/lang/panic/track_caller.stderr +++ b/tests/compiletests/ui/lang/panic/track_caller.stderr @@ -1,7 +1,7 @@ warning: `#[inline(never)]` function `track_caller::track_caller_maybe_panic::panic_cold_explicit` has been inlined --> $DIR/track_caller.rs:10:9 | -10 | panic!(); +LL | panic!(); | ^^^^^^^^ | = note: inlining was required due to panicking 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..b98d2e98a8 100644 --- a/tests/compiletests/ui/spirv-attr/bad-deduce-storage-class.stderr +++ b/tests/compiletests/ui/spirv-attr/bad-deduce-storage-class.stderr @@ -1,24 +1,24 @@ 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:8:5 + | +LL | #[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:9:13 + | +LL | #[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)) {} +LL | 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) diff --git a/tests/compiletests/ui/spirv-attr/bool-inputs-err.stderr b/tests/compiletests/ui/spirv-attr/bool-inputs-err.stderr index 2f79db13b5..8a08baf3eb 100644 --- a/tests/compiletests/ui/spirv-attr/bool-inputs-err.stderr +++ b/tests/compiletests/ui/spirv-attr/bool-inputs-err.stderr @@ -1,25 +1,25 @@ error: entry-point parameter cannot contain `bool`s --> $DIR/bool-inputs-err.rs:13:12 | -13 | input: bool, +LL | input: bool, | ^^^^ error: entry-point parameter cannot contain `bool`s --> $DIR/bool-inputs-err.rs:14:13 | -14 | output: &mut bool, +LL | output: &mut bool, | ^^^^^^^^^ error: entry-point parameter cannot contain `bool`s --> $DIR/bool-inputs-err.rs:15:35 | -15 | #[spirv(push_constant)] push: &bool, +LL | #[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, +LL | #[spirv(uniform)] uniform: &Boolthing, | ^^^^^^^^^^ error: aborting due to 4 previous errors diff --git a/tests/compiletests/ui/spirv-attr/int-without-flat.stderr b/tests/compiletests/ui/spirv-attr/int-without-flat.stderr index 45b5fcbc6b..00b65552dc 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:6:22 + | +LL | 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:6:35 + | +LL | 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.stderr b/tests/compiletests/ui/spirv-attr/invalid-matrix-type-empty.stderr index 45b1139cc0..2f768d790d 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:7:1 + | +LL | pub struct EmptyStruct {} + | ^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 1 previous error diff --git a/tests/compiletests/ui/spirv-attr/invalid-matrix-type.stderr b/tests/compiletests/ui/spirv-attr/invalid-matrix-type.stderr index a14a76b6d6..17e30c91dd 100644 --- a/tests/compiletests/ui/spirv-attr/invalid-matrix-type.stderr +++ b/tests/compiletests/ui/spirv-attr/invalid-matrix-type.stderr @@ -1,13 +1,13 @@ 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:7:1 + | +LL | pub struct _FewerFields { + | ^^^^^^^^^^^^^^^^^^^^^^^ error: `#[spirv(matrix)]` type fields must all be vectors --> $DIR/invalid-matrix-type.rs:12:1 | -12 | pub struct _NotVectorField { +LL | pub struct _NotVectorField { | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: field type is f32 @@ -15,7 +15,7 @@ error: `#[spirv(matrix)]` type fields must all be vectors error: `#[spirv(matrix)]` member types must all be the same --> $DIR/invalid-matrix-type.rs:19:1 | -19 | pub struct _DifferentType { +LL | pub struct _DifferentType { | ^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 3 previous errors diff --git a/tests/compiletests/ui/spirv-attr/invalid-storage-class.stderr b/tests/compiletests/ui/spirv-attr/invalid-storage-class.stderr index e3d8a39cb0..d2020f822d 100644 --- a/tests/compiletests/ui/spirv-attr/invalid-storage-class.stderr +++ b/tests/compiletests/ui/spirv-attr/invalid-storage-class.stderr @@ -1,31 +1,31 @@ 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:9:13 + | +LL | #[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)] _: (), +LL | #[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)] _: (), +LL | #[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)] _: (), +LL | #[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)] _: (), +LL | #[spirv(generic)] _: (), | ^^^^^^^ error: aborting due to 5 previous errors diff --git a/tests/compiletests/ui/spirv-attr/invalid-target.stderr b/tests/compiletests/ui/spirv-attr/invalid-target.stderr index 78ae3de546..5cb3a5e890 100644 --- a/tests/compiletests/ui/spirv-attr/invalid-target.stderr +++ b/tests/compiletests/ui/spirv-attr/invalid-target.stderr @@ -1,2651 +1,2651 @@ 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 - | -103 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:103:5 + | +LL | 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 - | -103 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:103:14 + | +LL | 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 - | -103 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:103:21 + | +LL | 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 - | -103 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:103:36 + | +LL | 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 - | -104 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:104:5 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a constant item - --> $DIR/invalid-target.rs:105:5 - | -105 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:105:5 + | +LL | 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 - | -105 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:105:14 + | +LL | 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 - | -105 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:105:24 + | +LL | 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 - | -105 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:105:44 + | +LL | 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 - | -105 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:105:57 + | +LL | 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 - | -105 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:105:63 + | +LL | 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 - | -110 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:110:5 + | +LL | 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 - | -110 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:110:14 + | +LL | 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 - | -110 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:110:21 + | +LL | 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 - | -110 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:110:36 + | +LL | 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 - | -111 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:111:5 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a type alias - --> $DIR/invalid-target.rs:112:5 - | -112 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:112:5 + | +LL | 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 - | -112 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:112:14 + | +LL | 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 - | -112 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:112:24 + | +LL | 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 - | -112 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:112:44 + | +LL | 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 - | -112 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:112:57 + | +LL | 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 - | -112 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:112:63 + | +LL | 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 - | -117 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:117:5 + | +LL | 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 - | -117 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:117:14 + | +LL | 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 - | -117 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:117:21 + | +LL | 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 - | -117 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:117:36 + | +LL | 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 - | -118 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:118:5 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a type alias - --> $DIR/invalid-target.rs:119:5 - | -119 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:119:5 + | +LL | 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 - | -119 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:119:14 + | +LL | 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 - | -119 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:119:24 + | +LL | 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 - | -119 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:119:44 + | +LL | 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 - | -119 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:119:57 + | +LL | 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 - | -119 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:119:63 + | +LL | 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 - | -128 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:128:5 + | +LL | 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 - | -128 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:128:14 + | +LL | 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 - | -128 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:128:21 + | +LL | 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 - | -128 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:128:36 + | +LL | 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 - | -129 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:129:5 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a enum - --> $DIR/invalid-target.rs:130:5 - | -130 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:130:5 + | +LL | 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 - | -130 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:130:14 + | +LL | 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 - | -130 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:130:24 + | +LL | 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 - | -130 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:130:44 + | +LL | 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 - | -130 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:130:57 + | +LL | 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 - | -130 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:130:63 + | +LL | 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 - | -134 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:134:9 + | +LL | 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 - | -134 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:134:18 + | +LL | 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 - | -134 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:134:25 + | +LL | 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 - | -134 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:134:40 + | +LL | 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 - | -135 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:135:9 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a enum variant - --> $DIR/invalid-target.rs:136:9 - | -136 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:136:9 + | +LL | 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 - | -136 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:136:18 + | +LL | 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 - | -136 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:136:28 + | +LL | 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 - | -136 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:136:48 + | +LL | 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 - | -136 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:136:61 + | +LL | 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 - | -136 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:136:67 + | +LL | 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 - | -140 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:140:13 + | +LL | 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 - | -140 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:140:22 + | +LL | 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 - | -140 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:140:29 + | +LL | 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 - | -140 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:140:44 + | +LL | 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 - | -141 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:141:13 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:142:13 - | -142 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:142:13 + | +LL | 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 - | -142 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:142:22 + | +LL | 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 - | -142 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:142:32 + | +LL | 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 - | -142 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:142:52 + | +LL | 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 - | -142 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:142:65 + | +LL | 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 - | -142 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:142:71 + | +LL | 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 - | -149 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:149:5 + | +LL | 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 - | -149 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:149:14 + | +LL | 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 - | -149 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:149:21 + | +LL | 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 - | -149 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:149:36 + | +LL | 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 - | -150 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:150:5 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a union - --> $DIR/invalid-target.rs:151:5 - | -151 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:151:5 + | +LL | 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 - | -151 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:151:14 + | +LL | 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 - | -151 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:151:24 + | +LL | 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 - | -151 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:151:44 + | +LL | 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 - | -151 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:151:57 + | +LL | 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 - | -151 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:151:63 + | +LL | 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 - | -155 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:155:9 + | +LL | 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 - | -155 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:155:18 + | +LL | 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 - | -155 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:155:25 + | +LL | 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 - | -155 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:155:40 + | +LL | 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 - | -156 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:156:9 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:157:9 - | -157 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:157:9 + | +LL | 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 - | -157 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:157:18 + | +LL | 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 - | -157 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:157:28 + | +LL | 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 - | -157 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:157:48 + | +LL | 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 - | -157 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:157:61 + | +LL | 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 - | -157 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:157:67 + | +LL | 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 - | -163 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:163:5 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a struct - --> $DIR/invalid-target.rs:164:5 - | -164 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:164:5 + | +LL | 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 - | -164 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:164:14 + | +LL | 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 - | -164 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:164:24 + | +LL | 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 - | -164 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:164:44 + | +LL | 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 - | -164 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:164:57 + | +LL | 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 - | -164 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:164:63 + | +LL | 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 - | -168 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:168:9 + | +LL | 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 - | -168 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:168:18 + | +LL | 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 - | -168 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:168:25 + | +LL | 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 - | -168 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:168:40 + | +LL | 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 - | -169 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:169:9 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a struct field - --> $DIR/invalid-target.rs:170:9 - | -170 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:170:9 + | +LL | 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 - | -170 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:170:18 + | +LL | 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 - | -170 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:170:28 + | +LL | 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 - | -170 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:170:48 + | +LL | 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 - | -170 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:170:61 + | +LL | 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 - | -170 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:170:67 + | +LL | 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 - | -176 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:176:5 + | +LL | 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 - | -176 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:176:14 + | +LL | 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 - | -176 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:176:21 + | +LL | 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 - | -176 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:176:36 + | +LL | 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 - | -177 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:177:5 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a implementation block - --> $DIR/invalid-target.rs:178:5 - | -178 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:178:5 + | +LL | 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 - | -178 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:178:14 + | +LL | 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 - | -178 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:178:24 + | +LL | 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 - | -178 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:178:44 + | +LL | 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 - | -178 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:178:57 + | +LL | 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 - | -178 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:178:63 + | +LL | 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 - | -196 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:196:5 + | +LL | 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 - | -196 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:196:14 + | +LL | 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 - | -196 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:196:21 + | +LL | 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 - | -196 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:196:36 + | +LL | 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 - | -197 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:197:5 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a trait alias - --> $DIR/invalid-target.rs:198:5 - | -198 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:198:5 + | +LL | 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 - | -198 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:198:14 + | +LL | 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 - | -198 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:198:24 + | +LL | 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 - | -198 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:198:44 + | +LL | 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 - | -198 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:198:57 + | +LL | 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 - | -198 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:198:63 + | +LL | 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 - | -203 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:203:5 + | +LL | 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 - | -203 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:203:14 + | +LL | 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 - | -203 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:203:21 + | +LL | 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 - | -203 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:203:36 + | +LL | 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 - | -204 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:204:5 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a trait - --> $DIR/invalid-target.rs:205:5 - | -205 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:205:5 + | +LL | 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 - | -205 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:205:14 + | +LL | 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 - | -205 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:205:24 + | +LL | 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 - | -205 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:205:44 + | +LL | 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 - | -205 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:205:57 + | +LL | 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 - | -205 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:205:63 + | +LL | 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 - | -237 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:237:5 + | +LL | 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 - | -237 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:237:14 + | +LL | 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 - | -237 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:237:21 + | +LL | 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 - | -237 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:237:36 + | +LL | 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 - | -238 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:238:5 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a implementation block - --> $DIR/invalid-target.rs:239:5 - | -239 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:239:5 + | +LL | 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 - | -239 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:239:14 + | +LL | 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 - | -239 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:239:24 + | +LL | 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 - | -239 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:239:44 + | +LL | 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 - | -239 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:239:57 + | +LL | 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 - | -239 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:239:63 + | +LL | 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 - | -264 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:264:5 + | +LL | 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 - | -264 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:264:14 + | +LL | 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 - | -264 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:264:21 + | +LL | 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 - | -264 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:264:36 + | +LL | 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 - | -265 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:265:5 + | +LL | 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 - | -265 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:265:14 + | +LL | 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 - | -265 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:265:24 + | +LL | 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 - | -265 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:265:44 + | +LL | 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 - | -265 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:265:57 + | +LL | 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 - | -265 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:265:63 + | +LL | 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 - | -269 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:269:9 + | +LL | 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 - | -269 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:269:18 + | +LL | 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 - | -269 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:269:25 + | +LL | 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 - | -269 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:269:40 + | +LL | 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 - | -270 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:270:9 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a struct, not on a statement - --> $DIR/invalid-target.rs:275:9 - | -275 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:275:9 + | +LL | 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 - | -275 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:275:18 + | +LL | 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 - | -275 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:275:25 + | +LL | 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 - | -275 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:275:40 + | +LL | 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 - | -276 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:276:9 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a statement - --> $DIR/invalid-target.rs:277:9 - | -277 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:277:9 + | +LL | 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 - | -277 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:277:18 + | +LL | 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 - | -277 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:277:28 + | +LL | 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 - | -277 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:277:48 + | +LL | 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 - | -277 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:277:61 + | +LL | 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 - | -277 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:277:67 + | +LL | 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 - | -282 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:282:13 + | +LL | 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 - | -282 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:282:22 + | +LL | 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 - | -282 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:282:29 + | +LL | 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 - | -282 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:282:44 + | +LL | 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 - | -283 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:283:13 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a closure - --> $DIR/invalid-target.rs:284:13 - | -284 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:284:13 + | +LL | 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 - | -284 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:284:22 + | +LL | 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 - | -284 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:284:32 + | +LL | 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 - | -284 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:284:52 + | +LL | 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 - | -284 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:284:65 + | +LL | 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 - | -284 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:284:71 + | +LL | 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 - | -290 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:290:13 + | +LL | 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 - | -290 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:290:22 + | +LL | 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 - | -290 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:290:29 + | +LL | 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 - | -290 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:290:44 + | +LL | 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 - | -291 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:291:13 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a expression - --> $DIR/invalid-target.rs:292:13 - | -292 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:292:13 + | +LL | 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 - | -292 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:292:22 + | +LL | 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 - | -292 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:292:32 + | +LL | 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 - | -292 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:292:52 + | +LL | 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 - | -292 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:292:65 + | +LL | 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 - | -292 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:292:71 + | +LL | 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 - | -300 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:300:13 + | +LL | 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 - | -300 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:300:22 + | +LL | 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 - | -300 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:300:29 + | +LL | 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 - | -300 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:300:44 + | +LL | 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 - | -301 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:301:13 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a match arm - --> $DIR/invalid-target.rs:302:13 - | -302 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:302:13 + | +LL | 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 - | -302 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:302:22 + | +LL | 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 - | -302 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:302:32 + | +LL | 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 - | -302 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:302:52 + | +LL | 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 - | -302 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:302:65 + | +LL | 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 - | -302 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:302:71 + | +LL | 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 - | -311 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:311:9 + | +LL | 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 - | -311 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:311:18 + | +LL | 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 - | -311 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:311:25 + | +LL | 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 - | -311 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:311:40 + | +LL | 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 - | -312 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:312:9 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a lifetime parameter - --> $DIR/invalid-target.rs:313:9 - | -313 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:313:9 + | +LL | 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 - | -313 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:313:18 + | +LL | 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 - | -313 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:313:28 + | +LL | 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 - | -313 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:313:48 + | +LL | 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 - | -313 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:313:61 + | +LL | 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 - | -313 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:313:67 + | +LL | 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 - | -316 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:316:9 + | +LL | 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 - | -316 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:316:18 + | +LL | 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 - | -316 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:316:25 + | +LL | 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 - | -316 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:316:40 + | +LL | 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 - | -317 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:317:9 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a type parameter - --> $DIR/invalid-target.rs:318:9 - | -318 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:318:9 + | +LL | 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 - | -318 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:318:18 + | +LL | 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 - | -318 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:318:28 + | +LL | 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 - | -318 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:318:48 + | +LL | 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 - | -318 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:318:61 + | +LL | 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 - | -318 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:318:67 + | +LL | 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 - | -321 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:321:9 + | +LL | 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 - | -321 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:321:18 + | +LL | 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 - | -321 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:321:25 + | +LL | 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 - | -321 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:321:40 + | +LL | 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 - | -322 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:322:9 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a const parameter - --> $DIR/invalid-target.rs:323:9 - | -323 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:323:9 + | +LL | 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 - | -323 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:323:18 + | +LL | 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 - | -323 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:323:28 + | +LL | 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 - | -323 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:323:48 + | +LL | 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 - | -323 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:323:61 + | +LL | 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 - | -323 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:323:67 + | +LL | 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 - | -209 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:209:9 + | +LL | 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 - | -209 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:209:18 + | +LL | 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 - | -209 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:209:25 + | +LL | 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 - | -209 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:209:40 + | +LL | 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 - | -210 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:210:9 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a associated type - --> $DIR/invalid-target.rs:211:9 - | -211 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:211:9 + | +LL | 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 - | -211 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:211:18 + | +LL | 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 - | -211 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:211:28 + | +LL | 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 - | -211 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:211:48 + | +LL | 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 - | -211 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:211:61 + | +LL | 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 - | -211 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:211:67 + | +LL | 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 - | -216 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:216:9 + | +LL | 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 - | -216 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:216:18 + | +LL | 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 - | -216 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:216:25 + | +LL | 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 - | -216 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:216:40 + | +LL | 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 - | -217 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:217:9 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:218:9 - | -218 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:218:9 + | +LL | 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 - | -218 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:218:18 + | +LL | 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 - | -218 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:218:28 + | +LL | 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 - | -218 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:218:48 + | +LL | 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 - | -218 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:218:61 + | +LL | 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 - | -218 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:218:67 + | +LL | 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 - | -223 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:223:9 + | +LL | 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 - | -223 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:223:18 + | +LL | 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 - | -223 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:223:25 + | +LL | 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 - | -223 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:223:40 + | +LL | 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 - | -224 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:224:9 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a required trait method - --> $DIR/invalid-target.rs:225:9 - | -225 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:225:9 + | +LL | 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 - | -225 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:225:18 + | +LL | 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 - | -225 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:225:28 + | +LL | 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 - | -225 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:225:48 + | +LL | 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 - | -225 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:225:61 + | +LL | 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 - | -225 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:225:67 + | +LL | 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 - | -230 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:230:9 + | +LL | 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 - | -230 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:230:18 + | +LL | 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 - | -230 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:230:25 + | +LL | 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 - | -230 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:230:40 + | +LL | 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 - | -231 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:231:9 + | +LL | 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 - | -231 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:231:18 + | +LL | 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 - | -231 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:231:28 + | +LL | 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 - | -231 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:231:48 + | +LL | 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 - | -231 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:231:61 + | +LL | 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 - | -231 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:231:67 + | +LL | 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 - | -182 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:182:9 + | +LL | 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 - | -182 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:182:18 + | +LL | 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 - | -182 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:182:25 + | +LL | 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 - | -182 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:182:40 + | +LL | 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 - | -183 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:183:9 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:184:9 - | -184 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:184:9 + | +LL | 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 - | -184 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:184:18 + | +LL | 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 - | -184 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:184:28 + | +LL | 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 - | -184 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:184:48 + | +LL | 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 - | -184 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:184:61 + | +LL | 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 - | -184 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:184:67 + | +LL | 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 - | -189 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:189:9 + | +LL | 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 - | -189 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:189:18 + | +LL | 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 - | -189 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:189:25 + | +LL | 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 - | -189 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:189:40 + | +LL | 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 - | -190 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:190:9 + | +LL | 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 - | -190 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:190:18 + | +LL | 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 - | -190 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:190:28 + | +LL | 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 - | -190 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:190:48 + | +LL | 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 - | -190 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:190:61 + | +LL | 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 - | -190 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:190:67 + | +LL | 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 - | -243 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:243:9 + | +LL | 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 - | -243 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:243:18 + | +LL | 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 - | -243 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:243:25 + | +LL | 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 - | -243 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:243:40 + | +LL | 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 - | -244 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:244:9 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a associated type - --> $DIR/invalid-target.rs:245:9 - | -245 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:245:9 + | +LL | 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 - | -245 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:245:18 + | +LL | 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 - | -245 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:245:28 + | +LL | 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 - | -245 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:245:48 + | +LL | 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 - | -245 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:245:61 + | +LL | 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 - | -245 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:245:67 + | +LL | 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 - | -250 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:250:9 + | +LL | 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 - | -250 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:250:18 + | +LL | 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 - | -250 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:250:25 + | +LL | 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 - | -250 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:250:40 + | +LL | 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 - | -251 | vertex, // fn-only - | ^^^^^^ + --> $DIR/invalid-target.rs:251:9 + | +LL | vertex, // fn-only + | ^^^^^^ error: attribute is only valid on a function parameter, not on a associated const - --> $DIR/invalid-target.rs:252:9 - | -252 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:252:9 + | +LL | 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 - | -252 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:252:18 + | +LL | 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 - | -252 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:252:28 + | +LL | 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 - | -252 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:252:48 + | +LL | 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 - | -252 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:252:61 + | +LL | 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 - | -252 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:252:67 + | +LL | 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 - | -257 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:257:9 + | +LL | 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 - | -257 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^ + --> $DIR/invalid-target.rs:257:18 + | +LL | 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 - | -257 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:257:25 + | +LL | 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 - | -257 | sampler, block, sampled_image, generic_image_type, // struct-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:257:40 + | +LL | 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 - | -258 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^ + --> $DIR/invalid-target.rs:258:9 + | +LL | 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 - | -258 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^ + --> $DIR/invalid-target.rs:258:18 + | +LL | 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 - | -258 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:258:28 + | +LL | 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 - | -258 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^^^ + --> $DIR/invalid-target.rs:258:48 + | +LL | 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 - | -258 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^ + --> $DIR/invalid-target.rs:258:61 + | +LL | 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 - | -258 | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only - | ^^^^^^^^^ + --> $DIR/invalid-target.rs:258:67 + | +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | 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 +LL | uniform, position, descriptor_set = 0, binding = 0, flat, invariant, // param-only | ^^^^^^^^^ error: unconstrained opaque type - --> $DIR/invalid-target.rs:121:18 - | -121 | type _OpaqueTy = impl Copy; - | ^^^^^^^^^ - | - = note: `_OpaqueTy` must be used in combination with a concrete type within the same crate + --> $DIR/invalid-target.rs:121:18 + | +LL | 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 - | -121 | type _OpaqueTy = impl Copy; - | --------- the expected opaque type -122 | -123 | fn _opaque_ty_definer() -> _OpaqueTy { - | --------- expected `_OpaqueTy` because of return type -124 | () - | ^^ expected opaque type, found `()` - | - = note: expected opaque type `_OpaqueTy` - found unit type `()` + --> $DIR/invalid-target.rs:124:5 + | +LL | type _OpaqueTy = impl Copy; + | --------- the expected opaque type +LL | +LL | fn _opaque_ty_definer() -> _OpaqueTy { + | --------- expected `_OpaqueTy` because of return type +LL | () + | ^^ 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 - | -123 | fn _opaque_ty_definer() -> _OpaqueTy { - | ^^^^^^^^^^^^^^^^^^ + --> $DIR/invalid-target.rs:123:4 + | +LL | fn _opaque_ty_definer() -> _OpaqueTy { + | ^^^^^^^^^^^^^^^^^^ error: aborting due to 439 previous errors diff --git a/tests/compiletests/ui/spirv-attr/invariant-invalid.stderr b/tests/compiletests/ui/spirv-attr/invariant-invalid.stderr index 8db5f32424..f03d24d3e4 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:7:21 + | +LL | pub fn main(#[spirv(invariant)] input: f32) {} + | ^^^^^^^^^ error: aborting due to 1 previous error diff --git a/tests/compiletests/ui/spirv-attr/multiple.stderr b/tests/compiletests/ui/spirv-attr/multiple.stderr index 35811e8b7d..a5fc424dc2 100644 --- a/tests/compiletests/ui/spirv-attr/multiple.stderr +++ b/tests/compiletests/ui/spirv-attr/multiple.stderr @@ -1,211 +1,211 @@ error: only one intrinsic type attribute is allowed on a struct - --> $DIR/multiple.rs:8:18 - | -8 | #[spirv(sampler, sampler)] - | ^^^^^^^ - | + --> $DIR/multiple.rs:8:18 + | +LL | #[spirv(sampler, sampler)] + | ^^^^^^^ + | note: previous intrinsic type attribute - --> $DIR/multiple.rs:8:9 - | -8 | #[spirv(sampler, sampler)] - | ^^^^^^^ + --> $DIR/multiple.rs:8:9 + | +LL | #[spirv(sampler, sampler)] + | ^^^^^^^ error: only one intrinsic type attribute is allowed on a struct --> $DIR/multiple.rs:11:17 | -11 | #[spirv(matrix, matrix)] +LL | #[spirv(matrix, matrix)] | ^^^^^^ | note: previous intrinsic type attribute --> $DIR/multiple.rs:11:9 | -11 | #[spirv(matrix, matrix)] +LL | #[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)] +LL | #[spirv(sampler, generic_image_type)] | ^^^^^^^^^^^^^^^^^^ | note: previous intrinsic type attribute --> $DIR/multiple.rs:17:9 | -17 | #[spirv(sampler, generic_image_type)] +LL | #[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)] +LL | #[spirv(sampler, matrix)] | ^^^^^^ | note: previous intrinsic type attribute --> $DIR/multiple.rs:20:9 | -20 | #[spirv(sampler, matrix)] +LL | #[spirv(sampler, matrix)] | ^^^^^^^ error: only one #[spirv(block)] attribute is allowed on a struct --> $DIR/multiple.rs:26:16 | -26 | #[spirv(block, block)] +LL | #[spirv(block, block)] | ^^^^^ | note: previous #[spirv(block)] attribute --> $DIR/multiple.rs:26:9 | -26 | #[spirv(block, block)] +LL | #[spirv(block, block)] | ^^^^^ warning: #[spirv(block)] is no longer needed and should be removed --> $DIR/multiple.rs:26:9 | -26 | #[spirv(block, block)] +LL | #[spirv(block, block)] | ^^^^^ error: only one entry-point attribute is allowed on a function --> $DIR/multiple.rs:29:17 | -29 | #[spirv(vertex, vertex)] +LL | #[spirv(vertex, vertex)] | ^^^^^^ | note: previous entry-point attribute --> $DIR/multiple.rs:29:9 | -29 | #[spirv(vertex, vertex)] +LL | #[spirv(vertex, vertex)] | ^^^^^^ error: only one entry-point attribute is allowed on a function --> $DIR/multiple.rs:32:17 | -32 | #[spirv(vertex, fragment)] +LL | #[spirv(vertex, fragment)] | ^^^^^^^^ | note: previous entry-point attribute --> $DIR/multiple.rs:32:9 | -32 | #[spirv(vertex, fragment)] +LL | #[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: (), +LL | #[spirv(uniform, uniform)] _same_storage_class: (), | ^^^^^^^ | note: previous storage class attribute --> $DIR/multiple.rs:37:13 | -37 | #[spirv(uniform, uniform)] _same_storage_class: (), +LL | #[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: (), +LL | #[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: (), +LL | #[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: (), +LL | #[spirv(position, position)] _same_builtin: (), | ^^^^^^^^ | note: previous builtin attribute --> $DIR/multiple.rs:40:13 | -40 | #[spirv(position, position)] _same_builtin: (), +LL | #[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: (), +LL | #[spirv(position, vertex_index)] _diff_builtin: (), | ^^^^^^^^^^^^ | note: previous builtin attribute --> $DIR/multiple.rs:41:13 | -41 | #[spirv(position, vertex_index)] _diff_builtin: (), +LL | #[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: (), +LL | #[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: (), +LL | #[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: (), +LL | #[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: (), +LL | #[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: (), +LL | #[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: (), +LL | #[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: (), +LL | #[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: (), +LL | #[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: (), +LL | #[spirv(flat, flat)] _flat: (), | ^^^^ | note: previous #[spirv(flat)] attribute --> $DIR/multiple.rs:49:13 | -49 | #[spirv(flat, flat)] _flat: (), +LL | #[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: (), +LL | #[spirv(invariant, invariant)] _invariant: (), | ^^^^^^^^^ | note: previous #[spirv(invariant)] attribute --> $DIR/multiple.rs:51:13 | -51 | #[spirv(invariant, invariant)] _invariant: (), +LL | #[spirv(invariant, invariant)] _invariant: (), | ^^^^^^^^^ error: aborting due to 17 previous errors; 1 warning emitted diff --git a/tests/compiletests/ui/storage_class/mutability-errors.stderr b/tests/compiletests/ui/storage_class/mutability-errors.stderr index dc0a1c17dc..f975b46b74 100644 --- a/tests/compiletests/ui/storage_class/mutability-errors.stderr +++ b/tests/compiletests/ui/storage_class/mutability-errors.stderr @@ -1,79 +1,79 @@ 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, +LL | #[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, +LL | #[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, +LL | #[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, +LL | #[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, +LL | #[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, +LL | #[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, +LL | #[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, +LL | #[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, +LL | #[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, +LL | #[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, +LL | #[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, +LL | #[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, +LL | #[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.stderr b/tests/compiletests/ui/storage_class/runtime_descriptor_array_error.stderr index a3c0d1b0b6..d46fcdc9a8 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:7:52 + | +LL | #[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:8:61 + | +LL | #[spirv(uniform, descriptor_set = 0, binding = 0)] two: &RuntimeArray, + | ^^^^^^^^^^^^^^^^^^ error: aborting due to 1 previous error; 1 warning emitted