-
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
docs: Don't imply that OsStr on Unix is always UTF-8 #97448
Conversation
The methods in `OsStrExt` consume and return `&[u8]` and don't perform any UTF-8 checks.
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) soon. Please see the contribution instructions for more information. |
r? @joshtriplett -- but I don't personally think this needs T-libs-api approval since I don't think we could (or would want to) do anything different here. |
I don't think this needs a full team approval either; OsStr on UNIX is already known to be a bag of bytes, whether it comes from the system or a user conversion. @bors r+ |
📌 Commit 2020264 has been approved by |
Rollup of 5 pull requests Successful merges: - rust-lang#94640 (Partially stabilize `(const_)slice_ptr_len` feature by stabilizing `NonNull::len`) - rust-lang#97034 (Implement `Hash` for `core::alloc::Layout`) - rust-lang#97327 (macros: introduce `fluent_messages` macro ) - rust-lang#97448 (docs: Don't imply that OsStr on Unix is always UTF-8) - rust-lang#97466 ([bootstrap] Move `sanitize_sh` from `dist` to `install`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
The methods in
OsStrExt
consume and return&[u8]
and don't perform any UTF-8 checks.