Skip to content

Rollup of 16 pull requests - #25175

Merged
bors merged 39 commits into
rust-lang:masterfrom
steveklabnik:rollup
May 7, 2015
Merged

Rollup of 16 pull requests#25175
bors merged 39 commits into
rust-lang:masterfrom
steveklabnik:rollup

Conversation

cactoriumand 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

Copy link
Copy Markdown
ContributorAuthor

@bors: r+ p=1 force

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @Aatch

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

@bors

bors commented May 7, 2015

Copy link
Copy Markdown
Collaborator

📌 Commit 5ac5203 has been approved by steveklabnik

@bors

bors commented May 7, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 5ac5203 with merge acb3aa0...

bors added a commit that referenced this pull request May 7, 2015
@bors

bors commented May 7, 2015

Copy link
Copy Markdown
Collaborator

@bors
bors merged commit 5ac5203 into rust-lang:masterMay 7, 2015
@CentrilCentril added the rollup A PR which is a rollup label Oct 2, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rollupA PR which is a rollup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

16 participants

@steveklabnik@rust-highfive@bors@Aatch@Centril@cactorium@ruuda@janne@carols10cents@hibariya@tshepang@rydotyosh@piatra@banks@killercup@michaelwu