Visitar URL original
*: replace FnBox with FnOnce by sticnarf · Pull Request #4659 · tikv/tikv · GitHub
Skip to content

*: replace FnBox with FnOnce - #4659

Merged
kennytm merged 2 commits into
tikv:masterfrom
sticnarf:rm-fnbox
May 9, 2019
Merged

kennytm merged 2 commits into
tikv:masterfrom
sticnarf:rm-fnbox

Conversation

@sticnarf

@sticnarf sticnarf commented May 9, 2019

Copy link
Copy Markdown
Contributor

What have you changed? (mandatory)

FnBox will 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 FnOnce now. 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 dev

Does 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

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>

@kennytm kennytm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kennytm

kennytm commented May 9, 2019

Copy link
Copy Markdown
Contributor

/test

1 similar comment
@sticnarf

sticnarf commented May 9, 2019

Copy link
Copy Markdown
Contributor Author

/test

@siddontang siddontang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kennytm
kennytm merged commit 9c0a9c1 into tikv:master May 9, 2019
@sticnarf
sticnarf deleted the rm-fnbox branch May 9, 2019 06:38
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants