-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Implement Option::take_if
#98935
Implement Option::take_if
#98935
Conversation
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
(rust-highfive has picked a reviewer for you, use r? to override) |
f00d2ef
to
49ae5d7
Compare
Option::retain
Hey @Mark-Simulacrum, further input needed for the trait bounds. I copied them over from the |
Hi! Per the rustbot comment (#98935 (comment)), new APIs should be proposed as a T-libs-api API change proposal -- has one been filed for this? Can you link to it? With regards to the const bounds, my recommendation is to drop the const_unstable + const part of this function for now; the story around |
@rustbot label +T-libs-api -T-libs |
@Mark-Simulacrum Sorry, I only have a tracking issue linked. But there is an example why I think this change is useful. I also kinda hoped this change is small enough for I don't know if there are issues with EDIT: I added |
The tracking issue looks pretty good! However, typically our process is that we:
You definitely don't need to write a full RFC for this -- just needs that issue on the libs-team repo so that they can review and approve the change going in. |
Thanks for clarification :) |
still waiting on ACP. |
@kellerkindt I guess this this is still waiting on ACP? |
Yeah, there seems to be no movement? Or did I miss something to start the actual discussion? |
I don't know, sorry. Maybe ask people on zulip - https://rust-lang.zulipchat.com/ |
5ab59b9
to
bcf5b9c
Compare
This comment has been minimized.
This comment has been minimized.
bcf5b9c
to
86858d5
Compare
@rustbot modify labels: -S-waiting-on-author +S-waiting-on-review |
86858d5
to
5419abd
Compare
@bors r+ rollup |
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#98935 (Implement `Option::take_if`) - rust-lang#114093 (Add regression test for `echo 'mod unknown;' | rustc -`) - rust-lang#114229 (Nest tests/codegen/sanitizer*.rs tests in sanitizer dir) - rust-lang#114230 (Nest other codegen test topics) - rust-lang#114362 (string.rs: remove "Basic usage" text) - rust-lang#114365 (str.rs: remove "Basic usage" text) - rust-lang#114382 (Add a new `compare_bytes` intrinsic instead of calling `memcmp` directly) - rust-lang#114549 (Style fix and refactor on resolve diagnostics) r? `@ghost` `@rustbot` modify labels: rollup
Tracking issue: #98934
ACP: rust-lang/libs-team#70 [accepted]