about summary refs log tree commit diff
path: root/src/test/run-fail
AgeCommit message (Collapse)AuthorLines
2012-04-19core: Move set_exit_status from sys to osBrian Anderson-3/+3
2012-04-18Fix [] on str to exclude the trailing null.Graydon Hoare-10/+1
2012-04-12Add a run-fail test for result::get, get rid of a FIXME. Also some random ↵Tim Chevalier-0/+4
other tests, mostly xfailed.
2012-04-12test: Add test for #1763Brian Anderson-0/+14
2012-04-09core: Make str::as_bytes handle failure. Closes #2156Brian Anderson-0/+10
2012-04-09rt: Allow 2x normal stack during unwinding. Closes #2173Brian Anderson-0/+23
Allows room for destructors to run without allowing the stack to grow forever.
2012-04-09rt: Don't limit the amount of stack available during unwinding. Closes #2144Brian Anderson-0/+9
2012-03-29test: Prevent run-fail/too-much-recursion from being optimized to nothingBrian Anderson-0/+1
2012-03-29rustc: Generate fewer landing padsBrian Anderson-0/+109
2012-03-26Bulk-edit mutable -> mut.Graydon Hoare-1/+1
2012-03-24add annotation for variable that used to infer to botNiko Matsakis-1/+1
2012-03-22make --enforce-mut-vars always on, add mut annotations to remaining filesNiko Matsakis-2/+4
2012-03-14std: Rename the hashmap constructors to conform to new standardsBrian Anderson-1/+1
Instead of using the new_ prefix just name them after their type
2012-03-13Overhaul constructor naming in libsBrian Anderson-1/+1
2012-03-12Libc/os/run/rand/io reorganization. Close #1373. Close #1638.Graydon Hoare-2/+2
- Move io, run and rand to core. - Remove incorrect ctypes module (use libc). - Remove os-specific modules for os and fs. - Split fs between core::path and core::os.
2012-03-10core Remove vec::enum_chars/uint. Closes #1955Brian Anderson-0/+16
2012-03-07stdlib: Stop incurring vtable dispatch costs when hashmaps are usedPatrick Walton-1/+2
This required changing almost all users of hashmaps to import the hashmap interface first. The `size` member in the hashmap structure was renamed to `count` to work around a name conflict.
2012-03-07Revert "stdlib: Stop incurring vtable dispatch costs when hashmaps are used"Patrick Walton-2/+1
This reverts commit f0250a23d3fa2f8b4a4a4113ca89e41945a4cfed.
2012-03-07stdlib: Stop incurring vtable dispatch costs when hashmaps are usedPatrick Walton-1/+2
This required changing almost all users of hashmaps to import the hashmap interface first. The `size` member in the hashmap structure was renamed to `count` to work around a name conflict.
2012-02-23Finish cleanup of core::strMarijn Haverbeke-1/+2
Closes #1849
2012-02-15Rewrite exhaustiveness checkerMarijn Haverbeke-1/+1
Issue #352 Closes #1720 The old checker would happily accept things like 'alt x { @some(a) { a } }'. It now properly descends into patterns, checks exhaustiveness of booleans, and complains when number/string patterns aren't exhaustive.
2012-02-14rt: Don't kill tasks while they are in a callback from CBrian Anderson-0/+31
2012-02-03Fix tests for str::le patchMarijn Haverbeke-5/+2
2012-02-03Remove experimental GC codeMarijn Haverbeke-2/+2
It's been sitting unused long enough to have bitrotted completely.
2012-02-02rt: Remove task pinning. Does nothingBrian Anderson-2/+2
2012-02-01Rename (again) str::unsafe::slice -> str::unsafe::slice_bytes andKevin Cantu-1/+1
str::unsafe::safe_slice -> str::unsafe::slice_bytes_safe_range
2012-02-01Propagating unsafe::slice 4Kevin Cantu-2/+2
2012-01-31Require alts to be exhaustiveTim Chevalier-9/+0
middle::check_alt does the work. Lots of changes to add default cases into alts that were previously inexhaustive.
2012-01-29rt: Remove set_min_stackBrian Anderson-5/+0
2012-01-23s/block()/fn()/gNiko Matsakis-3/+3
2012-01-19rustc: Make the pretty printer output commas after enum variants. Update all ↵Patrick Walton-1/+1
tests accordingly.
2012-01-19Compute typestates for FRU exprs correctly, plus a bit of cleanupTim Chevalier-0/+5
The code in Issue 948 was causing typestate to diverge because it was using the prestate for the whole expression -- not the post- state for the fields list -- as the prestate for the record base expression. Fixed. Closes #948
2012-01-19test: "tag" -> "enum" in run-pass and run-failPatrick Walton-1/+1
2012-01-19Handle log expressions with a _|_-typed levelTim Chevalier-0/+4
If we have log(foo, quux) where foo:_|_, just translate foo and ignore the rest of the expression. Closes #1459
2012-01-19In trans, allow _|_-typed things to be the argument to failTim Chevalier-0/+4
Rationale: _|_-typed things diverge, so it's safe to use them in any context. Closes #1465
2012-01-19Remove support for the '.' after a nullary tag in a patternTim Chevalier-2/+2
(Commit also includes lots of changes to remove '.'s that a git merge messed up, or else it was monkeys.)
2012-01-13make "native fn" the type for bare functions, remove fn exprsNiko Matsakis-1/+1
2012-01-12libcore: Add sys::set_exit_statusBrian Anderson-0/+33
Sets the process exit code
2012-01-12Add type parameters when checking wildcard patternsTim Chevalier-0/+9
For some reason, wildcard patterns were never getting type parameter substitutions attached. This would cause an assertion failure when checking a wildcard pattern that matches against a tag with polymorphic type (not sure why this didn't come up before). Fixed it. (The diff and test case may be easier to understand than this note :P) Closes #1503.
2012-01-11rt: Add RUST_MAX_STACK env var with 8MB defaultBrian Anderson-0/+7
Closes #1489
2012-01-10rename sendfn to fn~, lambda to fn@Niko Matsakis-2/+3
2012-01-09Remove proto_sugar and 'lambda' as keyword, commit to fn@.Graydon Hoare-1/+1
2012-01-08make spawned fn copy mode so that bare fns can be usedNiko Matsakis-0/+11
2012-01-06update to use new spawn syntaxNiko Matsakis-22/+26
2012-01-05rustc: Allow the test runner to run unexported testsBrian Anderson-0/+13
2012-01-05Switch to new param kind bound syntaxMarijn Haverbeke-3/+3
And remove support for the old syntax
2011-12-22Register new snapshots, purge log_err and log_full in favour of log(...).Graydon Hoare-6/+6
2011-12-22Register snapshots and switch logging over to use of log_full or #error / ↵Graydon Hoare-6/+12
#debug.
2011-12-20Add companion-module core.rs that exports log levels and option/some/none ↵Graydon Hoare-4/+0
everywhere.
2011-12-18libcore: Remove task::set_min_stackBrian Anderson-7/+0
This existed to make up for the lack of stack growth, and wasn't generally safe.