Skip to content

Commit 40872cb

Browse files
committed
Auto merge of rust-lang#11348 - eopb:eopb-patch-1, r=flip1995
Remove use of `box_syntax` in `CONTRIBUTING.md` example `box_syntax` no longer exists. [`clippy_lints/src/lib.rs` now uses `Box::new`](https://github.com/rust-lang/rust-clipp/blob/d5298bea7fd0ce133506d156795e3dc7c68efc20/clippy_lints/src/lib.rs#L809C70-L809C70) changelog: none
2 parents d5298be + ede4306 commit 40872cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pub mod else_if_without_else;
148148

149149
pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf: &Conf) {
150150
// ...
151-
store.register_early_pass(|| box else_if_without_else::ElseIfWithoutElse);
151+
store.register_early_pass(|| Box::new(else_if_without_else::ElseIfWithoutElse));
152152
// ...
153153

154154
store.register_group(true, "clippy::restriction", Some("clippy_restriction"), vec![

0 commit comments

Comments
 (0)