-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Tracking Issue for const_arguments_as_str
#103900
Comments
…-issue, r=the8472 Add tracking issue for `const_arguments_as_str` Tracking issue: rust-lang#103900 The original PR didn't create a tracking issue.
The function list in the issue description is outdated, this feature gate now also includes impl<'a> PanicMessage<'a> {
pub const fn as_str(&self) -> Option<&'static str>;
} (For some reason I can't edit the issue description...) @rust-lang/libs-api Given that this has been regular-stable for a while, is there any reason not to make them const-stable as well? The implementations are trivial, and in fact they are already indirectly exposed on stable via the const panic machinery (specifically, it gets called in The main reason not to do this is that these functions cannot be actually called in |
This is usually not a compelling counterargument because const fn f(thing: Option<&Arguments>) {
...
if let Some(thing) = thing {
thing.as_str() ...
}
...
} and not having @rust-lang/libs-api: this feature requires making the commitment that future designs of @rfcbot fcp merge |
Team member @dtolnay has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
Or if we do add such an indirection then it has to be |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This will be merged soon. |
Stabilization PR is up: #132511 |
…=dtolnay stabilize const_arguments_as_str FCP passed in the [tracking issue](rust-lang#103900 (comment)).
…=dtolnay stabilize const_arguments_as_str FCP passed in the [tracking issue](rust-lang#103900 (comment)).
…=dtolnay stabilize const_arguments_as_str FCP passed in the [tracking issue](rust-lang#103900 (comment)).
Rollup merge of rust-lang#132511 - RalfJung:const_arguments_as_str, r=dtolnay stabilize const_arguments_as_str FCP passed in the [tracking issue](rust-lang#103900 (comment)).
Feature gate:
#![feature(const_arguments_as_str)]
This is a tracking issue for const
fmt::Arguments::as_str
.Note that the original PR didn't create a tracking issue.
Public API
Steps / History
fmt::Arguments::as_str
unstably const #86655const_arguments_as_str
#103901Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: