11error: Unterminated format specifier: missing type after precision
2- --> $DIR/debug_printf_type_checking.rs:11 :23
2+ --> $DIR/debug_printf_type_checking.rs:12 :23
33 |
4- 11 | debug_printf!("%1");
4+ 12 | debug_printf!("%1");
55 | ^^^^
66
77error: Unterminated format specifier: missing type after decimal point
8- --> $DIR/debug_printf_type_checking.rs:12 :23
8+ --> $DIR/debug_printf_type_checking.rs:13 :23
99 |
10- 12 | debug_printf!("%1.");
10+ 13 | debug_printf!("%1.");
1111 | ^^^^^
1212
1313error: Unrecognised format specifier: '.'
14- --> $DIR/debug_printf_type_checking.rs:13 :23
14+ --> $DIR/debug_printf_type_checking.rs:14 :23
1515 |
16- 13 | debug_printf!("%.");
16+ 14 | debug_printf!("%.");
1717 | ^^^^
1818
1919error: Unrecognised format specifier: '.'
20- --> $DIR/debug_printf_type_checking.rs:14 :23
20+ --> $DIR/debug_printf_type_checking.rs:15 :23
2121 |
22- 14 | debug_printf!("%.1");
22+ 15 | debug_printf!("%.1");
2323 | ^^^^^
2424
2525error: Unterminated format specifier: missing type after fraction precision
26- --> $DIR/debug_printf_type_checking.rs:15 :23
26+ --> $DIR/debug_printf_type_checking.rs:16 :23
2727 |
28- 15 | debug_printf!("%1.1");
28+ 16 | debug_printf!("%1.1");
2929 | ^^^^^^
3030
3131error: Missing vector dimensions specifier
32- --> $DIR/debug_printf_type_checking.rs:16 :23
32+ --> $DIR/debug_printf_type_checking.rs:17 :23
3333 |
34- 16 | debug_printf!("%1.1v");
34+ 17 | debug_printf!("%1.1v");
3535 | ^^^^^^^
3636
3737error: Invalid width for vector: 5
38- --> $DIR/debug_printf_type_checking.rs:17 :23
38+ --> $DIR/debug_printf_type_checking.rs:18 :23
3939 |
40- 17 | debug_printf!("%1.1v5");
40+ 18 | debug_printf!("%1.1v5");
4141 | ^^^^^^^^
4242
4343error: Missing vector type specifier
44- --> $DIR/debug_printf_type_checking.rs:18 :23
44+ --> $DIR/debug_printf_type_checking.rs:19 :23
4545 |
46- 18 | debug_printf!("%1.1v2");
46+ 19 | debug_printf!("%1.1v2");
4747 | ^^^^^^^^
4848
4949error: Unrecognised vector type specifier: 'r'
50- --> $DIR/debug_printf_type_checking.rs:19 :23
50+ --> $DIR/debug_printf_type_checking.rs:20 :23
5151 |
52- 19 | debug_printf!("%1.1v2r");
52+ 20 | debug_printf!("%1.1v2r");
5353 | ^^^^^^^^^
5454
5555error: Unrecognised format specifier: 'r'
56- --> $DIR/debug_printf_type_checking.rs:20 :23
56+ --> $DIR/debug_printf_type_checking.rs:21 :23
5757 |
58- 20 | debug_printf!("%r", 11_i32);
58+ 21 | debug_printf!("%r", 11_i32);
5959 | ^^^^
6060
6161error[E0308]: mismatched types
62- --> $DIR/debug_printf_type_checking.rs:21 :29
62+ --> $DIR/debug_printf_type_checking.rs:22 :29
6363 |
64- 21 | debug_printf!("%f", 11_u32);
64+ 22 | debug_printf!("%f", 11_u32);
6565 | --------------------^^^^^^-
6666 | | |
6767 | | expected `f32`, found `u32`
6868 | arguments to this function are incorrect
6969 |
7070help: 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
71+ --> $DIR/debug_printf_type_checking.rs:22 :9
7272 |
73- 21 | debug_printf!("%f", 11_u32);
73+ 22 | debug_printf!("%f", 11_u32);
7474 | ^^^^^^^^^^^^^^^^^^^^------^
7575 | |
7676 | this argument influences the return type of `spirv_std`
@@ -82,22 +82,22 @@ note: function defined here
8282 = note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info)
8383help: change the type of the numeric literal from `u32` to `f32`
8484 |
85- 21 | debug_printf!("%f", 11_f32);
85+ 22 | debug_printf!("%f", 11_f32);
8686 | ~~~
8787
8888error[E0308]: mismatched types
89- --> $DIR/debug_printf_type_checking.rs:22 :29
89+ --> $DIR/debug_printf_type_checking.rs:23 :29
9090 |
91- 22 | debug_printf!("%u", 11.0_f32);
91+ 23 | debug_printf!("%u", 11.0_f32);
9292 | --------------------^^^^^^^^-
9393 | | |
9494 | | expected `u32`, found `f32`
9595 | arguments to this function are incorrect
9696 |
9797help: the return type of this call is `f32` due to the type of the argument passed
98- --> $DIR/debug_printf_type_checking.rs:22 :9
98+ --> $DIR/debug_printf_type_checking.rs:23 :9
9999 |
100- 22 | debug_printf!("%u", 11.0_f32);
100+ 23 | debug_printf!("%u", 11.0_f32);
101101 | ^^^^^^^^^^^^^^^^^^^^--------^
102102 | |
103103 | this argument influences the return type of `spirv_std`
@@ -109,13 +109,13 @@ note: function defined here
109109 = note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info)
110110help: change the type of the numeric literal from `f32` to `u32`
111111 |
112- 22 | debug_printf!("%u", 11u32);
112+ 23 | debug_printf!("%u", 11u32);
113113 | ~~~
114114
115115error[E0277]: the trait bound `{float}: Vector<f32, 2>` is not satisfied
116- --> $DIR/debug_printf_type_checking.rs:23 :9
116+ --> $DIR/debug_printf_type_checking.rs:24 :9
117117 |
118- 23 | debug_printf!("%v2f", 11.0);
118+ 24 | debug_printf!("%v2f", 11.0);
119119 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Vector<f32, 2>` is not implemented for `{float}`
120120 |
121121 = help: the following other types implement trait `Vector<T, N>`:
@@ -139,18 +139,18 @@ note: required by a bound in `debug_printf_assert_is_vector`
139139 = note: this error originates in the macro `debug_printf` (in Nightly builds, run with -Z macro-backtrace for more info)
140140
141141error[E0308]: mismatched types
142- --> $DIR/debug_printf_type_checking.rs:24 :29
142+ --> $DIR/debug_printf_type_checking.rs:25 :29
143143 |
144- 24 | debug_printf!("%f", Vec2::splat(33.3));
144+ 25 | debug_printf!("%f", Vec2::splat(33.3));
145145 | --------------------^^^^^^^^^^^^^^^^^-
146146 | | |
147147 | | expected `f32`, found `Vec2`
148148 | arguments to this function are incorrect
149149 |
150150help: the return type of this call is `Vec2` due to the type of the argument passed
151- --> $DIR/debug_printf_type_checking.rs:24 :9
151+ --> $DIR/debug_printf_type_checking.rs:25 :9
152152 |
153- 24 | debug_printf!("%f", Vec2::splat(33.3));
153+ 25 | debug_printf!("%f", Vec2::splat(33.3));
154154 | ^^^^^^^^^^^^^^^^^^^^-----------------^
155155 | |
156156 | this argument influences the return type of `spirv_std`
0 commit comments