-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Stabilize std::path::Prefix::is_verbatim
as const
#76232
Conversation
Insta-stabilize the method `std::path::Prefix::is_verbatim` as const. Also make private methods `is_drive` and `has_implicit_root` const. Possible because of the recent stabilization of const control flow. Also adds a test for `is_verbatim` in a const context.
r? @sfackler (rust_highfive has picked a reviewer for you, use r? to override) |
Of all the stabilizations tracked by #76225, this one has the weakest motivation; However, I also see no reason not to make this method const. |
r? @Amanieu |
Closing this as there is not enough motivation to const-stabilize this method on it's own. |
Insta-stabilize the method
std::path::Prefix::is_verbatim
as const, in the same way as PR#76198.Also make private methods
is_drive
andhas_implicit_root
const.Possible because of the recent stabilization of const control flow.
Part of #76225.