Skip to content

constify vec![1, 2, 3] macro#155795

Draft
Lars-Schumann wants to merge 1 commit intorust-lang:mainfrom
Lars-Schumann:const-vec-macro
Draft

constify vec![1, 2, 3] macro#155795
Lars-Schumann wants to merge 1 commit intorust-lang:mainfrom
Lars-Schumann:const-vec-macro

Conversation

@Lars-Schumann
Copy link
Copy Markdown
Contributor

@Lars-Schumann Lars-Schumann commented Apr 25, 2026

Tracking issues:
const_heap: #79597

makes all the parts needed for non-empty vec![] macros const:

alloc::boxed::box_assume_init_into_vec_unsafe
alloc::boxed::Box::assume_init
alloc::boxed::Box::into_raw_with_allocator
alloc::slice::[T]::into_vec

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Apr 25, 2026
@rust-log-analyzer

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. 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.

3 participants