summary refs log tree commit diff
path: root/src/test/run-pass
AgeCommit message (Collapse)AuthorLines
2014-10-07Rename slicing methodsNick Cameron-6/+6
2014-10-07Put slicing syntax behind a feature gate.Nick Cameron-0/+13
[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-3/+3
2014-10-06auto merge of #17803 : bkoropoff/rust/issue-17021, r=alexcrichtonbors-0/+2
This closes issue #17021.
2014-10-06auto merge of #17781 : P1start/rust/bitflags-lints, r=alexcrichtonbors-10/+10
Closes #17773.
2014-10-06Rename the file permission statics in std::io to be uppercaseP1start-10/+10
For example, this renames `GroupRWX` to `GROUP_RWX`, and deprecates the old name. Code using these statics should be updated accordingly.
2014-10-05Build regression test for issue #17021 with -gBrian Koropoff-0/+2
This causes it to hit the previously ICEing debuginfo codepath
2014-10-05auto merge of #17762 : bkoropoff/rust/issue-17734, r=alexcrichtonbors-0/+23
Closes issue #17734 r? @nick29581
2014-10-05Add regression test for issue #17734Brian Koropoff-0/+23
2014-10-05auto merge of #16970 : kmcallister/rust/llvm-unreachable, r=thestingerbors-0/+24
I'm not sure how to add an automated test for this.
2014-10-04Add tests for intrinsics::unreachableKeegan McAllister-0/+24
2014-10-03Add regression test for issue #17737Brian Koropoff-0/+24
2014-10-04auto merge of #17731 : bkoropoff/rust/unboxed-by-ref, r=pcwaltonbors-7/+37
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 #17739 : eddyb/fix-process-testAlex Crichton-0/+53
2014-10-03rollup merge of #17729 : alexcrichton/issue-17718-startAlex Crichton-0/+15
2014-10-03Fix a race condition between remove_from_env and other io::process tests.Eduard Burtescu-0/+53
2014-10-03Add some more test coverage of by-ref unboxed closuresBrian Koropoff-0/+35
2014-10-02Rehabilitate an unboxed closure testBrian Koropoff-7/+2
This test works as a regression test for issue #17655. It also exercises mutation of by-ref upvars.
2014-10-02Merge branch 'travis' into rollupAlex Crichton-0/+1
Conflicts: .travis.yml
2014-10-02syntax: Enable parsing of `const` globalsAlex Crichton-0/+15
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-02Test fixes from the rollupAlex Crichton-1/+1
2014-10-02rollup merge of #17666 : eddyb/take-garbage-outAlex Crichton-1641/+214
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 #17722 : jakub-/issue-17169Alex Crichton-0/+4
2014-10-02rollup merge of #17721 : jakub-/resolved-issuesAlex Crichton-0/+257
2014-10-02rollup merge of #17720 : ben0x539/shiftsAlex Crichton-0/+94
2014-10-02rollup merge of #17646 : bkoropoff/cast-iceAlex Crichton-0/+15
2014-10-02Add tests for a few resolved issuesJakub Wieczorek-0/+257
2014-10-02Fix cross-crate tuple structs in staticsJakub Wieczorek-0/+4
Fixes #17169. Fixes #17649.
2014-10-02native: fix passing errno to parent after forkBenjamin Herr-0/+94
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-02Revert "Use slice syntax instead of slice_to, etc."Aaron Turon-3/+3
This reverts commit 40b9f5ded50ac4ce8c9323921ec556ad611af6b7.
2014-10-02Revert "Remove the `_` suffix from slice methods."Aaron Turon-8/+8
This reverts commit df2f1fa7680a86ba228f004e7de731e91a1df1fe.
2014-10-02Revert "Put slicing syntax behind a feature gate."Aaron Turon-13/+0
This reverts commit 95cfc35607ccf5f02f02de56a35a9ef50fa23a82.
2014-10-02tests: remove uses of Gc.Eduard Burtescu-1640/+213
2014-10-02auto merge of #17663 : eddyb/rust/method-origin-subst, r=nikomatsakisbors-0/+23
Fixes #17662.
2014-10-02Put slicing syntax behind a feature gate.Nick Cameron-0/+13
[breaking-change] If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
2014-10-02Remove the `_` suffix from slice methods.Nick Cameron-8/+8
Deprecates slicing methods from ImmutableSlice/MutableSlice in favour of slicing syntax or the methods in Slice/SliceMut. Closes #17273.
2014-10-02Use slice syntax instead of slice_to, etc.Nick Cameron-3/+3
2014-10-01Remove iotest macroAaron Turon-12/+5
This commit removes the `iotest!` macro from `std::io`. The macro was primarily used to ensure that all io-related tests were run on both libnative and libgreen/librustuv. However, now that the librustuv stack is being removed, the macro is no longer needed. See the [runtime removal RFC](https://github.com/rust-lang/rfcs/pull/230) for more context. [breaking-change]
2014-10-01Remove all use of librustuvAaron Turon-220/+38
2014-10-01auto merge of #17653 : kaini/rust/master, r=alexcrichtonbors-0/+21
Fixes that unit-like structs cannot be used if they are re-exported and used in another crate. (ICE) The relevant changes are in `rustc::metadata::{decoder, encoder}` and `rustc::middle::ty`. A test case is included. The problem is that the expressoin `UnitStruct` is an `ExprPath` to an `DefFn`, which is of expr kind `RvalueDatumExpr`, but for unit-struct ctors the expr kind should be `RvalueDpsExpr`. I fixed this (in a I guess clean way) by introducing `CtorFn` in the metadata and including a `is_ctor` flag in `DefFn`.
2014-10-01auto merge of #17501 : pcwalton/rust/improve-method-lookup-autoderef, ↵bors-2/+53
r=nikomatsakis prefer `Deref` over `DerefMut` in all other circumstances. Because the compiler now prefers `Deref`, this can break code that looked like: let mut foo = bar.borrow_mut(); (*foo).call_something_that_requires_mutable_self(); Replace this code with: let mut foo = bar.baz(); (&mut *foo).call_something_that_requires_mutable_self(); Closes #12825. [breaking-change] r? @nikomatsakis
2014-10-01auto merge of #17584 : pcwalton/rust/range-patterns-dotdotdot, r=nick29581bors-47/+47
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 #17458Brian Koropoff-0/+15
2014-09-30librustc: Fix up mutability in method autoderefs if incorrect, andPatrick Walton-2/+53
prefer `Deref` over `DerefMut` in all other circumstances. Closes #12825.
2014-09-30Fold `MethodOrigin`s to resolve inference variables they may contain.Eduard Burtescu-0/+23
Fixes #17662.
2014-09-30Move `if let` behind a feature gateKevin Ballard-0/+2
2014-09-30Add tests for `if let`Kevin Ballard-0/+67
2014-09-30librustc: Forbid `..` in range patterns.Patrick Walton-47/+47
This breaks code that looks like: match foo { 1..3 => { ... } } Instead, write: match foo { 1...3 => { ... } } Closes #17295. [breaking-change]
2014-09-30Fixes ICE when using reexported unit-like structsMichael Kainer-0/+21
Fixes that unit-like structs cannot be used if they are reexported and used in another crate. The compiler fails with an ICE, because unit-like structs are exported as DefFn and the expression `UnitStruct` is interpreted as function pointer instead of a call to the constructor. To resolve this ambiguity tuple-like struct constructors are now exported as CtorFn. When `rustc::metadata::decoder` finds a CtorFn it sets a new flag `is_ctor` in DefFn to true. Relevant changes are in `rustc::metadata::{encoder, decoder}` and in `rustc::middle::ty`. Closes #12660 and #16973.
2014-09-30auto merge of #17563 : brson/rust/wintcbfix, r=thestingerbors-2/+56
This is the bare minimum to stop using split stacks on Windows, fixing https://github.com/rust-lang/rust/issues/13259 and #14742, by turning on stack probes for all functions and disabling compiler and runtime support for split stacks on Windows. It does not restore the out-of-stack error message, which requires more runtime work. This includes a test that the Windows TCB is no longer being clobbered, but the out-of-stack test itself is pretty weak, only testing that the program exits abnormally, not that it isn't writing to bogus memory, so I haven't truly verified that this is providing the safety we claim. A more complete solution is in https://github.com/rust-lang/rust/pull/16388, which has some unresolved issues yet. cc @Zoxc @klutzy @vadimcn