|
29 | 29 | #![cfg_attr(test, feature(test))] |
30 | 30 | #![feature(array_windows)] |
31 | 31 | #![feature(bool_to_option)] |
32 | | -#![feature(box_syntax)] |
33 | 32 | #![feature(box_patterns)] |
34 | 33 | #![feature(crate_visibility_modifier)] |
35 | 34 | #![feature(format_args_capture)] |
@@ -245,7 +244,7 @@ fn register_builtins(store: &mut LintStore, no_interleave_lints: bool) { |
245 | 244 | macro_rules! register_pass { |
246 | 245 | ($method:ident, $ty:ident, $constructor:expr) => { |
247 | 246 | store.register_lints(&$ty::get_lints()); |
248 | | - store.$method(|| box $constructor); |
| 247 | + store.$method(|| Box::new($constructor)); |
249 | 248 | }; |
250 | 249 | } |
251 | 250 |
|
@@ -477,13 +476,13 @@ fn register_builtins(store: &mut LintStore, no_interleave_lints: bool) { |
477 | 476 |
|
478 | 477 | fn register_internals(store: &mut LintStore) { |
479 | 478 | store.register_lints(&LintPassImpl::get_lints()); |
480 | | - store.register_early_pass(|| box LintPassImpl); |
| 479 | + store.register_early_pass(|| Box::new(LintPassImpl)); |
481 | 480 | store.register_lints(&DefaultHashTypes::get_lints()); |
482 | | - store.register_late_pass(|| box DefaultHashTypes); |
| 481 | + store.register_late_pass(|| Box::new(DefaultHashTypes)); |
483 | 482 | store.register_lints(&ExistingDocKeyword::get_lints()); |
484 | | - store.register_late_pass(|| box ExistingDocKeyword); |
| 483 | + store.register_late_pass(|| Box::new(ExistingDocKeyword)); |
485 | 484 | store.register_lints(&TyTyKind::get_lints()); |
486 | | - store.register_late_pass(|| box TyTyKind); |
| 485 | + store.register_late_pass(|| Box::new(TyTyKind)); |
487 | 486 | store.register_group( |
488 | 487 | false, |
489 | 488 | "rustc::internal", |
|
0 commit comments