Skip to content

Commit 6caa526

Browse files
committed
Remove dependences on box-protocol from run-pass-fulldeps.
1 parent 36ebfeb commit 6caa526

File tree

6 files changed

+12
-15
lines changed

6 files changed

+12
-15
lines changed

src/test/auxiliary/custom_derive_plugin.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// force-host
1212

1313
#![feature(plugin_registrar)]
14-
#![feature(box_syntax)]
1514
#![feature(rustc_private)]
1615

1716
extern crate syntax;
@@ -31,7 +30,7 @@ use rustc::plugin::Registry;
3130
pub fn plugin_registrar(reg: &mut Registry) {
3231
reg.register_syntax_extension(
3332
token::intern("derive_TotalSum"),
34-
MultiDecorator(box expand));
33+
MultiDecorator(Box::new(expand)));
3534
}
3635

3736
fn expand(cx: &mut ExtCtxt,
@@ -55,7 +54,7 @@ fn expand(cx: &mut ExtCtxt,
5554
ret_ty: Literal(Path::new_local("isize")),
5655
attributes: vec![],
5756
is_unsafe: false,
58-
combine_substructure: combine_substructure(box |cx, span, substr| {
57+
combine_substructure: combine_substructure(Box::new(|cx, span, substr| {
5958
let zero = cx.expr_isize(span, 0);
6059
cs_fold(false,
6160
|cx, span, subexpr, field, _| {
@@ -64,9 +63,9 @@ fn expand(cx: &mut ExtCtxt,
6463
token::str_to_ident("total_sum"), vec![]))
6564
},
6665
zero,
67-
box |cx, span, _, _| { cx.span_bug(span, "wtf??"); },
66+
Box::new(|cx, span, _, _| { cx.span_bug(span, "wtf??"); }),
6867
cx, span, substr)
69-
}),
68+
})),
7069
},
7170
],
7271
};

src/test/auxiliary/custom_derive_plugin_attr.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// force-host
1212

1313
#![feature(plugin_registrar)]
14-
#![feature(box_syntax)]
1514
#![feature(rustc_private)]
1615

1716
extern crate syntax;
@@ -33,7 +32,7 @@ use rustc::plugin::Registry;
3332
pub fn plugin_registrar(reg: &mut Registry) {
3433
reg.register_syntax_extension(
3534
token::intern("derive_TotalSum"),
36-
MultiDecorator(box expand));
35+
MultiDecorator(Box::new(expand)));
3736
}
3837

3938
fn expand(cx: &mut ExtCtxt,

src/test/auxiliary/lint_for_crate.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// force-host
1212

1313
#![feature(plugin_registrar, rustc_private)]
14-
#![feature(box_syntax)]
1514

1615
extern crate syntax;
1716
#[macro_use] extern crate rustc;
@@ -39,5 +38,5 @@ impl LintPass for Pass {
3938

4039
#[plugin_registrar]
4140
pub fn plugin_registrar(reg: &mut Registry) {
42-
reg.register_lint_pass(box Pass as LintPassObject);
41+
reg.register_lint_pass(Box::new(Pass) as LintPassObject);
4342
}

src/test/auxiliary/lint_group_plugin_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// force-host
1212

1313
#![feature(plugin_registrar)]
14-
#![feature(box_syntax, rustc_private)]
14+
#![feature(rustc_private)]
1515

1616
extern crate syntax;
1717

@@ -47,6 +47,6 @@ impl LintPass for Pass {
4747

4848
#[plugin_registrar]
4949
pub fn plugin_registrar(reg: &mut Registry) {
50-
reg.register_lint_pass(box Pass as LintPassObject);
50+
reg.register_lint_pass(Box::new(Pass) as LintPassObject);
5151
reg.register_lint_group("lint_me", vec![TEST_LINT, PLEASE_LINT]);
5252
}

src/test/auxiliary/lint_plugin_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// force-host
1212

1313
#![feature(plugin_registrar)]
14-
#![feature(box_syntax, rustc_private)]
14+
#![feature(rustc_private)]
1515

1616
extern crate syntax;
1717

@@ -43,5 +43,5 @@ impl LintPass for Pass {
4343

4444
#[plugin_registrar]
4545
pub fn plugin_registrar(reg: &mut Registry) {
46-
reg.register_lint_pass(box Pass as LintPassObject);
46+
reg.register_lint_pass(Box::new(Pass) as LintPassObject);
4747
}

src/test/auxiliary/plugin_crate_outlive_expansion_phase.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// force-host
1212

1313
#![feature(plugin_registrar)]
14-
#![feature(box_syntax, rustc_private)]
14+
#![feature(rustc_private)]
1515

1616
extern crate rustc;
1717

@@ -30,5 +30,5 @@ impl Drop for Foo {
3030
#[plugin_registrar]
3131
pub fn registrar(_: &mut Registry) {
3232
thread_local!(static FOO: RefCell<Option<Box<Any+Send>>> = RefCell::new(None));
33-
FOO.with(|s| *s.borrow_mut() = Some(box Foo { foo: 10 } as Box<Any+Send>));
33+
FOO.with(|s| *s.borrow_mut() = Some(Box::new(Foo { foo: 10 }) as Box<Any+Send>));
3434
}

0 commit comments

Comments
 (0)