Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow dynamically sized arrays on stack #1031

Closed
ghost opened this issue Apr 3, 2015 · 2 comments
Closed

Allow dynamically sized arrays on stack #1031

ghost opened this issue Apr 3, 2015 · 2 comments
Labels
T-lang Relevant to the language team, which will review and decide on the RFC.

Comments

@ghost
Copy link

ghost commented Apr 3, 2015

Currently, there's no way to allocate a dynamically-sized array on the stack. i.e. let x = [0; y] where y is an arbitrary usize. There are issues with stack exhaustion here, but rust already checks for it, and LLVM already supports dynamic arrays through C99, so, it'd be a very useful feature to have for systems which do not have a heap.

@steveklabnik
Copy link
Member

This would be related to #618 i'd imagine

@petrochenkov petrochenkov added the T-lang Relevant to the language team, which will review and decide on the RFC. label Jan 29, 2018
@Centril
Copy link
Contributor

Centril commented Oct 7, 2018

Closing in favor of rust-lang/rust#48055.

@Centril Centril closed this as completed Oct 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-lang Relevant to the language team, which will review and decide on the RFC.
Projects
None yet
Development

No branches or pull requests

3 participants