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

Rollup of 16 pull requests #25175

Merged
merged 39 commits into from
May 7, 2015
Merged

Rollup of 16 pull requests #25175

merged 39 commits into from
May 7, 2015

Conversation

cactorium and others added 30 commits April 18, 2015 08:28
The error can also occur in cases where a type annotation will not help.
The new example uses a `char` iterator instead of `i32`, to avoid interplay
between type inference and the default type for integer literals.
This appears to not have too much of a detrimental effect, but it
doesn't seem to be what is intended either.

antlr doesn't mind that `PLUS` isn't declared in `tokens` and happily
uses the `PLUS` that appears later in the file, but the generated
RustLexer.tokens had PLUS at the end rather than where it was intended:

NOT=10
TILDE=11
PLUT=12
MINUS=13
...
PLUS=56
There were some tokens used in the grammar but not declared. Antlr
doesn't really seem to care and happily uses them, but they appear in
RustLexer.tokens in a potentially-unexpected order.
To prevent the reference grammar from getting out of sync with the real
grammar, panic if RustLexer.tokens contains an unknown token in a
similar way that verify.rs panics if it encounters an unknown binary
operation token.
Remove printing of secret number at final source.
Nothing uses it anymore.
The error message was misleading, so I adjusted it, and I also added the long diagnostics for this error (resolves one point in rust-lang#24407).

I was unsure about how to phrase the error message. Is “generic parameter binding” the correct term for this?
…klabnik

Unsafe destructors were removed, added remarks about needed feature gates.

cc rust-lang#16676 
r? @steveklabnik
…, r=alexcrichton

I know this is the most trivial thing since it's *just* the model lexer, not the real lexer, but [it is simpler to read](rust-lang#15883 (comment)) and it'd be great if it was up to date but [it's been rotting](rust-lang#22379) and this is a tiny bit of that.

Thanks!!!!!!
…steveklabnik

Enhance Google-ability of `.fold()` by mentioning 'reduce' and 'inject' in the docs.

Motivation: [This thread on users.rust-lang.org](https://users.rust-lang.org/t/find-the-shortest-string-in-a-vector/1247)
…bnik

I noticed this feature added in rust-lang#23289 was missing from the `Search tricks`. Thanks!

r? @steveklabnik
Let me know if I didn't follow correct procedure - seems a trivial change and no one that can be automatically tested.
Remove printing of secret number at final source.
@steveklabnik
Copy link
Member Author

@bors: r+ p=1 force

@rust-highfive
Copy link
Collaborator

r? @Aatch

(rust_highfive has picked a reviewer for you, use r? to override)

@bors
Copy link
Contributor

bors commented May 7, 2015

📌 Commit 5ac5203 has been approved by steveklabnik

@bors
Copy link
Contributor

bors commented May 7, 2015

⌛ Testing commit 5ac5203 with merge acb3aa0...

bors added a commit that referenced this pull request May 7, 2015
@steveklabnik steveklabnik assigned steveklabnik and unassigned Aatch May 7, 2015
@bors bors merged commit 5ac5203 into rust-lang:master May 7, 2015
@Centril Centril added the rollup A PR which is a rollup label Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR which is a rollup
Projects
None yet
Development

Successfully merging this pull request may close these issues.