diff options
| author | est31 <MTest31@outlook.com> | 2022-07-11 00:25:25 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2022-07-11 00:34:21 +0200 |
| commit | 94a09232ff8f598d0e38aaa26f8abb89779665bd (patch) | |
| tree | a02165636b87063af98453ecbf5d0be1251321e3 | |
| parent | 3dcb616888aac50d55160b025266d555dad937d9 (diff) | |
| download | rust-94a09232ff8f598d0e38aaa26f8abb89779665bd.tar.gz rust-94a09232ff8f598d0e38aaa26f8abb89779665bd.zip | |
Remove box syntax from Box<function pointer> construction
The function pointer should be extremely small, close to pointer size.
| -rw-r--r-- | src/librustdoc/core.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs index 51b245e36ba..636ace01ea8 100644 --- a/src/librustdoc/core.rs +++ b/src/librustdoc/core.rs @@ -285,7 +285,7 @@ pub(crate) fn create_config( diagnostic_output: DiagnosticOutput::Default, lint_caps, parse_sess_created: None, - register_lints: Some(box crate::lint::register_lints), + register_lints: Some(Box::new(crate::lint::register_lints)), override_queries: Some(|_sess, providers, _external_providers| { // Most lints will require typechecking, so just don't run them. providers.lint_mod = |_, _| {}; |
