Skip to content

library: Polish transmute's split_at_stdlib example#158674

Open
workingjubilee wants to merge 1 commit into
rust-lang:mainfrom
workingjubilee:polish-mem-transmute
Open

library: Polish transmute's split_at_stdlib example#158674
workingjubilee wants to merge 1 commit into
rust-lang:mainfrom
workingjubilee:polish-mem-transmute

Conversation

@workingjubilee

Copy link
Copy Markdown
Member

Splitting assembling the return value over multiple let-bindings enables pedagogic discussion of each named let-binding.

The slice arg was renamed to remove any chance of visual confusion with use of core::slice functions or "slice" per se.

Closes #153350

Splitting assembling the return value over multiple let-bindings enables
pedagogic discussion of each named let-binding.

The `slice` arg was renamed to remove any chance of visual confusion
with use of `core::slice` functions or "slice" per se.
@rustbot

rustbot commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred to the intrinsics. Make sure the CTFE / Miri interpreter
gets adapted for the changes, if necessary.

cc @rust-lang/miri, @RalfJung, @oli-obk, @lcnr

@rustbot rustbot 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 Jul 1, 2026
@rustbot

rustbot commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

r? @jhpratt

rustbot has assigned @jhpratt.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: libs
  • libs expanded to 12 candidates
  • Random selection from 6 candidates

@jhpratt

jhpratt commented Jul 2, 2026

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors

rust-bors Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 14da4e8 has been approved by jhpratt

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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-review Status: Awaiting review from the assignee but also interested parties. labels Jul 2, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Jul 2, 2026
…e, r=jhpratt

library: Polish transmute's `split_at_stdlib` example

Splitting assembling the return value over multiple let-bindings enables pedagogic discussion of each named let-binding.

The `slice` arg was renamed to remove any chance of visual confusion with use of `core::slice` functions or "slice" per se.
rust-bors Bot pushed a commit that referenced this pull request Jul 2, 2026
Rollup of 3 pull requests

Successful merges:

 - #155429 (Support `u128`/`i128` c-variadic arguments)
 - #158669 (Remove `src/tools/test-float-parse/Cargo.lock`)
 - #158674 (library: Polish transmute's `split_at_stdlib` example)
rust-bors Bot pushed a commit that referenced this pull request Jul 2, 2026
Rollup of 3 pull requests

Successful merges:

 - #155429 (Support `u128`/`i128` c-variadic arguments)
 - #158669 (Remove `src/tools/test-float-parse/Cargo.lock`)
 - #158674 (library: Polish transmute's `split_at_stdlib` example)
rust-bors Bot pushed a commit that referenced this pull request Jul 2, 2026
Rollup of 3 pull requests

Successful merges:

 - #155429 (Support `u128`/`i128` c-variadic arguments)
 - #158669 (Remove `src/tools/test-float-parse/Cargo.lock`)
 - #158674 (library: Polish transmute's `split_at_stdlib` example)
jhpratt added a commit to jhpratt/rust that referenced this pull request Jul 2, 2026
…e, r=jhpratt

library: Polish transmute's `split_at_stdlib` example

Splitting assembling the return value over multiple let-bindings enables pedagogic discussion of each named let-binding.

The `slice` arg was renamed to remove any chance of visual confusion with use of `core::slice` functions or "slice" per se.
rust-bors Bot pushed a commit that referenced this pull request Jul 2, 2026
Rollup of 4 pull requests

Successful merges:

 - #155429 (Support `u128`/`i128` c-variadic arguments)
 - #158669 (Remove `src/tools/test-float-parse/Cargo.lock`)
 - #158674 (library: Polish transmute's `split_at_stdlib` example)
 - #158682 (Avoid delayed bug for disabled on_type_error arguments)
rust-bors Bot pushed a commit that referenced this pull request Jul 2, 2026
Rollup of 4 pull requests

Successful merges:

 - #155429 (Support `u128`/`i128` c-variadic arguments)
 - #158669 (Remove `src/tools/test-float-parse/Cargo.lock`)
 - #158674 (library: Polish transmute's `split_at_stdlib` example)
 - #158682 (Avoid delayed bug for disabled on_type_error arguments)
rust-bors Bot pushed a commit that referenced this pull request Jul 2, 2026
Rollup of 4 pull requests

Successful merges:

 - #155429 (Support `u128`/`i128` c-variadic arguments)
 - #158669 (Remove `src/tools/test-float-parse/Cargo.lock`)
 - #158674 (library: Polish transmute's `split_at_stdlib` example)
 - #158682 (Avoid delayed bug for disabled on_type_error arguments)
jhpratt added a commit to jhpratt/rust that referenced this pull request Jul 2, 2026
…e, r=jhpratt

library: Polish transmute's `split_at_stdlib` example

Splitting assembling the return value over multiple let-bindings enables pedagogic discussion of each named let-binding.

The `slice` arg was renamed to remove any chance of visual confusion with use of `core::slice` functions or "slice" per se.
rust-bors Bot pushed a commit that referenced this pull request Jul 2, 2026
Rollup of 5 pull requests

Successful merges:

 - #155429 (Support `u128`/`i128` c-variadic arguments)
 - #158627 (Simplify option-iterator flattening in the compiler)
 - #158669 (Remove `src/tools/test-float-parse/Cargo.lock`)
 - #158674 (library: Polish transmute's `split_at_stdlib` example)
 - #158682 (Avoid delayed bug for disabled on_type_error arguments)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs mention rvalue

3 participants