about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEthan Brierley <ethanboxx@gmail.com>2023-08-17 21:47:03 +0100
committerGitHub <noreply@github.com>2023-08-17 21:47:03 +0100
commitede43069cc927d0e2380de93aa37c4b30c1d15e0 (patch)
tree6a2ac05e8edc13f11598b5d91b338f65fe9f4d85
parentd5298bea7fd0ce133506d156795e3dc7c68efc20 (diff)
downloadrust-ede43069cc927d0e2380de93aa37c4b30c1d15e0.tar.gz
rust-ede43069cc927d0e2380de93aa37c4b30c1d15e0.zip
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)
-rw-r--r--CONTRIBUTING.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 3df13280369..04af1b98b55 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![