Skip to content

Commit 7f9e5e0

Browse files
committed
Remove revisions for THIR unsafeck
This is to make the diff when stabilizing it easier to review.
1 parent 61a3eea commit 7f9e5e0

File tree

266 files changed

+649
-4653
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

266 files changed

+649
-4653
lines changed

tests/ui/asm/aarch64/const.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// only-aarch64
22
// run-pass
33
// needs-asm-support
4-
// revisions: mirunsafeck thirunsafeck
5-
// [thirunsafeck]compile-flags: -Z thir-unsafeck
64

75
#![feature(asm_const)]
86

tests/ui/asm/bad-arch.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// compile-flags: --target sparc-unknown-linux-gnu
22
// needs-llvm-components: sparc
3-
// revisions: mirunsafeck thirunsafeck
4-
// [thirunsafeck]compile-flags: -Z thir-unsafeck
53

64
#![feature(no_core, lang_items, rustc_attrs)]
75
#![no_core]

tests/ui/asm/bad-arch.mirunsafeck.stderr renamed to tests/ui/asm/bad-arch.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0472]: inline assembly is unsupported on this target
2-
--> $DIR/bad-arch.rs:22:9
2+
--> $DIR/bad-arch.rs:20:9
33
|
44
LL | asm!("");
55
| ^^^^^^^^
66

77
error[E0472]: inline assembly is unsupported on this target
8-
--> $DIR/bad-arch.rs:27:1
8+
--> $DIR/bad-arch.rs:25:1
99
|
1010
LL | global_asm!("");
1111
| ^^^^^^^^^^^^^^^

tests/ui/asm/bad-arch.thirunsafeck.stderr

-17
This file was deleted.

tests/ui/asm/bad-template.aarch64_mirunsafeck.stderr renamed to tests/ui/asm/bad-template.aarch64.stderr

+26-26
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
error: invalid reference to argument at index 0
2-
--> $DIR/bad-template.rs:31:15
2+
--> $DIR/bad-template.rs:27:15
33
|
44
LL | asm!("{}");
55
| ^^ from here
66
|
77
= note: no arguments were given
88

99
error: invalid reference to argument at index 1
10-
--> $DIR/bad-template.rs:33:15
10+
--> $DIR/bad-template.rs:29:15
1111
|
1212
LL | asm!("{1}", in(reg) foo);
1313
| ^^^ from here
1414
|
1515
= note: there is 1 argument
1616

1717
error: argument never used
18-
--> $DIR/bad-template.rs:33:21
18+
--> $DIR/bad-template.rs:29:21
1919
|
2020
LL | 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

2525
error: there is no argument named `a`
26-
--> $DIR/bad-template.rs:36:16
26+
--> $DIR/bad-template.rs:32:16
2727
|
2828
LL | asm!("{a}");
2929
| ^
3030

3131
error: invalid reference to argument at index 0
32-
--> $DIR/bad-template.rs:38:15
32+
--> $DIR/bad-template.rs:34:15
3333
|
3434
LL | 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
4040
note: named arguments cannot be referenced by position
41-
--> $DIR/bad-template.rs:38:20
41+
--> $DIR/bad-template.rs:34:20
4242
|
4343
LL | asm!("{}", a = in(reg) foo);
4444
| ^^^^^^^^^^^^^^^
4545

4646
error: named argument never used
47-
--> $DIR/bad-template.rs:38:20
47+
--> $DIR/bad-template.rs:34:20
4848
|
4949
LL | 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

5454
error: invalid reference to argument at index 1
55-
--> $DIR/bad-template.rs:41:15
55+
--> $DIR/bad-template.rs:37:15
5656
|
5757
LL | asm!("{1}", a = in(reg) foo);
5858
| ^^^ from here
5959
|
6060
= note: no positional arguments were given
6161

6262
error: named argument never used
63-
--> $DIR/bad-template.rs:41:21
63+
--> $DIR/bad-template.rs:37:21
6464
|
6565
LL | 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

7070
error: invalid reference to argument at index 0
71-
--> $DIR/bad-template.rs:48:15
71+
--> $DIR/bad-template.rs:44:15
7272
|
7373
LL | 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
7979
note: explicit register arguments cannot be used in the asm template
80-
--> $DIR/bad-template.rs:48:20
80+
--> $DIR/bad-template.rs:44:20
8181
|
8282
LL | asm!("{}", in("x0") foo);
8383
| ^^^^^^^^^^^^
8484
help: use the register name directly in the assembly code
85-
--> $DIR/bad-template.rs:48:20
85+
--> $DIR/bad-template.rs:44:20
8686
|
8787
LL | asm!("{}", in("x0") foo);
8888
| ^^^^^^^^^^^^
8989

9090
error: asm template modifier must be a single character
91-
--> $DIR/bad-template.rs:50:17
91+
--> $DIR/bad-template.rs:46:17
9292
|
9393
LL | asm!("{:foo}", in(reg) foo);
9494
| ^^^
9595

9696
error: multiple unused asm arguments
97-
--> $DIR/bad-template.rs:53:18
97+
--> $DIR/bad-template.rs:49:18
9898
|
9999
LL | 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

106106
error: invalid reference to argument at index 0
107-
--> $DIR/bad-template.rs:59:14
107+
--> $DIR/bad-template.rs:55:14
108108
|
109109
LL | global_asm!("{}");
110110
| ^^ from here
111111
|
112112
= note: no arguments were given
113113

114114
error: invalid reference to argument at index 1
115-
--> $DIR/bad-template.rs:61:14
115+
--> $DIR/bad-template.rs:57:14
116116
|
117117
LL | global_asm!("{1}", const FOO);
118118
| ^^^ from here
119119
|
120120
= note: there is 1 argument
121121

122122
error: argument never used
123-
--> $DIR/bad-template.rs:61:20
123+
--> $DIR/bad-template.rs:57:20
124124
|
125125
LL | 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

130130
error: there is no argument named `a`
131-
--> $DIR/bad-template.rs:64:15
131+
--> $DIR/bad-template.rs:60:15
132132
|
133133
LL | global_asm!("{a}");
134134
| ^
135135

136136
error: invalid reference to argument at index 0
137-
--> $DIR/bad-template.rs:66:14
137+
--> $DIR/bad-template.rs:62:14
138138
|
139139
LL | 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
145145
note: named arguments cannot be referenced by position
146-
--> $DIR/bad-template.rs:66:19
146+
--> $DIR/bad-template.rs:62:19
147147
|
148148
LL | global_asm!("{}", a = const FOO);
149149
| ^^^^^^^^^^^^^
150150

151151
error: named argument never used
152-
--> $DIR/bad-template.rs:66:19
152+
--> $DIR/bad-template.rs:62:19
153153
|
154154
LL | 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

159159
error: invalid reference to argument at index 1
160-
--> $DIR/bad-template.rs:69:14
160+
--> $DIR/bad-template.rs:65:14
161161
|
162162
LL | global_asm!("{1}", a = const FOO);
163163
| ^^^ from here
164164
|
165165
= note: no positional arguments were given
166166

167167
error: named argument never used
168-
--> $DIR/bad-template.rs:69:20
168+
--> $DIR/bad-template.rs:65:20
169169
|
170170
LL | 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

175175
error: asm template modifier must be a single character
176-
--> $DIR/bad-template.rs:72:16
176+
--> $DIR/bad-template.rs:68:16
177177
|
178178
LL | global_asm!("{:foo}", const FOO);
179179
| ^^^
180180

181181
error: multiple unused asm arguments
182-
--> $DIR/bad-template.rs:74:17
182+
--> $DIR/bad-template.rs:70:17
183183
|
184184
LL | 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

191191
warning: formatting may not be suitable for sub-register argument
192-
--> $DIR/bad-template.rs:50:15
192+
--> $DIR/bad-template.rs:46:15
193193
|
194194
LL | asm!("{:foo}", in(reg) foo);
195195
| ^^^^^^ --- for this argument

0 commit comments

Comments
 (0)