Nick Cameron
2d3823441f
Put slicing syntax behind a feature gate.
...
[breaking-change]
If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
2014-10-07 15:49:53 +13:00
Nick Cameron
59976942ea
Use slice syntax instead of slice_to, etc.
2014-10-07 15:49:53 +13:00
bors
7c8fc95aca
auto merge of #17803 : bkoropoff/rust/issue-17021, r=alexcrichton
...
This closes issue #17021 .
2014-10-06 09:27:19 +00:00
bors
0e2f0acf22
auto merge of #17781 : P1start/rust/bitflags-lints, r=alexcrichton
...
Closes #17773 .
2014-10-06 07:37:19 +00:00
P1start
e3ca987f74
Rename the file permission statics in std::io to be uppercase
...
For example, this renames `GroupRWX` to `GROUP_RWX`, and deprecates the old
name. Code using these statics should be updated accordingly.
2014-10-06 16:43:34 +13:00
bors
f50b56c62b
auto merge of #17414 : jakub-/rust/issue-17405, r=alexcrichton
...
Fixes #17405 .
Fixes #17518 .
Fixes #17800 .
2014-10-06 02:52:22 +00:00
Jakub Wieczorek
b9896cbf6e
Fix handling of struct variants in a couple of places
...
Fixes #17405 .
Fixes #17518 .
Fixes #17800 .
2014-10-05 22:32:47 +02:00
Brian Koropoff
1694bf64ba
Build regression test for issue #17021 with -g
...
This causes it to hit the previously ICEing debuginfo codepath
2014-10-05 12:19:58 -07:00
bors
f56c1c91f3
auto merge of #17762 : bkoropoff/rust/issue-17734, r=alexcrichton
...
Closes issue #17734
r? @nick29581
2014-10-05 19:17:07 +00:00
Brian Koropoff
714c8d8659
Add regression test for issue #17734
2014-10-05 10:09:24 -07:00
bors
c586490715
auto merge of #17785 : P1start/rust/diagnostics, r=alexcrichton
...
Closes #17765 .
Closes #15524 .
Closes #14772 .
2014-10-05 10:57:04 +00:00
bors
5660db2508
auto merge of #16970 : kmcallister/rust/llvm-unreachable, r=thestinger
...
I'm not sure how to add an automated test for this.
2014-10-05 07:17:09 +00:00
Keegan McAllister
675aa7692d
Add tests for intrinsics::unreachable
2014-10-04 20:09:09 -07:00
P1start
cc31d9cabc
Give a more descriptive error when marking non-test items as #[test]
...
Closes #14772 .
2014-10-05 14:16:32 +13:00
P1start
a29df44f51
Tweak ‘discriminant value already exists’ error message
...
Closes #15524 .
2014-10-05 14:16:32 +13:00
P1start
88baca7486
Rename vector patterns to array patterns
...
Closes #17765 .
2014-10-05 12:08:37 +13:00
bors
07aeac8ac8
auto merge of #17761 : bkoropoff/rust/issue-17758, r=alexcrichton
...
This fixes an ICE and closes issue #17758
2014-10-04 21:57:08 +00:00
bors
e434aa1cf7
auto merge of #17760 : bkoropoff/rust/issue-17737, r=eddyb
...
This is a quick fix. In the long term, the `TyVisitor` interface should be expanded to better represent closure types.
Closes issue #17737
2014-10-04 17:47:06 +00:00
bors
749ff5e76a
auto merge of #17755 : alexcrichton/rust/unblock-snapshot, r=eddyb
...
Hopefully unblocks a snapshot
2014-10-04 06:12:08 +00:00
Brian Koropoff
6f6d13a7c7
Add regression test for issue #17758
2014-10-03 22:37:08 -07:00
Brian Koropoff
404db68da4
Add regression test for issue #17737
2014-10-03 20:07:43 -07:00
bors
136ab3c6b1
auto merge of #17731 : bkoropoff/rust/unboxed-by-ref, r=pcwalton
...
This began as an attempt to fix an ICE in borrowck (issue #17655 ), but the rabbit hole went pretty deep. I ended up plumbing support for capture-by-reference unboxed closures all the way into trans.
Closes issue #17655 .
2014-10-04 00:17:04 +00:00
Alex Crichton
1e22b20884
test: Fix a test that fails when cross compiling
...
Hopefully unblocks a snapshot
2014-10-03 16:13:33 -07:00
Alex Crichton
39f4bf7b1c
Test fixes from the rollup
2014-10-03 11:43:15 -07:00
Alex Crichton
48cdb55d79
rollup merge of #17739 : eddyb/fix-process-test
2014-10-03 07:39:45 -07:00
Alex Crichton
8993a0aeba
rollup merge of #17730 : alexcrichton/snapshot
2014-10-03 07:38:41 -07:00
Alex Crichton
79d0e82f73
rollup merge of #17729 : alexcrichton/issue-17718-start
2014-10-03 07:38:29 -07:00
Alex Crichton
2a11f2b544
rollup merge of #17215 : P1start/lints
2014-10-03 07:38:12 -07:00
Eduard Burtescu
ef693885a7
Fix a race condition between remove_from_env and other io::process tests.
2014-10-03 17:16:05 +03:00
Eduard Burtescu
da7dcee8f1
tests: remove old compile-fail test asserting the removal of const.
2014-10-03 14:26:07 +03:00
Brian Koropoff
521ca31071
Add some more test coverage of by-ref unboxed closures
2014-10-03 00:57:21 -07:00
P1start
a667a6917b
Move the lint for the stability lints to the method name only
...
Closes #17337 .
2014-10-03 20:39:57 +13:00
P1start
f56c67ba86
Change rustc pretty-printing to print [T, ..n] instead of [T, .. n]
2014-10-03 20:39:56 +13:00
P1start
042cdeefc7
Correct error message for invalid ref/mut bindings
...
Closes #15914 .
2014-10-03 20:39:56 +13:00
P1start
45044124e4
Improve the non_snake_case lint to give better suggestions
2014-10-03 20:39:56 +13:00
P1start
94bcd3539c
Set the non_uppercase_statics lint to warn by default
2014-10-03 20:39:56 +13:00
bors
9a2286d3a1
auto merge of #16995 : kmcallister/rust/plugin-tutorial, r=alexcrichton
...
@steveklabnik, are you interested in looking this over?
2014-10-03 07:33:26 +00:00
Brian Koropoff
39344c2d7e
Rehabilitate an unboxed closure test
...
This test works as a regression test for issue #17655 . It also
exercises mutation of by-ref upvars.
2014-10-02 21:08:46 -07:00
Alex Crichton
d911936dbd
Merge branch 'travis' into rollup
...
Conflicts:
.travis.yml
2014-10-02 21:02:36 -07:00
Alex Crichton
7e22af3582
syntax: Enable parsing of const globals
...
This rewrites them to the current `ItemStatic` production of the compiler, but I
want to get this into a snapshot. It will be illegal to use a `static` in a
pattern of a `match` statement, so all those current uses will need to be
rewritten to `const` once it's implemented. This requires that the stage0
snapshot is able to parse `const`.
cc #17718
2014-10-02 19:37:06 -07:00
Alex Crichton
06a6ba1d6f
test: Don't depend on /bin/bash
...
Our FreeBSD bots apparently don't have bash installed, and it's ok to run with
sh anyway!
Unblocks a snapshot
2014-10-02 19:34:26 -07:00
Alex Crichton
f96ee10e88
Test fixes from the rollup
2014-10-02 15:43:37 -07:00
Alex Crichton
7ae802f57b
rollup merge of #17666 : eddyb/take-garbage-out
...
Conflicts:
src/libcollections/lib.rs
src/libcore/lib.rs
src/librustdoc/lib.rs
src/librustrt/lib.rs
src/libserialize/lib.rs
src/libstd/lib.rs
src/test/run-pass/issue-8898.rs
2014-10-02 14:53:18 -07:00
Alex Crichton
9998052e21
rollup merge of #17722 : jakub-/issue-17169
2014-10-02 14:51:10 -07:00
Alex Crichton
fba72d3825
rollup merge of #17721 : jakub-/resolved-issues
2014-10-02 14:51:05 -07:00
Alex Crichton
2bb44554de
rollup merge of #17720 : ben0x539/shifts
2014-10-02 14:50:49 -07:00
Alex Crichton
d596aa25e1
rollup merge of #17702 : nick29581/enable-dots-test
2014-10-02 14:50:30 -07:00
Alex Crichton
51820b610e
rollup merge of #17646 : bkoropoff/cast-ice
2014-10-02 14:50:08 -07:00
Jakub Wieczorek
52d2f2a938
Add tests for a few resolved issues
2014-10-02 22:21:50 +02:00
Jakub Wieczorek
f2973f63a3
Fix cross-crate tuple structs in statics
...
Fixes #17169 .
Fixes #17649 .
2014-10-02 21:31:06 +02:00