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

Tracking issue for RFC 520: change fixed length array syntax #19999

Closed
nrc opened this issue Dec 19, 2014 · 1 comment · Fixed by #20387
Closed

Tracking issue for RFC 520: change fixed length array syntax #19999

nrc opened this issue Dec 19, 2014 · 1 comment · Fixed by #20387
Assignees
Labels
B-RFC-approved Blocker: Approved by a merged RFC but not yet implemented.

Comments

@nrc
Copy link
Member

nrc commented Dec 19, 2014

Change syntax for fixed length arrays to [T; n] and for repeating array initialisers to [expr; n] where n is a constexpr with type uint.

Nominated for 1.0, p-backcompat-lang.

@nrc nrc added I-nominated B-RFC-approved Blocker: Approved by a merged RFC but not yet implemented. labels Dec 19, 2014
@nrc nrc self-assigned this Dec 19, 2014
@nrc
Copy link
Member Author

nrc commented Dec 19, 2014

RFC

alexcrichton added a commit to alexcrichton/rust that referenced this issue Dec 21, 2014
This does NOT break any existing programs because the `[_, ..n]` syntax is also supported.

Part of rust-lang#19999

r? @nikomatsakis
nrc added a commit to nrc/rust that referenced this issue Jan 1, 2015
…constructors

Closes rust-lang#19999

[breaking-change]

Use [_; n] instead.
jedisct1 pushed a commit to jedisct1/sodiumoxide that referenced this issue Oct 20, 2015
Change all instances of the [_, ..n] array syntax to the new [_; n]
syntax. See rust-lang/rfcs#520 and rust-lang/rust#19999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-RFC-approved Blocker: Approved by a merged RFC but not yet implemented.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant