|
1 | 1 | error: Unterminated format specifier: missing type after precision |
2 | 2 | --> $DIR/debug_printf_type_checking.rs:11:23 |
3 | 3 | | |
4 | | -11 | debug_printf!("%1"); |
| 4 | +LL | debug_printf!("%1"); |
5 | 5 | | ^^^^ |
6 | 6 |
|
7 | 7 | error: Unterminated format specifier: missing type after decimal point |
8 | 8 | --> $DIR/debug_printf_type_checking.rs:12:23 |
9 | 9 | | |
10 | | -12 | debug_printf!("%1."); |
| 10 | +LL | debug_printf!("%1."); |
11 | 11 | | ^^^^^ |
12 | 12 |
|
13 | 13 | error: Unrecognised format specifier: '.' |
14 | 14 | --> $DIR/debug_printf_type_checking.rs:13:23 |
15 | 15 | | |
16 | | -13 | debug_printf!("%."); |
| 16 | +LL | debug_printf!("%."); |
17 | 17 | | ^^^^ |
18 | 18 |
|
19 | 19 | error: Unrecognised format specifier: '.' |
20 | 20 | --> $DIR/debug_printf_type_checking.rs:14:23 |
21 | 21 | | |
22 | | -14 | debug_printf!("%.1"); |
| 22 | +LL | debug_printf!("%.1"); |
23 | 23 | | ^^^^^ |
24 | 24 |
|
25 | 25 | error: Unterminated format specifier: missing type after fraction precision |
26 | 26 | --> $DIR/debug_printf_type_checking.rs:15:23 |
27 | 27 | | |
28 | | -15 | debug_printf!("%1.1"); |
| 28 | +LL | debug_printf!("%1.1"); |
29 | 29 | | ^^^^^^ |
30 | 30 |
|
31 | 31 | error: Missing vector dimensions specifier |
32 | 32 | --> $DIR/debug_printf_type_checking.rs:16:23 |
33 | 33 | | |
34 | | -16 | debug_printf!("%1.1v"); |
| 34 | +LL | debug_printf!("%1.1v"); |
35 | 35 | | ^^^^^^^ |
36 | 36 |
|
37 | 37 | error: Invalid width for vector: 5 |
38 | 38 | --> $DIR/debug_printf_type_checking.rs:17:23 |
39 | 39 | | |
40 | | -17 | debug_printf!("%1.1v5"); |
| 40 | +LL | debug_printf!("%1.1v5"); |
41 | 41 | | ^^^^^^^^ |
42 | 42 |
|
43 | 43 | error: Missing vector type specifier |
44 | 44 | --> $DIR/debug_printf_type_checking.rs:18:23 |
45 | 45 | | |
46 | | -18 | debug_printf!("%1.1v2"); |
| 46 | +LL | debug_printf!("%1.1v2"); |
47 | 47 | | ^^^^^^^^ |
48 | 48 |
|
49 | 49 | error: Unrecognised vector type specifier: 'r' |
50 | 50 | --> $DIR/debug_printf_type_checking.rs:19:23 |
51 | 51 | | |
52 | | -19 | debug_printf!("%1.1v2r"); |
| 52 | +LL | debug_printf!("%1.1v2r"); |
53 | 53 | | ^^^^^^^^^ |
54 | 54 |
|
55 | 55 | error: Unrecognised format specifier: 'r' |
56 | 56 | --> $DIR/debug_printf_type_checking.rs:20:23 |
57 | 57 | | |
58 | | -20 | debug_printf!("%r", 11_i32); |
| 58 | +LL | debug_printf!("%r", 11_i32); |
59 | 59 | | ^^^^ |
60 | 60 |
|
61 | 61 | error[E0308]: mismatched types |
62 | | - --> $DIR/debug_printf_type_checking.rs:21:29 |
63 | | - | |
64 | | -21 | debug_printf!("%f", 11_u32); |
65 | | - | --------------------^^^^^^- |
66 | | - | | | |
67 | | - | | expected `f32`, found `u32` |
68 | | - | arguments to this function are incorrect |
69 | | - | |
| 62 | + --> $DIR/debug_printf_type_checking.rs:21:29 |
| 63 | + | |
| 64 | +LL | debug_printf!("%f", 11_u32); |
| 65 | + | --------------------^^^^^^- |
| 66 | + | | | |
| 67 | + | | expected `f32`, found `u32` |
| 68 | + | arguments to this function are incorrect |
| 69 | + | |
70 | 70 | help: the return type of this call is `u32` due to the type of the argument passed |
71 | | - --> $DIR/debug_printf_type_checking.rs:21:9 |
72 | | - | |
73 | | -21 | debug_printf!("%f", 11_u32); |
74 | | - | ^^^^^^^^^^^^^^^^^^^^------^ |
75 | | - | | |
76 | | - | this argument influences the return type of `debug_printf_assert_is_type` |
| 71 | + --> $DIR/debug_printf_type_checking.rs:21:9 |
| 72 | + | |
| 73 | +LL | debug_printf!("%f", 11_u32); |
| 74 | + | ^^^^^^^^^^^^^^^^^^^^------^ |
| 75 | + | | |
| 76 | + | this argument influences the return type of `debug_printf_assert_is_type` |
77 | 77 | note: function defined here |
78 | | - --> $SPIRV_STD_SRC/lib.rs:134:8 |
79 | | - | |
80 | | -134 | pub fn debug_printf_assert_is_type<T>(ty: T) -> T { |
81 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
82 | | - = note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 78 | + --> $SPIRV_STD_SRC/lib.rs:134:8 |
| 79 | + | |
| 80 | +LL | pub fn debug_printf_assert_is_type<T>(ty: T) -> T { |
| 81 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 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` |
84 | | - | |
85 | | -21 - debug_printf!("%f", 11_u32); |
86 | | -21 + debug_printf!("%f", 11_f32); |
87 | | - | |
| 84 | + | |
| 85 | +LL - debug_printf!("%f", 11_u32); |
| 86 | +LL + debug_printf!("%f", 11_f32); |
| 87 | + | |
88 | 88 |
|
89 | 89 | error[E0308]: mismatched types |
90 | | - --> $DIR/debug_printf_type_checking.rs:22:29 |
91 | | - | |
92 | | -22 | debug_printf!("%u", 11.0_f32); |
93 | | - | --------------------^^^^^^^^- |
94 | | - | | | |
95 | | - | | expected `u32`, found `f32` |
96 | | - | arguments to this function are incorrect |
97 | | - | |
| 90 | + --> $DIR/debug_printf_type_checking.rs:22:29 |
| 91 | + | |
| 92 | +LL | debug_printf!("%u", 11.0_f32); |
| 93 | + | --------------------^^^^^^^^- |
| 94 | + | | | |
| 95 | + | | expected `u32`, found `f32` |
| 96 | + | arguments to this function are incorrect |
| 97 | + | |
98 | 98 | help: the return type of this call is `f32` due to the type of the argument passed |
99 | | - --> $DIR/debug_printf_type_checking.rs:22:9 |
100 | | - | |
101 | | -22 | debug_printf!("%u", 11.0_f32); |
102 | | - | ^^^^^^^^^^^^^^^^^^^^--------^ |
103 | | - | | |
104 | | - | this argument influences the return type of `debug_printf_assert_is_type` |
| 99 | + --> $DIR/debug_printf_type_checking.rs:22:9 |
| 100 | + | |
| 101 | +LL | debug_printf!("%u", 11.0_f32); |
| 102 | + | ^^^^^^^^^^^^^^^^^^^^--------^ |
| 103 | + | | |
| 104 | + | this argument influences the return type of `debug_printf_assert_is_type` |
105 | 105 | note: function defined here |
106 | | - --> $SPIRV_STD_SRC/lib.rs:134:8 |
107 | | - | |
108 | | -134 | pub fn debug_printf_assert_is_type<T>(ty: T) -> T { |
109 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
110 | | - = note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 106 | + --> $SPIRV_STD_SRC/lib.rs:134:8 |
| 107 | + | |
| 108 | +LL | pub fn debug_printf_assert_is_type<T>(ty: T) -> T { |
| 109 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 110 | + = note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info) |
111 | 111 | help: change the type of the numeric literal from `f32` to `u32` |
112 | | - | |
113 | | -22 - debug_printf!("%u", 11.0_f32); |
114 | | -22 + debug_printf!("%u", 11u32); |
115 | | - | |
| 112 | + | |
| 113 | +LL - debug_printf!("%u", 11.0_f32); |
| 114 | +LL + debug_printf!("%u", 11u32); |
| 115 | + | |
116 | 116 |
|
117 | 117 | error[E0277]: the trait bound `{float}: Vector<f32, 2>` is not satisfied |
118 | | - --> $DIR/debug_printf_type_checking.rs:23:9 |
119 | | - | |
120 | | -23 | debug_printf!("%v2f", 11.0); |
121 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Vector<f32, 2>` is not implemented for `{float}` |
122 | | - | |
123 | | - = help: the following other types implement trait `Vector<T, N>`: |
124 | | - `BVec2` implements `Vector<bool, 2>` |
125 | | - `BVec3` implements `Vector<bool, 3>` |
126 | | - `BVec4` implements `Vector<bool, 4>` |
127 | | - `DVec2` implements `Vector<f64, 2>` |
128 | | - `DVec3` implements `Vector<f64, 3>` |
129 | | - `DVec4` implements `Vector<f64, 4>` |
130 | | - `IVec2` implements `Vector<i32, 2>` |
131 | | - `IVec3` implements `Vector<i32, 3>` |
132 | | - and 8 others |
| 118 | + --> $DIR/debug_printf_type_checking.rs:23:9 |
| 119 | + | |
| 120 | +LL | debug_printf!("%v2f", 11.0); |
| 121 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Vector<f32, 2>` is not implemented for `{float}` |
| 122 | + | |
| 123 | + = help: the following other types implement trait `Vector<T, N>`: |
| 124 | + `BVec2` implements `Vector<bool, 2>` |
| 125 | + `BVec3` implements `Vector<bool, 3>` |
| 126 | + `BVec4` implements `Vector<bool, 4>` |
| 127 | + `DVec2` implements `Vector<f64, 2>` |
| 128 | + `DVec3` implements `Vector<f64, 3>` |
| 129 | + `DVec4` implements `Vector<f64, 4>` |
| 130 | + `IVec2` implements `Vector<i32, 2>` |
| 131 | + `IVec3` implements `Vector<i32, 3>` |
| 132 | + and 8 others |
133 | 133 | note: required by a bound in `debug_printf_assert_is_vector` |
134 | | - --> $SPIRV_STD_SRC/lib.rs:141:8 |
135 | | - | |
136 | | -139 | pub fn debug_printf_assert_is_vector< |
137 | | - | ----------------------------- required by a bound in this function |
138 | | -140 | TY: crate::scalar::Scalar, |
139 | | -141 | V: crate::vector::Vector<TY, SIZE>, |
140 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `debug_printf_assert_is_vector` |
141 | | - = note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 134 | + --> $SPIRV_STD_SRC/lib.rs:141:8 |
| 135 | + | |
| 136 | +LL | pub fn debug_printf_assert_is_vector< |
| 137 | + | ----------------------------- required by a bound in this function |
| 138 | +LL | TY: crate::scalar::Scalar, |
| 139 | +LL | V: crate::vector::Vector<TY, SIZE>, |
| 140 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `debug_printf_assert_is_vector` |
| 141 | + = note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info) |
142 | 142 |
|
143 | 143 | error[E0308]: mismatched types |
144 | | - --> $DIR/debug_printf_type_checking.rs:24:29 |
145 | | - | |
146 | | -24 | debug_printf!("%f", Vec2::splat(33.3)); |
147 | | - | --------------------^^^^^^^^^^^^^^^^^- |
148 | | - | | | |
149 | | - | | expected `f32`, found `Vec2` |
150 | | - | arguments to this function are incorrect |
151 | | - | |
| 144 | + --> $DIR/debug_printf_type_checking.rs:24:29 |
| 145 | + | |
| 146 | +LL | debug_printf!("%f", Vec2::splat(33.3)); |
| 147 | + | --------------------^^^^^^^^^^^^^^^^^- |
| 148 | + | | | |
| 149 | + | | expected `f32`, found `Vec2` |
| 150 | + | arguments to this function are incorrect |
| 151 | + | |
152 | 152 | help: the return type of this call is `Vec2` due to the type of the argument passed |
153 | | - --> $DIR/debug_printf_type_checking.rs:24:9 |
154 | | - | |
155 | | -24 | debug_printf!("%f", Vec2::splat(33.3)); |
156 | | - | ^^^^^^^^^^^^^^^^^^^^-----------------^ |
157 | | - | | |
158 | | - | this argument influences the return type of `debug_printf_assert_is_type` |
| 153 | + --> $DIR/debug_printf_type_checking.rs:24:9 |
| 154 | + | |
| 155 | +LL | debug_printf!("%f", Vec2::splat(33.3)); |
| 156 | + | ^^^^^^^^^^^^^^^^^^^^-----------------^ |
| 157 | + | | |
| 158 | + | this argument influences the return type of `debug_printf_assert_is_type` |
159 | 159 | note: function defined here |
160 | | - --> $SPIRV_STD_SRC/lib.rs:134:8 |
161 | | - | |
162 | | -134 | pub fn debug_printf_assert_is_type<T>(ty: T) -> T { |
163 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
164 | | - = note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 160 | + --> $SPIRV_STD_SRC/lib.rs:134:8 |
| 161 | + | |
| 162 | +LL | pub fn debug_printf_assert_is_type<T>(ty: T) -> T { |
| 163 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 164 | + = note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info) |
165 | 165 |
|
166 | 166 | error: aborting due to 14 previous errors |
167 | 167 |
|
|
0 commit comments