From ede43069cc927d0e2380de93aa37c4b30c1d15e0 Mon Sep 17 00:00:00 2001 From: Ethan Brierley Date: Thu, 17 Aug 2023 21:47:03 +0100 Subject: [PATCH] Remove use of `box_syntax` CONTRIBUTING.md` example `box_syntax` no longer exists. [`clippy_lints/src/lib.rs` now uses `Box::new`](https://github.com/rust-lang/rust-clippy/blob/d5298bea7fd0ce133506d156795e3dc7c68efc20/clippy_lints/src/lib.rs#L809C70-L809C70) --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3df132803694..04af1b98b556 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -148,7 +148,7 @@ pub mod else_if_without_else; pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf: &Conf) { // ... - store.register_early_pass(|| box else_if_without_else::ElseIfWithoutElse); + store.register_early_pass(|| Box::new(else_if_without_else::ElseIfWithoutElse)); // ... store.register_group(true, "clippy::restriction", Some("clippy_restriction"), vec![