-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace libtest/lib.rs:FnBox with std::boxed::FnBox. #46636
Conversation
7e601ee
to
cbd2710
Compare
src/libtest/lib.rs
Outdated
@@ -1720,7 +1710,7 @@ mod tests { | |||
should_panic: ShouldPanic::No, | |||
allow_fail: false, | |||
}, | |||
testfn: DynTestFn(Box::new(move |()| f())), | |||
testfn: DynTestFn(Box::new(move || f())), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These can simply be Box::new(f)
I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed in the latest force push
cbd2710
to
4f04f97
Compare
assigning to someone random from the compiler team (unless there's a better team to review this) r? @estebank |
@bors r+ rollup |
📌 Commit 4f04f97 has been approved by |
Replace libtest/lib.rs:FnBox with std::boxed::FnBox. Fixes rust-lang#41810.
Fixes #41810.