Uh oh!
There was an error while loading. Please reload this page.
Implement concat_bytes! - #87599
Conversation
rust-highfive
commented
Jul 29, 2021
(rust-highfive has picked a reviewer for you, use r? to override) |
Fishrock123
commented
Jul 29, 2021
Just pointing out that the RFC contains a bit of a contradiction and this PR's tests don't appear to test that case: rust-lang/rfcs#2509 (comment) |
syvb
commented
Jul 29, 2021
@Fishrock123 That appears to have been an oversight when updating the RFC. I've added a test for it. |
jackh726
commented
Oct 21, 2021
Rerolling r? rust-lang/compiler |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
JohnCSimon
commented
Dec 5, 2021
Looks like this is ready for review |
The tracking issue for this is rust-lang#87555.
c1cc810 to
eb56693CompareMark-Simulacrum
commented
Dec 7, 2021
Squashed commits, looks good to me, thanks! @bors r+ |
bors
commented
Dec 7, 2021
📌 Commit eb56693 has been approved by |
…askrgr Rollup of 6 pull requests Successful merges: - rust-lang#87599 (Implement concat_bytes!) - rust-lang#89999 (Update std::env::temp_dir to use GetTempPath2 on Windows when available.) - rust-lang#90796 (Remove the reg_thumb register class for asm! on ARM) - rust-lang#91042 (Use Vec extend instead of repeated pushes on several places) - rust-lang#91634 (Do not attempt to suggest help for overly malformed struct/function call) - rust-lang#91685 (Install llvm tools to sysroot when assembling local toolchain) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This implements the unstable
concat_bytes!macro, which has tracking issue #87555. It can be used like:If strings or characters are used where byte strings or byte characters are required, it suggests adding a
bprefix. If a number is used outside of an array it suggests arrayifying it. If a boolean is used it suggests replacing it with the numeric value of that number. Doubly nested arrays of bytes are disallowed.