Repository navigation
Conversation
|
r? @jhpratt rustbot has assigned @jhpratt. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
The job Click to see the possible cause of the failure (guessed by this bot) |
There was a problem hiding this comment.
Can you write new unstable wrapper functions instead of calling the existing Vec functions? Some of these are not unstable, and even for those that are, if they get stabilized independently, I don't want us to accidentally stabilize the new match arms.
| () => ( | ||
| $crate::vec::Vec::new() | ||
| ); | ||
| (in $alloc:expr) => ( |
There was a problem hiding this comment.
You need to allow a semicolon here, otherwise the empty vector is not a special case of the comma separated syntax.
|
As mentioned in the Zulip discussion, please do start with an ACP @rustbot label +needs-acp |
|
@rustbot label -S-waiting-on-review +S-waiting-on-acp |
related to
allocator_ext#163177now that
allocator_apiis stablized andallocator_exthas everything else allocator-y, IMO there exists a gap for constructing vecs with custom allocators like thevec!macro does forGlobal.the doc comment has a hidden
#!feature(allocator_ext)to use the new arms which implicitly use that feature, there is no additional feature gate currently.I've added a branch to the mir-opt test for checking that the correct mir is emitted (though I'm not sure i've done it correctly)
zulip discussion
discussion on zulip suggested that possibly a temporary macro with a new name for the new arms makes sense, I havent done that yet.