John Gallagher
3db9070e9c
Add tests for new reserved keywords abstract,final,override
2014-10-07 22:19:02 -04:00
bors
e62ef37cfa
auto merge of #17807 : nick29581/rust/slice6, r=aturon
...
r? @aturon
2014-10-07 06:17:11 +00:00
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
Aaron Turon
d007d44dad
Revise DST test to not require duplicate errors.
2014-10-06 16:32:30 -07: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
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
Brian Koropoff
4d2ff432e4
Add regression test for issue #17780
2014-10-05 00:26:06 -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
Felix Raimundo
e69f2ab8c0
Changed extern crate foo as bar; error message
...
Closes #17709
2014-10-04 19:51:22 +02:00
Brian Koropoff
6f6d13a7c7
Add regression test for issue #17758
2014-10-03 22:37:08 -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
79d0e82f73
rollup merge of #17729 : alexcrichton/issue-17718-start
2014-10-03 07:38:29 -07: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
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
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
fba72d3825
rollup merge of #17721 : jakub-/resolved-issues
2014-10-02 14:51:05 -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
Aaron Turon
d2ea0315e0
Revert "Use slice syntax instead of slice_to, etc."
...
This reverts commit 40b9f5ded5 .
2014-10-02 11:48:07 -07:00
Aaron Turon
7bf56df4c8
Revert "Put slicing syntax behind a feature gate."
...
This reverts commit 95cfc35607 .
2014-10-02 11:47:51 -07:00
Eduard Burtescu
58bea31ca0
tests: remove uses of Gc.
2014-10-02 17:02:15 +03: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
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
40b9f5ded5
Use slice syntax instead of slice_to, etc.
2014-10-02 13:19:45 +13:00
P1start
35ff2def5d
Clarify some borrowck errors
...
Closes #17263 .
2014-10-02 11:21:59 +13:00
P1start
a8577be6f4
Output a note when lifetimes cannot be elided from functions
2014-10-02 11:09:29 +13:00
Florian Hahn
49e976d771
Limit recursion depth for macro expansions, closes #17628
2014-10-01 11:46:04 +02:00
bors
2f15dcd4d3
auto merge of #17584 : pcwalton/rust/range-patterns-dotdotdot, r=nick29581
...
This breaks code that looks like:
match foo {
1..3 => { ... }
}
Instead, write:
match foo {
1...3 => { ... }
}
Closes #17295 .
r? @nick29581
2014-10-01 03:17:24 +00:00
Brian Koropoff
93408be788
Add regression test for issue #17444
2014-09-30 20:07:09 -07:00
Kevin Ballard
8a60952100
Move if let behind a feature gate
2014-09-30 18:54:03 +02:00
Kevin Ballard
976438f78f
Produce a better error for irrefutable if let patterns
...
Modify ast::ExprMatch to include a new value of type ast::MatchSource,
making it easy to tell whether the match was written literally or
produced via desugaring. This allows us to customize error messages
appropriately.
2014-09-30 18:54:02 +02:00
Patrick Walton
416144b827
librustc: Forbid .. in range patterns.
...
This breaks code that looks like:
match foo {
1..3 => { ... }
}
Instead, write:
match foo {
1...3 => { ... }
}
Closes #17295 .
[breaking-change]
2014-09-30 09:11:26 -07:00
Nick Cameron
1c36d1c71d
Emit an error rather than ICEing for a missing built-in bound lang item.
...
closes #17392
2014-09-30 11:30:08 +13:00
Alex Crichton
d3e171861f
Test fixes from the rollup
2014-09-29 10:13:31 -07:00
Alex Crichton
915511ec6d
rollup merge of #17614 : nick29581/slice3
2014-09-29 08:14:39 -07:00
Alex Crichton
29216b5e5c
rollup merge of #17613 : bkoropoff/issue-17593
2014-09-29 08:14:36 -07:00
Alex Crichton
0358f31127
rollup merge of #17598 : bkoropoff/issue-17441
2014-09-29 08:14:27 -07:00
Alex Crichton
7784a8d397
rollup merge of #17592 : kmcallister/inline-asm-loc
2014-09-29 08:14:23 -07:00