11error: invalid reference to argument at index 0
2- --> $DIR/bad-template.rs:30 :15
2+ --> $DIR/bad-template.rs:19 :15
33 |
44LL | asm!("{}");
55 | ^^ from here
66 |
77 = note: no arguments were given
88
99error: invalid reference to argument at index 1
10- --> $DIR/bad-template.rs:32 :15
10+ --> $DIR/bad-template.rs:21 :15
1111 |
1212LL | asm!("{1}", in(reg) foo);
1313 | ^^^ from here
1414 |
1515 = note: there is 1 argument
1616
1717error: argument never used
18- --> $DIR/bad-template.rs:32 :21
18+ --> $DIR/bad-template.rs:21 :21
1919 |
2020LL | asm!("{1}", in(reg) foo);
2121 | ^^^^^^^^^^^ argument never used
2222 |
2323 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {0} */"`
2424
2525error: there is no argument named `a`
26- --> $DIR/bad-template.rs:35 :16
26+ --> $DIR/bad-template.rs:24 :16
2727 |
2828LL | asm!("{a}");
2929 | ^
3030
3131error: invalid reference to argument at index 0
32- --> $DIR/bad-template.rs:37 :15
32+ --> $DIR/bad-template.rs:26 :15
3333 |
3434LL | asm!("{}", a = in(reg) foo);
3535 | ^^ --------------- named argument
@@ -38,37 +38,37 @@ LL | asm!("{}", a = in(reg) foo);
3838 |
3939 = note: no positional arguments were given
4040note: named arguments cannot be referenced by position
41- --> $DIR/bad-template.rs:37 :20
41+ --> $DIR/bad-template.rs:26 :20
4242 |
4343LL | asm!("{}", a = in(reg) foo);
4444 | ^^^^^^^^^^^^^^^
4545
4646error: named argument never used
47- --> $DIR/bad-template.rs:37 :20
47+ --> $DIR/bad-template.rs:26 :20
4848 |
4949LL | asm!("{}", a = in(reg) foo);
5050 | ^^^^^^^^^^^^^^^ named argument never used
5151 |
5252 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {a} */"`
5353
5454error: invalid reference to argument at index 1
55- --> $DIR/bad-template.rs:40 :15
55+ --> $DIR/bad-template.rs:29 :15
5656 |
5757LL | asm!("{1}", a = in(reg) foo);
5858 | ^^^ from here
5959 |
6060 = note: no positional arguments were given
6161
6262error: named argument never used
63- --> $DIR/bad-template.rs:40 :21
63+ --> $DIR/bad-template.rs:29 :21
6464 |
6565LL | asm!("{1}", a = in(reg) foo);
6666 | ^^^^^^^^^^^^^^^ named argument never used
6767 |
6868 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {a} */"`
6969
7070error: invalid reference to argument at index 0
71- --> $DIR/bad-template.rs:47 :15
71+ --> $DIR/bad-template.rs:36 :15
7272 |
7373LL | asm!("{}", in("x0") foo);
7474 | ^^ ------------ explicit register argument
@@ -77,24 +77,24 @@ LL | asm!("{}", in("x0") foo);
7777 |
7878 = note: no positional arguments were given
7979note: explicit register arguments cannot be used in the asm template
80- --> $DIR/bad-template.rs:47 :20
80+ --> $DIR/bad-template.rs:36 :20
8181 |
8282LL | asm!("{}", in("x0") foo);
8383 | ^^^^^^^^^^^^
8484help: use the register name directly in the assembly code
85- --> $DIR/bad-template.rs:47 :20
85+ --> $DIR/bad-template.rs:36 :20
8686 |
8787LL | asm!("{}", in("x0") foo);
8888 | ^^^^^^^^^^^^
8989
9090error: asm template modifier must be a single character
91- --> $DIR/bad-template.rs:49 :17
91+ --> $DIR/bad-template.rs:38 :17
9292 |
9393LL | asm!("{:foo}", in(reg) foo);
9494 | ^^^
9595
9696error: multiple unused asm arguments
97- --> $DIR/bad-template.rs:52 :18
97+ --> $DIR/bad-template.rs:41 :18
9898 |
9999LL | asm!("", in(reg) 0, in(reg) 1);
100100 | ^^^^^^^^^ ^^^^^^^^^ argument never used
@@ -104,37 +104,37 @@ LL | asm!("", in(reg) 0, in(reg) 1);
104104 = help: if these arguments are intentionally unused, consider using them in an asm comment: `"/* {0} {1} */"`
105105
106106error: invalid reference to argument at index 0
107- --> $DIR/bad-template.rs:58 :14
107+ --> $DIR/bad-template.rs:47 :14
108108 |
109109LL | global_asm!("{}");
110110 | ^^ from here
111111 |
112112 = note: no arguments were given
113113
114114error: invalid reference to argument at index 1
115- --> $DIR/bad-template.rs:60 :14
115+ --> $DIR/bad-template.rs:49 :14
116116 |
117117LL | global_asm!("{1}", const FOO);
118118 | ^^^ from here
119119 |
120120 = note: there is 1 argument
121121
122122error: argument never used
123- --> $DIR/bad-template.rs:60 :20
123+ --> $DIR/bad-template.rs:49 :20
124124 |
125125LL | global_asm!("{1}", const FOO);
126126 | ^^^^^^^^^ argument never used
127127 |
128128 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {0} */"`
129129
130130error: there is no argument named `a`
131- --> $DIR/bad-template.rs:63 :15
131+ --> $DIR/bad-template.rs:52 :15
132132 |
133133LL | global_asm!("{a}");
134134 | ^
135135
136136error: invalid reference to argument at index 0
137- --> $DIR/bad-template.rs:65 :14
137+ --> $DIR/bad-template.rs:54 :14
138138 |
139139LL | global_asm!("{}", a = const FOO);
140140 | ^^ ------------- named argument
@@ -143,43 +143,43 @@ LL | global_asm!("{}", a = const FOO);
143143 |
144144 = note: no positional arguments were given
145145note: named arguments cannot be referenced by position
146- --> $DIR/bad-template.rs:65 :19
146+ --> $DIR/bad-template.rs:54 :19
147147 |
148148LL | global_asm!("{}", a = const FOO);
149149 | ^^^^^^^^^^^^^
150150
151151error: named argument never used
152- --> $DIR/bad-template.rs:65 :19
152+ --> $DIR/bad-template.rs:54 :19
153153 |
154154LL | global_asm!("{}", a = const FOO);
155155 | ^^^^^^^^^^^^^ named argument never used
156156 |
157157 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {a} */"`
158158
159159error: invalid reference to argument at index 1
160- --> $DIR/bad-template.rs:68 :14
160+ --> $DIR/bad-template.rs:57 :14
161161 |
162162LL | global_asm!("{1}", a = const FOO);
163163 | ^^^ from here
164164 |
165165 = note: no positional arguments were given
166166
167167error: named argument never used
168- --> $DIR/bad-template.rs:68 :20
168+ --> $DIR/bad-template.rs:57 :20
169169 |
170170LL | global_asm!("{1}", a = const FOO);
171171 | ^^^^^^^^^^^^^ named argument never used
172172 |
173173 = help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {a} */"`
174174
175175error: asm template modifier must be a single character
176- --> $DIR/bad-template.rs:71 :16
176+ --> $DIR/bad-template.rs:60 :16
177177 |
178178LL | global_asm!("{:foo}", const FOO);
179179 | ^^^
180180
181181error: multiple unused asm arguments
182- --> $DIR/bad-template.rs:73 :17
182+ --> $DIR/bad-template.rs:62 :17
183183 |
184184LL | global_asm!("", const FOO, const FOO);
185185 | ^^^^^^^^^ ^^^^^^^^^ argument never used
@@ -189,7 +189,7 @@ LL | global_asm!("", const FOO, const FOO);
189189 = help: if these arguments are intentionally unused, consider using them in an asm comment: `"/* {0} {1} */"`
190190
191191warning: formatting may not be suitable for sub-register argument
192- --> $DIR/bad-template.rs:49 :15
192+ --> $DIR/bad-template.rs:38 :15
193193 |
194194LL | asm!("{:foo}", in(reg) foo);
195195 | ^^^^^^ --- for this argument
0 commit comments