|
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)]
|
@@ -246,7 +245,7 @@ fn register_builtins(store: &mut LintStore, no_interleave_lints: bool) {
|
246 | 245 | macro_rules! register_pass {
|
247 | 246 | ($method:ident, $ty:ident, $constructor:expr) => {
|
248 | 247 | store.register_lints(&$ty::get_lints());
|
249 |
| - store.$method(|| box $constructor); |
| 248 | + store.$method(|| Box::new($constructor)); |
250 | 249 | };
|
251 | 250 | }
|
252 | 251 |
|
@@ -478,13 +477,13 @@ fn register_builtins(store: &mut LintStore, no_interleave_lints: bool) {
|
478 | 477 |
|
479 | 478 | fn register_internals(store: &mut LintStore) {
|
480 | 479 | store.register_lints(&LintPassImpl::get_lints());
|
481 |
| - store.register_early_pass(|| box LintPassImpl); |
| 480 | + store.register_early_pass(|| Box::new(LintPassImpl)); |
482 | 481 | store.register_lints(&DefaultHashTypes::get_lints());
|
483 |
| - store.register_late_pass(|| box DefaultHashTypes); |
| 482 | + store.register_late_pass(|| Box::new(DefaultHashTypes)); |
484 | 483 | store.register_lints(&ExistingDocKeyword::get_lints());
|
485 |
| - store.register_late_pass(|| box ExistingDocKeyword); |
| 484 | + store.register_late_pass(|| Box::new(ExistingDocKeyword)); |
486 | 485 | store.register_lints(&TyTyKind::get_lints());
|
487 |
| - store.register_late_pass(|| box TyTyKind); |
| 486 | + store.register_late_pass(|| Box::new(TyTyKind)); |
488 | 487 | store.register_group(
|
489 | 488 | false,
|
490 | 489 | "rustc::internal",
|
|
0 commit comments