summary refs log tree commit diff
path: root/src/test/compile-fail
AgeCommit message (Collapse)AuthorLines
2014-10-07auto merge of #17807 : nick29581/rust/slice6, r=aturonbors-1/+11
r? @aturon
2014-10-07Put slicing syntax behind a feature gate.Nick Cameron-0/+10
[breaking-change] If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
2014-10-07Use slice syntax instead of slice_to, etc.Nick Cameron-1/+1
2014-10-06Revise DST test to not require duplicate errors.Aaron Turon-2/+0
2014-10-05Fix handling of struct variants in a couple of placesJakub Wieczorek-1/+58
Fixes #17405. Fixes #17518. Fixes #17800.
2014-10-05auto merge of #17785 : P1start/rust/diagnostics, r=alexcrichtonbors-3/+43
Closes #17765. Closes #15524. Closes #14772.
2014-10-05Give a more descriptive error when marking non-test items as #[test]P1start-0/+16
Closes #14772.
2014-10-05Tweak ‘discriminant value already exists’ error messageP1start-1/+25
Closes #15524.
2014-10-05Rename vector patterns to array patternsP1start-2/+2
Closes #17765.
2014-10-03Add regression test for issue #17758Brian Koropoff-0/+22
2014-10-04auto merge of #17731 : bkoropoff/rust/unboxed-by-ref, r=pcwaltonbors-0/+40
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-03rollup merge of #17729 : alexcrichton/issue-17718-startAlex Crichton-2/+8
2014-10-03tests: remove old compile-fail test asserting the removal of `const`.Eduard Burtescu-11/+0
2014-10-03Add some more test coverage of by-ref unboxed closuresBrian Koropoff-0/+40
2014-10-03Move the lint for the stability lints to the method name onlyP1start-0/+23
Closes #17337.
2014-10-03Change rustc pretty-printing to print [T, ..n] instead of [T, .. n]P1start-9/+9
2014-10-03Correct error message for invalid `ref`/`mut` bindingsP1start-0/+14
Closes #15914.
2014-10-03Improve the `non_snake_case` lint to give better suggestionsP1start-1/+4
2014-10-03Set the `non_uppercase_statics` lint to warn by defaultP1start-2/+4
2014-10-02syntax: Enable parsing of `const` globalsAlex Crichton-0/+17
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-02rollup merge of #17666 : eddyb/take-garbage-outAlex Crichton-557/+67
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-02rollup merge of #17721 : jakub-/resolved-issuesAlex Crichton-0/+82
2014-10-02rollup merge of #17702 : nick29581/enable-dots-testAlex Crichton-2/+0
2014-10-02rollup merge of #17646 : bkoropoff/cast-iceAlex Crichton-0/+18
2014-10-02Add tests for a few resolved issuesJakub Wieczorek-0/+82
2014-10-02Revert "Use slice syntax instead of slice_to, etc."Aaron Turon-1/+1
This reverts commit 40b9f5ded50ac4ce8c9323921ec556ad611af6b7.
2014-10-02Revert "Put slicing syntax behind a feature gate."Aaron Turon-10/+0
This reverts commit 95cfc35607ccf5f02f02de56a35a9ef50fa23a82.
2014-10-02tests: remove uses of Gc.Eduard Burtescu-557/+67
2014-10-02auto merge of #17434 : P1start/rust/borrowck-messages, r=nikomatsakisbors-13/+42
This was originally part of #17215. Closes #15506. Closes #15630. Closes #17263. This also partially implements #15838.
2014-10-02Enable a test for .. in range patterns.Nick Cameron-2/+0
2014-10-02Change the `use of moved value` error to be more accurateP1start-11/+14
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-02Put slicing syntax behind a feature gate.Nick Cameron-0/+10
[breaking-change] If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
2014-10-02Use slice syntax instead of slice_to, etc.Nick Cameron-1/+1
2014-10-02Clarify some borrowck errorsP1start-0/+23
Closes #17263.
2014-10-02Output a note when lifetimes cannot be elided from functionsP1start-2/+5
2014-10-01Limit recursion depth for macro expansions, closes #17628Florian Hahn-0/+22
2014-10-01auto merge of #17584 : pcwalton/rust/range-patterns-dotdotdot, r=nick29581bors-15/+15
This breaks code that looks like: match foo { 1..3 => { ... } } Instead, write: match foo { 1...3 => { ... } } Closes #17295. r? @nick29581
2014-09-30Add regression test for issue #17444Brian Koropoff-0/+18
2014-09-30Move `if let` behind a feature gateKevin Ballard-1/+2
2014-09-30Produce a better error for irrefutable `if let` patternsKevin Ballard-0/+58
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-30librustc: Forbid `..` in range patterns.Patrick Walton-15/+15
This breaks code that looks like: match foo { 1..3 => { ... } } Instead, write: match foo { 1...3 => { ... } } Closes #17295. [breaking-change]
2014-09-30Emit an error rather than ICEing for a missing built-in bound lang item.Nick Cameron-0/+21
closes #17392
2014-09-29Test fixes from the rollupAlex Crichton-2/+4
2014-09-29rollup merge of #17614 : nick29581/slice3Alex Crichton-0/+16
2014-09-29rollup merge of #17613 : bkoropoff/issue-17593Alex Crichton-1/+3
2014-09-29rollup merge of #17598 : bkoropoff/issue-17441Alex Crichton-0/+24
2014-09-29rollup merge of #17592 : kmcallister/inline-asm-locAlex Crichton-0/+37
2014-09-29rollup merge of #17586 : Sawyer47/test-16465Alex Crichton-0/+24
2014-09-29rollup merge of #17519 : pcwalton/unboxed-closure-move-syntaxAlex Crichton-1/+1
2014-09-29auto merge of #17321 : apoelstra/rust/error-on-unknown-impl, r=alexcrichtonbors-2/+92
Followup to RFC 57. Fixes #7607 Fixes #8767 Fixes #12729 Fixes #15060