@@ -75,9 +75,9 @@ help: the return type of this call is `u32` due to the type of the argument pass
75
75
| |
76
76
| this argument influences the return type of `spirv_std`
77
77
note: function defined here
78
- --> $SPIRV_STD_SRC/lib.rs:135 :8
78
+ --> $SPIRV_STD_SRC/lib.rs:136 :8
79
79
|
80
- 135 | pub fn debug_printf_assert_is_type<T>(ty: T) -> T {
80
+ 136 | pub fn debug_printf_assert_is_type<T>(ty: T) -> T {
81
81
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
82
82
= note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info)
83
83
help: change the type of the numeric literal from `u32` to `f32`
@@ -102,9 +102,9 @@ help: the return type of this call is `f32` due to the type of the argument pass
102
102
| |
103
103
| this argument influences the return type of `spirv_std`
104
104
note: function defined here
105
- --> $SPIRV_STD_SRC/lib.rs:135 :8
105
+ --> $SPIRV_STD_SRC/lib.rs:136 :8
106
106
|
107
- 135 | pub fn debug_printf_assert_is_type<T>(ty: T) -> T {
107
+ 136 | pub fn debug_printf_assert_is_type<T>(ty: T) -> T {
108
108
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
109
109
= note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info)
110
110
help: change the type of the numeric literal from `f32` to `u32`
@@ -113,32 +113,30 @@ help: change the type of the numeric literal from `f32` to `u32`
113
113
| ~~~
114
114
115
115
error[E0277]: the trait bound `{float}: Vector<f32, 2>` is not satisfied
116
- --> $DIR/debug_printf_type_checking.rs:23:31
116
+ --> $DIR/debug_printf_type_checking.rs:23:9
117
117
|
118
118
23 | debug_printf!("%v2f", 11.0);
119
- | ----------------------^^^^-
120
- | | |
121
- | | the trait `Vector<f32, 2>` is not implemented for `{float}`
122
- | required by a bound introduced by this call
119
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Vector<f32, 2>` is not implemented for `{float}`
123
120
|
124
121
= help: the following other types implement trait `Vector<T, N>`:
122
+ <Vec2 as Vector<f32, 2>>
123
+ <Vec3 as Vector<f32, 3>>
124
+ <Vec3A as Vector<f32, 3>>
125
+ <Vec4 as Vector<f32, 4>>
125
126
<DVec2 as Vector<f64, 2>>
126
127
<DVec3 as Vector<f64, 3>>
127
128
<DVec4 as Vector<f64, 4>>
128
129
<IVec2 as Vector<i32, 2>>
129
- <IVec3 as Vector<i32, 3>>
130
- <IVec4 as Vector<i32, 4>>
131
- <UVec2 as Vector<u32, 2>>
132
- <UVec3 as Vector<u32, 3>>
133
130
and 5 others
134
131
note: required by a bound in `debug_printf_assert_is_vector`
135
- --> $SPIRV_STD_SRC/lib.rs:142 :8
132
+ --> $SPIRV_STD_SRC/lib.rs:143 :8
136
133
|
137
- 140 | pub fn debug_printf_assert_is_vector<
134
+ 141 | pub fn debug_printf_assert_is_vector<
138
135
| ----------------------------- required by a bound in this function
139
- 141 | TY: crate::scalar::Scalar,
140
- 142 | V: crate::vector::Vector<TY, SIZE>,
136
+ 142 | TY: crate::scalar::Scalar,
137
+ 143 | V: crate::vector::Vector<TY, SIZE>,
141
138
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `debug_printf_assert_is_vector`
139
+ = note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info)
142
140
143
141
error[E0308]: mismatched types
144
142
--> $DIR/debug_printf_type_checking.rs:24:29
@@ -157,9 +155,9 @@ help: the return type of this call is `Vec2` due to the type of the argument pas
157
155
| |
158
156
| this argument influences the return type of `spirv_std`
159
157
note: function defined here
160
- --> $SPIRV_STD_SRC/lib.rs:135 :8
158
+ --> $SPIRV_STD_SRC/lib.rs:136 :8
161
159
|
162
- 135 | pub fn debug_printf_assert_is_type<T>(ty: T) -> T {
160
+ 136 | pub fn debug_printf_assert_is_type<T>(ty: T) -> T {
163
161
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
164
162
= note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info)
165
163
0 commit comments