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
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
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
Benjamin Herr
af633ce157
native: fix passing errno to parent after fork
...
The bitshifts were wrong in that they invoked undefined behavior and
only passed the lower byte of the presumed-to-be-32bit errno value.
Apparently all actually possible values for errno happen to be easily
under 256, so this didn't cause any actual problems.
This commit fixes the bitshifts, but doesn't generalize to errno types
that aren't 32bit.
2014-10-02 21:16:37 +02:00
Aaron Turon
d2ea0315e0
Revert "Use slice syntax instead of slice_to, etc."
...
This reverts commit 40b9f5ded50ac4ce8c9323921ec556ad611af6b7.
2014-10-02 11:48:07 -07:00
Aaron Turon
c0c6c89589
Revert "Remove the _
suffix from slice methods."
...
This reverts commit df2f1fa7680a86ba228f004e7de731e91a1df1fe.
2014-10-02 11:47:58 -07:00
Aaron Turon
7bf56df4c8
Revert "Put slicing syntax behind a feature gate."
...
This reverts commit 95cfc35607ccf5f02f02de56a35a9ef50fa23a82.
2014-10-02 11:47:51 -07:00
Keegan McAllister
3f0c483594
Disable the Roman numerals test on Android due to cross-compile issues
2014-10-02 11:45:25 -07:00
Eduard Burtescu
58bea31ca0
tests: remove uses of Gc.
2014-10-02 17:02:15 +03:00
Eduard Burtescu
db55e70c97
syntax: mark the managed_boxes feature as Removed.
2014-10-02 17:02:03 +03:00
bors
b419e9e739
auto merge of #17663 : eddyb/rust/method-origin-subst, r=nikomatsakis
...
Fixes #17662 .
2014-10-02 13:22:21 +00:00
bors
84a4a07bbd
auto merge of #17434 : P1start/rust/borrowck-messages, r=nikomatsakis
...
This was originally part of #17215 .
Closes #15506 .
Closes #15630 .
Closes #17263 .
This also partially implements #15838 .
2014-10-02 11:32:25 +00:00
bors
dd7f00de80
auto merge of #17681 : jgallagher/rust/dep-info-escape-spaces, r=alexcrichton
...
cc #17627
2014-10-02 08:12:19 +00:00
Nick Cameron
45fd7cd359
Enable a test for .. in range patterns.
2014-10-02 17:35:20 +13:00
P1start
02c6ebde7e
Change the use of moved value
error to be more accurate
...
Previously it output `partially moved` to eagerly. This updates it to be more
accurate and output `collaterally moved` for use of values that were invalidated
by moves out of different fields in the same struct.
Closes #15630 .
2014-10-02 15:51:05 +13:00
Nick Cameron
95cfc35607
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-02 13:23:36 +13:00
Nick Cameron
df2f1fa768
Remove the _
suffix from slice methods.
...
Deprecates slicing methods from ImmutableSlice/MutableSlice in favour of slicing syntax or the methods in Slice/SliceMut.
Closes #17273 .
2014-10-02 13:19:45 +13:00
Nick Cameron
40b9f5ded5
Use slice syntax instead of slice_to, etc.
2014-10-02 13:19:45 +13:00