Skip to content

Rollup of PRs in the queue; Tuesday #23436

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 37 commits into from
Mar 17, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
fcf3f32
Remove explicit syntax highlight from docs.
jbcrail Mar 13, 2015
d51047d
Strip all leading/trailing newlines
tamird Mar 14, 2015
f576579
Strip trailing whitespace
tamird Mar 14, 2015
73afbef
Misc tidy ups in resolve
nrc Mar 15, 2015
170ccd6
Error if `pub use` references a private item.
nrc Mar 15, 2015
432011d
Fallout in testing.
nrc Mar 15, 2015
2df1ceb
resolve: factor out resolve imports to its own module
nrc Mar 15, 2015
1fd38c1
Reviewer changes
nrc Mar 16, 2015
cbd37d8
[BREAKING] Rename two instances of MAP_NONRESERVE
ubsan Mar 16, 2015
a17f061
Regression test for #9951
tamird Mar 15, 2015
802e707
Regression test for #11820
tamird Mar 15, 2015
a4fa901
Regression test for #13407
tamird Mar 15, 2015
b9f5711
Regression test for #18919
tamird Mar 15, 2015
3a93bdb
Regression test for #19982
tamird Mar 15, 2015
a19bbca
Regression test for #20225
tamird Mar 15, 2015
1759cfa
Consistent spacing
tamird Mar 15, 2015
1d31f31
Regression test for #20261
tamird Mar 15, 2015
c986199
Regression test for #20396
tamird Mar 15, 2015
ef34364
Regression test for #20714
tamird Mar 15, 2015
2522207
Regression test for #16922
tamird Mar 15, 2015
c1f6951
Regression test for #13077
tamird Mar 15, 2015
1b894c6
Improve error handling in libflate
tbu- Mar 15, 2015
b3a4485
std: Stabilize the Write::flush method
alexcrichton Mar 16, 2015
7dbcf08
Fix 404 to crates.io's doc on integrating with a native toolchain
padenot Mar 16, 2015
4b75dc4
thread: 'dur' -> 'duration'
tshepang Mar 16, 2015
e3aefaa
std::io::buffered: Don't use 'flush' in documentation of into_inner
mzabaluev Mar 17, 2015
285cb8e
Rollup merge of #23399 - tbu-:pr_libflate_error, r=huonw
Manishearth Mar 17, 2015
74adeda
Rollup merge of #23400 - nrc:pub_use, r=eddyb
Manishearth Mar 17, 2015
a4b57be
Rollup merge of #23402 - tamird:needstest-tests, r=jakub-
Manishearth Mar 17, 2015
c2671b5
Rollup merge of #23409 - GBGamer:patch-2, r=alexcrichton
Manishearth Mar 17, 2015
925d5ad
Rollup merge of #23415 - alexcrichton:stabilize-flush, r=aturon
Manishearth Mar 17, 2015
e8889c9
Rollup merge of #23417 - padenot:patch-1, r=steveklabnik
Manishearth Mar 17, 2015
46200e5
Rollup merge of #23427 - tshepang:dur-becomes-duration, r=steveklabnik
Manishearth Mar 17, 2015
0b463b0
Rollup merge of #23329 - jbcrail:rm-syntax-highlight, r=sanxiyn
Manishearth Mar 17, 2015
fad4c38
Rollup merge of #23385 - tamird:cleanup-whitespace, r=alexcrichton
Manishearth Mar 17, 2015
2e08306
Rollup merge of #23432 - mzabaluev:io-into-inner-doc, r=alexcrichton
Manishearth Mar 17, 2015
dcec88c
Re-bork whitespace for text file (fixup #23385)
Manishearth Mar 17, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Read ["Installing Rust"] from [The Book].
# Choose one based on platform:
$ pacman -S mingw-w64-i686-toolchain
$ pacman -S mingw-w64-x86_64-toolchain

$ pacman -S base-devel
```

Expand Down
1 change: 0 additions & 1 deletion mk/cfg/x86_64-unknown-linux-gnu.mk
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ CFG_LDPATH_x86_64-unknown-linux-gnu :=
CFG_RUN_x86_64-unknown-linux-gnu=$(2)
CFG_RUN_TARG_x86_64-unknown-linux-gnu=$(call CFG_RUN_x86_64-unknown-linux-gnu,,$(2))
CFG_GNU_TRIPLE_x86_64-unknown-linux-gnu := x86_64-unknown-linux-gnu

2 changes: 0 additions & 2 deletions mk/prepare.mk
Original file line number Diff line number Diff line change
Expand Up @@ -221,5 +221,3 @@ prepare-maybe-clean-$(1):


endef


1 change: 0 additions & 1 deletion mk/util.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ else
endif

S := $(CFG_SRC_DIR)

98 changes: 49 additions & 49 deletions src/doc/grammar.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ transcriber : '(' transcriber * ')' | '[' transcriber * ']'

# Items and attributes

**FIXME:** grammar?
**FIXME:** grammar?

## Items

Expand All @@ -301,7 +301,7 @@ item : mod_item | fn_item | type_item | struct_item | enum_item

### Type Parameters

**FIXME:** grammar?
**FIXME:** grammar?

### Modules

Expand Down Expand Up @@ -338,35 +338,35 @@ path_item : ident | "mod" ;

### Functions

**FIXME:** grammar?
**FIXME:** grammar?

#### Generic functions

**FIXME:** grammar?
**FIXME:** grammar?

#### Unsafety

**FIXME:** grammar?
**FIXME:** grammar?

##### Unsafe functions

**FIXME:** grammar?
**FIXME:** grammar?

##### Unsafe blocks

**FIXME:** grammar?
**FIXME:** grammar?

#### Diverging functions

**FIXME:** grammar?
**FIXME:** grammar?

### Type definitions

**FIXME:** grammar?
**FIXME:** grammar?

### Structures

**FIXME:** grammar?
**FIXME:** grammar?

### Constant items

Expand All @@ -382,15 +382,15 @@ static_item : "static" ident ':' type '=' expr ';' ;

#### Mutable statics

**FIXME:** grammar?
**FIXME:** grammar?

### Traits

**FIXME:** grammar?
**FIXME:** grammar?

### Implementations

**FIXME:** grammar?
**FIXME:** grammar?

### External blocks

Expand All @@ -401,11 +401,11 @@ extern_block : [ foreign_fn ] * ;

## Visibility and Privacy

**FIXME:** grammar?
**FIXME:** grammar?

### Re-exporting and Visibility

**FIXME:** grammar?
**FIXME:** grammar?

## Attributes

Expand All @@ -420,19 +420,19 @@ meta_seq : meta_item [ ',' meta_seq ] ? ;

## Statements

**FIXME:** grammar?
**FIXME:** grammar?

### Declaration statements

**FIXME:** grammar?
**FIXME:** grammar?

A _declaration statement_ is one that introduces one or more *names* into the
enclosing statement block. The declared names may denote new slots or new
items.

#### Item declarations

**FIXME:** grammar?
**FIXME:** grammar?

An _item declaration statement_ has a syntactic form identical to an
[item](#items) declaration within a module. Declaring an item — a
Expand All @@ -450,35 +450,35 @@ init : [ '=' ] expr ;

### Expression statements

**FIXME:** grammar?
**FIXME:** grammar?

## Expressions

**FIXME:** grammar?
**FIXME:** grammar?

#### Lvalues, rvalues and temporaries

**FIXME:** grammar?
**FIXME:** grammar?

#### Moved and copied types

**FIXME:** Do we want to capture this in the grammar as different productions?
**FIXME:** Do we want to capture this in the grammar as different productions?

### Literal expressions

**FIXME:** grammar?
**FIXME:** grammar?

### Path expressions

**FIXME:** grammar?
**FIXME:** grammar?

### Tuple expressions

**FIXME:** grammar?
**FIXME:** grammar?

### Unit expressions

**FIXME:** grammar?
**FIXME:** grammar?

### Structure expressions

Expand Down Expand Up @@ -527,7 +527,7 @@ idx_expr : expr '[' expr ']' ;

### Unary operator expressions

**FIXME:** grammar?
**FIXME:** grammar?

### Binary operator expressions

Expand All @@ -537,31 +537,31 @@ binop_expr : expr binop expr ;

#### Arithmetic operators

**FIXME:** grammar?
**FIXME:** grammar?

#### Bitwise operators

**FIXME:** grammar?
**FIXME:** grammar?

#### Lazy boolean operators

**FIXME:** grammar?
**FIXME:** grammar?

#### Comparison operators

**FIXME:** grammar?
**FIXME:** grammar?

#### Type cast expressions

**FIXME:** grammar?
**FIXME:** grammar?

#### Assignment expressions

**FIXME:** grammar?
**FIXME:** grammar?

#### Compound assignment expressions

**FIXME:** grammar?
**FIXME:** grammar?

#### Operator precedence

Expand Down Expand Up @@ -680,49 +680,49 @@ return_expr : "return" expr ? ;

# Type system

**FIXME:** is this entire chapter relevant here? Or should it all have been covered by some production already?
**FIXME:** is this entire chapter relevant here? Or should it all have been covered by some production already?

## Types

### Primitive types

**FIXME:** grammar?
**FIXME:** grammar?

#### Machine types

**FIXME:** grammar?
**FIXME:** grammar?

#### Machine-dependent integer types

**FIXME:** grammar?
**FIXME:** grammar?

### Textual types

**FIXME:** grammar?
**FIXME:** grammar?

### Tuple types

**FIXME:** grammar?
**FIXME:** grammar?

### Array, and Slice types

**FIXME:** grammar?
**FIXME:** grammar?

### Structure types

**FIXME:** grammar?
**FIXME:** grammar?

### Enumerated types

**FIXME:** grammar?
**FIXME:** grammar?

### Pointer types

**FIXME:** grammar?
**FIXME:** grammar?

### Function types

**FIXME:** grammar?
**FIXME:** grammar?

### Closure types

Expand All @@ -739,23 +739,23 @@ bound := path | lifetime

### Object types

**FIXME:** grammar?
**FIXME:** grammar?

### Type parameters

**FIXME:** grammar?
**FIXME:** grammar?

### Self types

**FIXME:** grammar?
**FIXME:** grammar?

## Type kinds

**FIXME:** this this probably not relevant to the grammar...

# Memory and concurrency models

**FIXME:** is this entire chapter relevant here? Or should it all have been covered by some production already?
**FIXME:** is this entire chapter relevant here? Or should it all have been covered by some production already?

## Memory model

Expand Down
2 changes: 1 addition & 1 deletion src/doc/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ right at home if you've used tools like [Bundler](http://bundler.io/),
[npm](https://www.npmjs.org/), or [pip](https://pip.pypa.io/en/latest/).
There's no `Makefile`s or endless `autotools` output here. (Rust's tooling does
[play nice with external libraries written in those
tools](http://crates.io/native-build.html), if you need to.)
tools](http://doc.crates.io/build-script.html), if you need to.)

Enough about tools, let's talk code!

Expand Down
1 change: 0 additions & 1 deletion src/doc/not_found.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,3 @@ function populate_rust_search() {
populate_site_search();
populate_rust_search();
</script>

8 changes: 5 additions & 3 deletions src/doc/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1961,16 +1961,18 @@ module through the rules above. It essentially allows public access into the
re-exported item. For example, this program is valid:

```
pub use self::implementation as api;
pub use self::implementation::api;

mod implementation {
pub fn f() {}
pub mod api {
pub fn f() {}
}
}

# fn main() {}
```

This means that any external crate referencing `implementation::f` would
This means that any external crate referencing `implementation::api::f` would
receive a privacy violation, while the path `api::f` would be allowed.

When re-exporting a private item, it can be thought of as allowing the "privacy
Expand Down
2 changes: 1 addition & 1 deletion src/doc/trpl/arrays-vectors-and-slices.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ languages.

A *vector* is a dynamic or "growable" array, implemented as the standard
library type [`Vec<T>`](../std/vec/) (we'll talk about what the `<T>` means
later). Vectors always allocate their data on the heap. Vectors are to slices
later). Vectors always allocate their data on the heap. Vectors are to slices
what `String` is to `&str`. You can create them with the `vec!` macro:

```{rust}
Expand Down
4 changes: 2 additions & 2 deletions src/doc/trpl/crates-and-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,9 @@ module, we now have a `phrases::japanese::hello()` function and a
`phrases::japanese::farewells::goodbye()`. Our internal organization doesn't
define our external interface.

Here we have a `pub use` for each function we want to bring into the
Here we have a `pub use` for each function we want to bring into the
`japanese` scope. We could alternatively use the wildcard syntax to include
everything from `greetings` into the current scope: `pub use self::greetings::*`.
everything from `greetings` into the current scope: `pub use self::greetings::*`.

What about the `self`? Well, by default, `use` declarations are absolute paths,
starting from your crate root. `self` makes that path relative to your current
Expand Down
Loading