Repository navigation
*: replace FnBox with FnOnce - #4659
Merged
Merged
Conversation
FnBox will never be stabilized. Instead, Box<dyn FnOnce> is available now, and is scheduled to be stabilized in 1.35. So we can replace all FnBox occurences with FnOnce now. Feature gate of fnbox can be removed as well. Signed-off-by: Yilin Chen <sticnarf@gmail.com>
Contributor
|
/test |
1 similar comment
Contributor
Author
|
/test |
sticnarf
added a commit
to sticnarf/tikv
that referenced
this pull request
Oct 27, 2019
FnBox will never be stabilized. Instead, Box<dyn FnOnce> is available now, and is scheduled to be stabilized in 1.35. So we can replace all FnBox occurences with FnOnce now. Feature gate of fnbox can be removed as well. Signed-off-by: Yilin Chen <sticnarf@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What have you changed? (mandatory)
FnBoxwill never be stabilized. Instead,Box<dyn FnOnce>is available now, and is fully usable in 1.35. (rust-lang/rust#59500)So we can replace all FnBox occurrences with
FnOncenow. Feature gate of fnbox can be removed as well.What are the type of the changes? (mandatory)
Engineering
How has this PR been tested? (mandatory)
make devDoes this PR affect documentation (docs) or release note? (mandatory)
No
Does this PR affect tidb-ansible update? (mandatory)
No
Refer to a related PR or issue link (optional)
Benchmark result if necessary (optional)
Add a few positive/negative examples (optional)
@kennytm