Inline CStr::from_bytes_with_nul_unchecked::rt_impl#100371
Inline CStr::from_bytes_with_nul_unchecked::rt_impl#100371bors merged 1 commit intorust-lang:masterfrom
Conversation
|
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
|
r? @scottmcm (rust-highfive has picked a reviewer for you, use r? to override) |
|
This is a concrete type (not a generic one), so adding @bors r+ rollup |
…mpiler-errors Rollup of 8 pull requests Successful merges: - rust-lang#100286 (Add support for link-flavor rust-lld for macOS) - rust-lang#100317 (Remove logic related to deprecated nvptx-nvidia-cuda (32-bit) target) - rust-lang#100339 (Fixes bootstrap panic when running x fmt --check ) - rust-lang#100348 (Add regression test for rust-lang#93205) - rust-lang#100349 (Refactor: remove a type string comparison) - rust-lang#100353 (Fix doc links in core::time::Duration::as_secs) - rust-lang#100359 (Special-case references to leafs in valtree pretty-printing) - rust-lang#100371 (Inline CStr::from_bytes_with_nul_unchecked::rt_impl) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Currently
CStr::from_bytes_with_nul_unchecked::rt_implis not being inlined. The following function:Outputs the following assembly on current nightly
Meanwhile on beta this provides the following assembly:
This pull request adds
#[inline]annotation tort_implto fix a code generation regression forCStr::from_bytes_with_nul_unchecked.