Skip to content

Conversation

nrc
Copy link
Member

@nrc nrc commented Sep 28, 2014

@sinistersnare
Copy link
Contributor

Quick question, why isn't this allowed? it seems fairly nifty.

@alexcrichton
Copy link
Member

Currently the slicing syntax uses foo[a..b] where the range being used is inclusive of a and exclusive of b (doesn't include foo[b]). For match arms, the syntax 'a' .. 'z' (old syntax) is inclusive of both 'a' and 'z'. In order to resolve this issue, we're requiring that match arms use three dots instead of two (to highlight the difference).

Some have said a good way to think of this is "more dots equals more items"

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Sep 29, 2014
@bors bors merged commit 2c589df into rust-lang:master Sep 29, 2014
@alexcrichton
Copy link
Member

Ah oops, I landed the test, but I had to disable it because the error wasn't turned on yet, sorry about that!

@alexcrichton
Copy link
Member

And now github won't let me reopen this...

lnicola pushed a commit to lnicola/rust that referenced this pull request Jul 28, 2024
…r=lnicola

minor: Add --keep-going to the `cargo.buildScripts.overrideCommand` docs

CC rust-lang/rust-analyzer#17608 (comment)
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Aug 1, 2024
…r=lnicola

minor: Add --keep-going to the `cargo.buildScripts.overrideCommand` docs

CC rust-lang/rust-analyzer#17608 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants