1
1
error: invalid reference to argument at index 0
2
- --> $DIR/bad-template.rs:27 :15
2
+ --> $DIR/bad-template.rs:30 :15
3
3
|
4
4
LL | asm!("{}");
5
5
| ^^ from here
6
6
|
7
7
= note: no arguments were given
8
8
9
9
error: invalid reference to argument at index 1
10
- --> $DIR/bad-template.rs:29 :15
10
+ --> $DIR/bad-template.rs:32 :15
11
11
|
12
12
LL | asm!("{1}", in(reg) foo);
13
13
| ^^^ from here
14
14
|
15
15
= note: there is 1 argument
16
16
17
17
error: argument never used
18
- --> $DIR/bad-template.rs:29 :21
18
+ --> $DIR/bad-template.rs:32 :21
19
19
|
20
20
LL | asm!("{1}", in(reg) foo);
21
21
| ^^^^^^^^^^^ argument never used
22
22
|
23
23
= help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {0} */"`
24
24
25
25
error: there is no argument named `a`
26
- --> $DIR/bad-template.rs:32 :16
26
+ --> $DIR/bad-template.rs:35 :16
27
27
|
28
28
LL | asm!("{a}");
29
29
| ^
30
30
31
31
error: invalid reference to argument at index 0
32
- --> $DIR/bad-template.rs:34 :15
32
+ --> $DIR/bad-template.rs:37 :15
33
33
|
34
34
LL | asm!("{}", a = in(reg) foo);
35
35
| ^^ --------------- named argument
@@ -38,37 +38,37 @@ LL | asm!("{}", a = in(reg) foo);
38
38
|
39
39
= note: no positional arguments were given
40
40
note: named arguments cannot be referenced by position
41
- --> $DIR/bad-template.rs:34 :20
41
+ --> $DIR/bad-template.rs:37 :20
42
42
|
43
43
LL | asm!("{}", a = in(reg) foo);
44
44
| ^^^^^^^^^^^^^^^
45
45
46
46
error: named argument never used
47
- --> $DIR/bad-template.rs:34 :20
47
+ --> $DIR/bad-template.rs:37 :20
48
48
|
49
49
LL | asm!("{}", a = in(reg) foo);
50
50
| ^^^^^^^^^^^^^^^ named argument never used
51
51
|
52
52
= help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {a} */"`
53
53
54
54
error: invalid reference to argument at index 1
55
- --> $DIR/bad-template.rs:37 :15
55
+ --> $DIR/bad-template.rs:40 :15
56
56
|
57
57
LL | asm!("{1}", a = in(reg) foo);
58
58
| ^^^ from here
59
59
|
60
60
= note: no positional arguments were given
61
61
62
62
error: named argument never used
63
- --> $DIR/bad-template.rs:37 :21
63
+ --> $DIR/bad-template.rs:40 :21
64
64
|
65
65
LL | asm!("{1}", a = in(reg) foo);
66
66
| ^^^^^^^^^^^^^^^ named argument never used
67
67
|
68
68
= help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {a} */"`
69
69
70
70
error: invalid reference to argument at index 0
71
- --> $DIR/bad-template.rs:44 :15
71
+ --> $DIR/bad-template.rs:47 :15
72
72
|
73
73
LL | asm!("{}", in("x0") foo);
74
74
| ^^ ------------ explicit register argument
@@ -77,24 +77,24 @@ LL | asm!("{}", in("x0") foo);
77
77
|
78
78
= note: no positional arguments were given
79
79
note: explicit register arguments cannot be used in the asm template
80
- --> $DIR/bad-template.rs:44 :20
80
+ --> $DIR/bad-template.rs:47 :20
81
81
|
82
82
LL | asm!("{}", in("x0") foo);
83
83
| ^^^^^^^^^^^^
84
84
help: use the register name directly in the assembly code
85
- --> $DIR/bad-template.rs:44 :20
85
+ --> $DIR/bad-template.rs:47 :20
86
86
|
87
87
LL | asm!("{}", in("x0") foo);
88
88
| ^^^^^^^^^^^^
89
89
90
90
error: asm template modifier must be a single character
91
- --> $DIR/bad-template.rs:46 :17
91
+ --> $DIR/bad-template.rs:49 :17
92
92
|
93
93
LL | asm!("{:foo}", in(reg) foo);
94
94
| ^^^
95
95
96
96
error: multiple unused asm arguments
97
- --> $DIR/bad-template.rs:49 :18
97
+ --> $DIR/bad-template.rs:52 :18
98
98
|
99
99
LL | asm!("", in(reg) 0, in(reg) 1);
100
100
| ^^^^^^^^^ ^^^^^^^^^ argument never used
@@ -104,37 +104,37 @@ LL | asm!("", in(reg) 0, in(reg) 1);
104
104
= help: if these arguments are intentionally unused, consider using them in an asm comment: `"/* {0} {1} */"`
105
105
106
106
error: invalid reference to argument at index 0
107
- --> $DIR/bad-template.rs:55 :14
107
+ --> $DIR/bad-template.rs:58 :14
108
108
|
109
109
LL | global_asm!("{}");
110
110
| ^^ from here
111
111
|
112
112
= note: no arguments were given
113
113
114
114
error: invalid reference to argument at index 1
115
- --> $DIR/bad-template.rs:57 :14
115
+ --> $DIR/bad-template.rs:60 :14
116
116
|
117
117
LL | global_asm!("{1}", const FOO);
118
118
| ^^^ from here
119
119
|
120
120
= note: there is 1 argument
121
121
122
122
error: argument never used
123
- --> $DIR/bad-template.rs:57 :20
123
+ --> $DIR/bad-template.rs:60 :20
124
124
|
125
125
LL | global_asm!("{1}", const FOO);
126
126
| ^^^^^^^^^ argument never used
127
127
|
128
128
= help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {0} */"`
129
129
130
130
error: there is no argument named `a`
131
- --> $DIR/bad-template.rs:60 :15
131
+ --> $DIR/bad-template.rs:63 :15
132
132
|
133
133
LL | global_asm!("{a}");
134
134
| ^
135
135
136
136
error: invalid reference to argument at index 0
137
- --> $DIR/bad-template.rs:62 :14
137
+ --> $DIR/bad-template.rs:65 :14
138
138
|
139
139
LL | global_asm!("{}", a = const FOO);
140
140
| ^^ ------------- named argument
@@ -143,43 +143,43 @@ LL | global_asm!("{}", a = const FOO);
143
143
|
144
144
= note: no positional arguments were given
145
145
note: named arguments cannot be referenced by position
146
- --> $DIR/bad-template.rs:62 :19
146
+ --> $DIR/bad-template.rs:65 :19
147
147
|
148
148
LL | global_asm!("{}", a = const FOO);
149
149
| ^^^^^^^^^^^^^
150
150
151
151
error: named argument never used
152
- --> $DIR/bad-template.rs:62 :19
152
+ --> $DIR/bad-template.rs:65 :19
153
153
|
154
154
LL | global_asm!("{}", a = const FOO);
155
155
| ^^^^^^^^^^^^^ named argument never used
156
156
|
157
157
= help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {a} */"`
158
158
159
159
error: invalid reference to argument at index 1
160
- --> $DIR/bad-template.rs:65 :14
160
+ --> $DIR/bad-template.rs:68 :14
161
161
|
162
162
LL | global_asm!("{1}", a = const FOO);
163
163
| ^^^ from here
164
164
|
165
165
= note: no positional arguments were given
166
166
167
167
error: named argument never used
168
- --> $DIR/bad-template.rs:65 :20
168
+ --> $DIR/bad-template.rs:68 :20
169
169
|
170
170
LL | global_asm!("{1}", a = const FOO);
171
171
| ^^^^^^^^^^^^^ named argument never used
172
172
|
173
173
= help: if this argument is intentionally unused, consider using it in an asm comment: `"/* {a} */"`
174
174
175
175
error: asm template modifier must be a single character
176
- --> $DIR/bad-template.rs:68 :16
176
+ --> $DIR/bad-template.rs:71 :16
177
177
|
178
178
LL | global_asm!("{:foo}", const FOO);
179
179
| ^^^
180
180
181
181
error: multiple unused asm arguments
182
- --> $DIR/bad-template.rs:70 :17
182
+ --> $DIR/bad-template.rs:73 :17
183
183
|
184
184
LL | global_asm!("", const FOO, const FOO);
185
185
| ^^^^^^^^^ ^^^^^^^^^ argument never used
@@ -189,7 +189,7 @@ LL | global_asm!("", const FOO, const FOO);
189
189
= help: if these arguments are intentionally unused, consider using them in an asm comment: `"/* {0} {1} */"`
190
190
191
191
warning: formatting may not be suitable for sub-register argument
192
- --> $DIR/bad-template.rs:46 :15
192
+ --> $DIR/bad-template.rs:49 :15
193
193
|
194
194
LL | asm!("{:foo}", in(reg) foo);
195
195
| ^^^^^^ --- for this argument
0 commit comments