Alex Crichton
3a54a4ee6b
Test fixes from the rollup
2014-09-17 09:37:39 -07:00
Alex Crichton
665e759d5a
rollup merge of #17333 : mo/drop_unused_diagnostic_codes
2014-09-17 08:50:16 -07:00
Alex Crichton
60d2689ab2
rollup merge of #17329 : alexcrichton/snapshots
2014-09-17 08:50:05 -07:00
Alex Crichton
3cf43aeb4f
rollup merge of #17326 : brson/wintest
2014-09-17 08:50:04 -07:00
Alex Crichton
4a7665c808
rollup merge of #17312 : Manishearth/builtin-shrink
2014-09-17 08:49:46 -07:00
Alex Crichton
498e35aa87
rollup merge of #17311 : jakub-/issue-17302
2014-09-17 08:49:41 -07:00
Alex Crichton
2278f9575d
rollup merge of #17310 : nikomatsakis/type-bounds-generalize-to-multiple-object-bounds
2014-09-17 08:49:39 -07:00
Alex Crichton
df34b082ab
rollup merge of #17309 : aturon/deprecate-libnum
2014-09-17 08:49:37 -07:00
Alex Crichton
d76f51c264
rollup merge of #17297 : treeman/net-unix
2014-09-17 08:49:33 -07:00
Alex Crichton
1921055dda
rollup merge of #17294 : theevocater/master
2014-09-17 08:49:31 -07:00
Alex Crichton
9dfcb41926
rollup merge of #17292 : thestinger/tasks
2014-09-17 08:49:28 -07:00
Alex Crichton
f4da040e62
rollup merge of #17290 : bkoropoff/issue-17283
2014-09-17 08:49:26 -07:00
Alex Crichton
04c537ff56
rollup merge of #17285 : brson/relchan
2014-09-17 08:49:21 -07:00
Alex Crichton
6f575d1b9c
rollup merge of #17281 : saysjonathan/missing-semicolon
2014-09-17 08:49:12 -07:00
Alex Crichton
e65f6714b0
rollup merge of #17279 : jakub-/for-loop-unused-variable
2014-09-17 08:49:10 -07:00
Alex Crichton
b27947ac4d
rollup merge of #17278 : steveklabnik/gh17242
2014-09-17 08:49:08 -07:00
Alex Crichton
b4bff574d2
rollup merge of #17277 : steveklabnik/doc_fix_rollup
2014-09-17 08:49:06 -07:00
Alex Crichton
e8a3ac5cb0
rollup merge of #17276 : treeman/json-comma
2014-09-17 08:49:04 -07:00
Alex Crichton
27af691017
rollup merge of #17226 : P1start/rustdoc-colour
2014-09-17 08:48:53 -07:00
Alex Crichton
8875584363
rollup merge of #16936 : nham/two_way_makeover
2014-09-17 08:48:33 -07:00
Alex Crichton
e68c95329e
rollup merge of #16931 : omasanori/unnecessary-path-brackets
2014-09-17 08:48:31 -07:00
Alex Crichton
fc6eb9a911
rollup merge of #16889 : P1start/array-not-vector
2014-09-17 08:48:27 -07:00
bors
aac078dca5
auto merge of #17254 : gamazeps/rust/issue17210, r=alexcrichton
...
Closes #17210
2014-09-17 12:06:22 +00:00
bors
e719db24a0
auto merge of #17247 : huonw/rust/toggle-clone, r=alexcrichton
...
This needs a clone otherwise each successive insertion detaches `toggle`
from the previous position.
Fixes #17125 .
2014-09-17 10:21:17 +00:00
bors
12b757b370
auto merge of #17246 : bkoropoff/rust/issue-17216, r=pnkfelix
...
Trans the cleanup scope of for loop bindings so we don't leak resources. Regression test included.
Closes #17216
2014-09-17 08:31:18 +00:00
P1start
8b88811419
rustdoc: Correctly distinguish enums and types
...
This is done by adding a new field to the `DefTy` variant of `middle::def::Def`,
which also clarifies an error message in the process.
Closes #16712 .
2014-09-17 18:53:54 +12:00
bors
88cb454b91
auto merge of #17160 : nick29581/rust/front, r=pcwalton
...
r?
2014-09-17 05:56:15 +00:00
P1start
ef4b921599
Restore colour to rustdoc, add colour to ffi functions and methods
2014-09-17 17:23:47 +12:00
Nick Cameron
3a01d0f1e3
rebasing fixes
2014-09-17 16:53:20 +12:00
Nick Cameron
74db87b99d
move feature_gate to libsyntax
2014-09-17 16:53:20 +12:00
Nick Cameron
375c95b7ad
move std_inject to libsyntax
2014-09-17 16:53:20 +12:00
Nick Cameron
520671f150
move most of front to libsyntax
2014-09-17 16:53:20 +12:00
Martin Olsson
573aa3549a
Drop a few unused diagnostic codes
...
Avoids warnings during bootstrap, similar to:
src/librustc/lib.rs:149:1: 149:39 warning: diagnostic code E0099 never used
src/librustc/lib.rs:149 __build_diagnostic_array!(DIAGNOSTICS)
All of these codes stopped being used in this commit:
688ddf7 ("typeck/kind -- stop using old trait framework.")
See also similar fix: https://github.com/rust-lang/rust/issues/16449
2014-09-17 06:32:56 +02:00
bors
ff613abaa2
auto merge of #17227 : tshepang/rust/stronger-break, r=aturon
...
Remove trailing whitespace while at it
2014-09-17 03:46:15 +00:00
Brian Koropoff
0e230c04dd
Add regression test for issue #17283
2014-09-16 19:21:42 -07:00
Brian Koropoff
3863b68df4
Propagate restrictions against struct literals to the RHS of assignments
...
This prevents confusing errors when accidentally using an assignment
in an `if` expression. For example:
```rust
fn main() {
let x = 1u;
if x = x {
println!("{}", x);
}
}
```
Previously, this yielded:
```
test.rs:4:16: 4:17 error: expected `:`, found `!`
test.rs:4 println!("{}", x);
^
```
With this change, it now yields:
```
test.rs:3:8: 3:13 error: mismatched types: expected `bool`, found `()` (expected bool, found ())
test.rs:3 if x = x {
^~~~~
```
Closes issue #17283
2014-09-16 19:21:42 -07:00
Brian Koropoff
99293b16e4
Convert restriction enum into bitflags
...
This makes having multiple restrictions at once cleaner.
Also drop NO_DOUBLEBAR restriction since it is never used.
2014-09-16 19:21:18 -07:00
Alex Crichton
c4a1c3800b
Register new snapshots
...
This is the first linux snapshot created on our new CentOS 5.10 builders.
Closes #9545
2014-09-16 18:16:38 -07:00
bors
b75b0f7923
auto merge of #17223 : retep998/rust/into_string, r=huonw
...
Replaces some usage of `.to_string()` with `.into_string()`
2014-09-17 01:16:14 +00:00
bors
0e784e1684
auto merge of #17268 : aturon/rust/mut-conventions, r=alexcrichton
...
As per [RFC 52](https://github.com/rust-lang/rfcs/blob/master/active/0052-ownership-variants.md ), use `_mut` suffixes to mark mutable variants, and `into_iter` for moving iterators. Additional details and motivation in the RFC.
Note that the iterator *type* names are not changed by this RFC; those are awaiting a separate RFC for standardization.
Closes #13660
Closes #16810
[breaking-change]
2014-09-16 23:26:11 +00:00
Aaron Turon
fc525eeb4e
Fallout from renaming
2014-09-16 14:37:48 -07:00
bors
ceb9bbfbf5
auto merge of #17213 : mo/rust/fix_typos, r=aturon
2014-09-16 21:36:08 +00:00
Brian Anderson
474d34043e
Use PATH instead of HOME in env! example
...
HOME does not exist under typical windows environments.
2014-09-16 13:51:01 -07:00
Aaron Turon
d8dfe1957b
Align with _mut conventions
...
As per [RFC
52](https://github.com/rust-lang/rfcs/blob/master/active/0052-ownership-variants.md ),
use `_mut` suffixes to mark mutable variants, and `into_iter` for moving
iterators.
[breaking-change]
2014-09-16 11:46:52 -07:00
Jakub Wieczorek
bdd9ee3cc7
Run cleanup for base struct in functional struct update expressions
...
Fixes #17302 .
2014-09-16 20:34:16 +02:00
Aaron Turon
2ff07af996
Deprecate libnum in favor of rust-lang/num
...
This is part of the migration of crates into the Cargo ecosystem. There
is now an external repository https://github.com/rust-lang/num for bignums.
The single use of libnum elsewhere in the repository is for a shootout
benchmark, which is being moved into the external crate.
Due to deprecation, this is a:
[breaking-change]
2014-09-16 11:29:29 -07:00
Niko Matsakis
e86c87a81e
Generalize lifetime bounds on type parameters to support multiple
...
lifetime bounds. This doesn't really cause any difficulties, because
we already had to accommodate the fact that multiple implicit bounds
could accumulate. Object types still require precisely one lifetime
bound. This is a pre-step towards generalized where clauses (once you
have lifetime bounds in where clauses, it is harder to restrict them
to exactly one).
2014-09-16 14:18:06 -04:00
Manish Goregaokar
9c3a08551a
Clean up code for unused_must_use lint
2014-09-16 22:53:19 +05:30
bors
828e075abd
auto merge of #17266 : Gankro/rust/vec-move, r=alexcrichton
...
Seems to correctly report exact size, so it should claim to do so formally.
2014-09-16 17:06:00 +00:00
Jake Kaufman
7d00eb6133
Update triple per comments
2014-09-16 08:44:47 -07:00