Stabilize `const_caller_location` and `const_location_fields` by lilasta · Pull...
source link: https://github.com/rust-lang/rust/pull/122291
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Stabilize `const_caller_location` and `const_location_fields` by lilasta · Pull Request #122291 · rust-lang/rust · GitHub
Conversation
Closes #102911. Closes #76156.
tests: library/core/tests/panic/location.rs
// core::panic::location
impl Location {
pub const fn caller() -> &'static Location<'static>;
pub const fn file(&self) -> &str;
pub const fn line(&self) -> u32;
pub const fn column(&self) -> u32;
}
Collaborator
rustbot has assigned @Mark-Simulacrum. Use r? to explicitly pick a reviewer |
added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.
labels
added T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
and removed T-libs Relevant to the library team, which will review and decide on the PR/issue.
labels
Member
This still needs FCP. |
Contributor
Author
I've written a stabilization report. Is the content sufficient to request the initiation of FCP? (I apologize as it's my first time submitting a stabilization PR) Stabilization ReportSummaryThe const_location_fields feature enables the utilization of the file, line, and column fields of core::location::Location in a const context.
This feature is used in conjunction with Location::caller (tracked in
Tests |
added S-waiting-on-team Status: Awaiting decision from the relevant subteam (see the T-<team> label).
and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
labels
Member
We discussed this in the libs-api meeting today. We are happy to const-stabilize these methods, but this should happen alongside the const-stabilization of |
changed the title
Stabilize const_location_fields
Stabilize const_caller_location
and const_location_fields
Member
FCP started in #76156. |
Member
FCP has finished, this PR should be changed to also stabilize const_caller_location. |
added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
and removed S-waiting-on-team Status: Awaiting decision from the relevant subteam (see the T-<team> label).
labels
Contributor
Isn't it already included in the PR? |
Thank you!
Member
@bors r+ |
added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
labels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK