Remove box syntax from rustc_lint
This commit is contained in:
parent
99db8fa9c2
commit
dd4cc0c57d
1 changed files with 5 additions and 6 deletions
|
@ -29,7 +29,6 @@
|
||||||
#![cfg_attr(test, feature(test))]
|
#![cfg_attr(test, feature(test))]
|
||||||
#![feature(array_windows)]
|
#![feature(array_windows)]
|
||||||
#![feature(bool_to_option)]
|
#![feature(bool_to_option)]
|
||||||
#![feature(box_syntax)]
|
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
#![feature(crate_visibility_modifier)]
|
#![feature(crate_visibility_modifier)]
|
||||||
#![feature(format_args_capture)]
|
#![feature(format_args_capture)]
|
||||||
|
@ -246,7 +245,7 @@ fn register_builtins(store: &mut LintStore, no_interleave_lints: bool) {
|
||||||
macro_rules! register_pass {
|
macro_rules! register_pass {
|
||||||
($method:ident, $ty:ident, $constructor:expr) => {
|
($method:ident, $ty:ident, $constructor:expr) => {
|
||||||
store.register_lints(&$ty::get_lints());
|
store.register_lints(&$ty::get_lints());
|
||||||
store.$method(|| box $constructor);
|
store.$method(|| Box::new($constructor));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -478,13 +477,13 @@ fn register_builtins(store: &mut LintStore, no_interleave_lints: bool) {
|
||||||
|
|
||||||
fn register_internals(store: &mut LintStore) {
|
fn register_internals(store: &mut LintStore) {
|
||||||
store.register_lints(&LintPassImpl::get_lints());
|
store.register_lints(&LintPassImpl::get_lints());
|
||||||
store.register_early_pass(|| box LintPassImpl);
|
store.register_early_pass(|| Box::new(LintPassImpl));
|
||||||
store.register_lints(&DefaultHashTypes::get_lints());
|
store.register_lints(&DefaultHashTypes::get_lints());
|
||||||
store.register_late_pass(|| box DefaultHashTypes);
|
store.register_late_pass(|| Box::new(DefaultHashTypes));
|
||||||
store.register_lints(&ExistingDocKeyword::get_lints());
|
store.register_lints(&ExistingDocKeyword::get_lints());
|
||||||
store.register_late_pass(|| box ExistingDocKeyword);
|
store.register_late_pass(|| Box::new(ExistingDocKeyword));
|
||||||
store.register_lints(&TyTyKind::get_lints());
|
store.register_lints(&TyTyKind::get_lints());
|
||||||
store.register_late_pass(|| box TyTyKind);
|
store.register_late_pass(|| Box::new(TyTyKind));
|
||||||
store.register_group(
|
store.register_group(
|
||||||
false,
|
false,
|
||||||
"rustc::internal",
|
"rustc::internal",
|
||||||
|
|
Loading…
Reference in a new issue