Skip to content

Rollup of 3 pull requests #25560

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

Merged
merged 6 commits into from
May 18, 2015
Merged

Rollup of 3 pull requests #25560

merged 6 commits into from
May 18, 2015

Conversation

chellmuth and others added 6 commits May 17, 2015 00:19
This reverts commit 9c7d5ae.

This was wrong... the `continue` was to ignore the latter half of the
tokens file. Another mechanism will have to be used to keep the model
grammar's tokens in sync with the actual grammar's tokens :-/
…x, r=alexcrichton

Tiny fixes collected while reading through the Rust book. If they're too nitpicky please let me know and I'll ignore the next ones. :)

The spaces after the function and closure arguments might be intentional, but they do not make much sense: the usual formatting doesn't have such spaces, and they aren't helping align the three lines together either.

r? @steveklabnik (as suggested by [CONTRIBUTING.md](https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md))
…richton

Hiiii soooo I'm trying to get the reference grammar and associated tests running again, and I swear I tested before but I must have had multiple things going on when I did, because the change I made in rust-lang#25137 to verify.rs is totally wrong. The RustLexer.tokens file that antlr generates has two sections:

```
EQ=1
LT=2
LE=3
EQEQ=4
NE=5
...
COMMENT=56
SHEBANG=57
UTF8_BOM=58
'='=1
'<'=2
'<='=3
'=='=4
...
```

and verify.rs is only interested in the first half-- the `continue` is to ignore the second half. In 9c7d5ae, I made it panic instead. I was trying to make sure verify.rs handled everything that might happen in the first half and complain if it didn't. That would mean the reference grammar was out of sync with at least verify.rs, if not the real grammar. But it's totally ok for verify.rs to not handle the entire second half of the file.

I'm sorry for breaking this :( Good thing these tests aren't being run regularly yet...? 😳
@Manishearth
Copy link
Member Author

@bors: r+ force p=10

@bors
Copy link
Collaborator

bors commented May 18, 2015

📌 Commit 5ed02b5 has been approved by Manishearth

@rust-highfive
Copy link
Contributor

r? @brson

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

@bors
Copy link
Collaborator

bors commented May 18, 2015

⌛ Testing commit 5ed02b5 with merge eb2bbb0...

@bors
Copy link
Collaborator

bors commented May 18, 2015

💔 Test failed - auto-linux-64-nopt-t

@Manishearth
Copy link
Member Author

@bors: retry

@Manishearth
Copy link
Member Author

@bors: force

bors added a commit that referenced this pull request May 18, 2015
@bors
Copy link
Collaborator

bors commented May 18, 2015

⌛ Testing commit 5ed02b5 with merge 84b1e08...

@bors bors merged commit 5ed02b5 into rust-lang:master May 18, 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.

8 participants