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 7 pull requests #25303

Merged
merged 25 commits into from
May 11, 2015
Merged

Rollup of 7 pull requests #25303

merged 25 commits into from
May 11, 2015

Conversation

frewsxcv and others added 18 commits May 10, 2015 16:32
The reference was claiming all vectors all bounds-checked at run-time, when constant vectors are usually checked at compile-time.

For the changed example see http://is.gd/28ak9E
Namely an optional "pub" before any item. The "pub" in the Use
declaration section should use this too.
The syntax for re-exporting privacy is covered in the use declaration
item.
Some of this text is duplicated in the reference (and belongs there) so
remove it. It says item grammar is the same, so point to that grammar
section.
Both external crate declarations and use declarations need to end with a
semicolon.
Between ffc5f1c, when grammar.md was created by copying parts of the
reference, and 8cf2552, when all EBNF was removed from reference.md,
there were parts of the grammar that were updated in reference.md but
not grammar.md, and then they weren't copied over because they existed
already, but they were slightly out of date.

Example: the `path_item : ident | "self" ;` rule in Use declarations was
changed from "mod" to "self" in the reference in 195fd9a but wasn't
updated in the grammar.
@rust-highfive
Copy link
Collaborator

r? @steveklabnik

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

The reference was claiming all vectors all bounds-checked at run-time, when constant vectors are usually checked at compile-time.

For the changed example see http://is.gd/28ak9E

Also fixed a minor grammar issue.
Several Minor API / Reference Documentation Fixes

- Fix a few small errors in the reference.
- Fix paper cuts in the API docs.

Fixes rust-lang#24882
Fixes rust-lang#25233
Fixes rust-lang#25250
…r=steveklabnik

Maybe it's me, but I really needed an example to understand if let and refutable statements.
Playpen: http://is.gd/mjX3Gf

Let me know if the variable names are too, uh, culinary.
…eklabnik

Hiiii, I've got another chunk of updates to the grammar documentation! ⭐ 🌟 🌠 

Chipping away at rust-lang#22445, still have some more to go. I'm learning so much!!!
@Manishearth
Copy link
Member Author

@bors: r+ p=10 force

@bors
Copy link
Contributor

bors commented May 11, 2015

📌 Commit 2b0191e has been approved by Manishearth

@bors
Copy link
Contributor

bors commented May 11, 2015

⌛ Testing commit 2b0191e with merge f697041...

bors added a commit that referenced this pull request May 11, 2015
@bors bors merged commit 2b0191e into rust-lang:master May 11, 2015
@bors bors mentioned this pull request May 11, 2015
@Manishearth Manishearth deleted the rollup branch May 11, 2015 16:46
@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.

None yet

8 participants