Skip to content

Commit a5ba6e0

Browse files
committed
Remove uses of box_syntax in rustc and tools
1 parent 386ea37 commit a5ba6e0

File tree

4 files changed

+0
-37
lines changed

4 files changed

+0
-37
lines changed

tests/source/expr.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Test expressions
44

55
fn foo() -> bool {
6-
let boxed: Box<i32> = box 5;
76
let referenced = &5 ;
87

98
let very_long_variable_name = ( a + first + simple + test );
@@ -132,12 +131,6 @@ fn qux() {
132131
}
133132
}
134133

135-
fn issue227() {
136-
{
137-
let handler = box DocumentProgressHandler::new(addr, DocumentProgressTask::DOMContentLoaded);
138-
}
139-
}
140-
141134
fn issue184(source: &str) {
142135
for c in source.chars() {
143136
if index < 'a' {
@@ -413,10 +406,6 @@ fn issue2704() {
413406
.concat(&requires1)
414407
.concat(&requires2)
415408
.distinct_total());
416-
let requires = requires.set(box requires0
417-
.concat(&requires1)
418-
.concat(&requires2)
419-
.distinct_total());
420409
let requires = requires.set(requires0
421410
.concat(&requires1)
422411
.concat(&requires2)

tests/target/configs/combine_control_expr/false.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,6 @@ fn main() {
108108
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
109109
));
110110

111-
// Box
112-
foo(box Bar {
113-
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
114-
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
115-
});
116-
117111
// Unary
118112
foo(!bar(
119113
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,

tests/target/configs/combine_control_expr/true.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,6 @@ fn main() {
9696
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
9797
));
9898

99-
// Box
100-
foo(box Bar {
101-
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
102-
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
103-
});
104-
10599
// Unary
106100
foo(!bar(
107101
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,

tests/target/expr.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Test expressions
44

55
fn foo() -> bool {
6-
let boxed: Box<i32> = box 5;
76
let referenced = &5;
87

98
let very_long_variable_name = (a + first + simple + test);
@@ -179,13 +178,6 @@ fn qux() {
179178
}
180179
}
181180

182-
fn issue227() {
183-
{
184-
let handler =
185-
box DocumentProgressHandler::new(addr, DocumentProgressTask::DOMContentLoaded);
186-
}
187-
}
188-
189181
fn issue184(source: &str) {
190182
for c in source.chars() {
191183
if index < 'a' {
@@ -454,12 +446,6 @@ fn issue2704() {
454446
.concat(&requires2)
455447
.distinct_total(),
456448
);
457-
let requires = requires.set(
458-
box requires0
459-
.concat(&requires1)
460-
.concat(&requires2)
461-
.distinct_total(),
462-
);
463449
let requires = requires.set(
464450
requires0
465451
.concat(&requires1)

0 commit comments

Comments
 (0)