-
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
Cleanup c_str.rs #92724
Cleanup c_str.rs #92724
Conversation
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. |
This comment has been minimized.
This comment has been minimized.
I'm not sure this is really an improvement, it feels mostly like just shuffling some code around a little -- can you say more about the motivation or the reference to the rustix PR's relevance? |
☔ The latest upstream changes (presumably #93069) made this pull request unmergeable. Please resolve the merge conflicts. |
Ping from triage:
Can you address this? |
@Mark-Simulacrum Indeed, this PR is just some code shuffling. I wanted to make these changes in rustix first (together with some other improvements), but it turned out that code was based on this code. So this PR tries to apply those changes here instead. Main goal is to change the I understand if this PR is too small of a change/ too opinionated; you can close the PR if it is non-valuable to the project. |
Syncing those two functions seems like a good thing to me. I'd be happy to approve this with the null byte left as |
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
@bors r+ rollup |
📌 Commit afb7a50 has been approved by |
Cleanup c_str.rs Some code cleanups in `c_str.rs`. No functional changes. ref: bytecodealliance/rustix#163
Cleanup c_str.rs Some code cleanups in `c_str.rs`. No functional changes. ref: bytecodealliance/rustix#163
Cleanup c_str.rs Some code cleanups in `c_str.rs`. No functional changes. ref: bytecodealliance/rustix#163
Cleanup c_str.rs Some code cleanups in `c_str.rs`. No functional changes. ref: bytecodealliance/rustix#163
Rollup of 13 pull requests Successful merges: - rust-lang#88313 (Make the pre-commit script pre-push instead) - rust-lang#91530 (Suggest 1-tuple parentheses on exprs without existing parens) - rust-lang#92724 (Cleanup c_str.rs) - rust-lang#93208 (Impl {Add,Sub,Mul,Div,Rem,BitXor,BitOr,BitAnd}Assign<$t> for Wrapping<$t> for rust 1.60.0) - rust-lang#93394 (Don't allow {} to refer to implicit captures in format_args.) - rust-lang#93416 (remove `allow_fail` test flag) - rust-lang#93487 (Fix linking stage1 toolchain in `./x.py setup`) - rust-lang#93673 (Linkify sidebar headings for sibling items) - rust-lang#93680 (Drop json::from_reader) - rust-lang#93682 (Update tracking issue for `const_fn_trait_bound`) - rust-lang#93722 (Use shallow clones for submodules managed by rustbuild, not just bootstrap.py) - rust-lang#93723 (Rerun bootstrap's build script when RUSTC changes) - rust-lang#93737 (bootstrap: prefer using '--config' over 'RUST_BOOTSTRAP_CONFIG') Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Some code cleanups in
c_str.rs
.No functional changes.
ref: bytecodealliance/rustix#163