about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2012-01-18Remove '.' after nullary tags in patternsTim Chevalier-24/+24
Does what it says on the tin. The next commit will remove support for this syntax.
2012-01-18remove align_mode and rewrite GEP_tup_like to align correctlyNiko Matsakis-0/+18
Although the old version of GEP_tup_like was incorrect in some cases, I do not believe we ever used it in an incorrect fashion. In particular, it could go wrong with extended index sequences like [0, 1, 3], but as near as I can tell we only ever use it with short sequences like [0, i].
2012-01-18correct use of GEP_tup_like in closure constrNiko Matsakis-0/+30
also, streamline type_is_tup_like() to the cases which actually work
2012-01-18test: Don't test that tags with zero variants are supportedPatrick Walton-1/+1
2012-01-19rustc: Warn when int or uint is used in a native type declHaitao Li-0/+9
Issue #1403
2012-01-17libstd: Move std tests into libstdBrian Anderson-3027/+0
2012-01-17libcore: Move core tests into libcoreBrian Anderson-2068/+0
2012-01-17Merge pull request #1544 from kevina/issue-1393Graydon Hoare-1/+1
Minor cleanups to custom discriminator code.
2012-01-17encode variant names and have log print them out.Niko Matsakis-0/+29
2012-01-17Allow omission of the '.' after nullary tag patternsTim Chevalier-1/+11
This commit allows patterns like: alt x { some(_) { ... } none { } } without the '.' after none. The parser suspends judgment about whether a bare ident is a tag or a new bound variable; instead, the resolver disambiguates. This means that any code after resolution that pattern-matches on patterns needs to call pat_util::normalize_pat, which consults an environment to do this disambiguation. In addition, local variables are no longer allowed to shadow tag names, so this required changing some code (e.g. renaming variables named "mut", and renaming ast::sub to subtract). The parser currently accepts patterns with and without the '.'. Once the compiler and libraries are changed, it will no longer accept the '.'.
2012-01-16Minor cleanups to custom discriminator code.Kevin Atkinson-1/+1
Mostly updates to the comments and docs from Pull Request #1537.
2012-01-16Store type names in crate metadataMarijn Haverbeke-1/+1
Improves type error messages referring to external types. Issue #1507
2012-01-16When pretty-printing fn types, leave off arg modes when they are the defaultMarijn Haverbeke-3/+3
This reduces ++/&& spam in the output to a bare minimum. Issue #1507
2012-01-16Don't evaluate discriminator value constants when parsing.Kevin Atkinson-0/+8
Remove disr_val from ast::variant_ and always use ty::variant_info when the value is needed. Move what was done during parsing into other passes, primary typeck.rs. This move also correctly type checks the disr. value expression; thus, fixing rustc --pretty=typed when disr. values are used.
2012-01-16Update pretty printer to print out disr. values.Kevin Atkinson-0/+16
Partly fixes issue #1510. "rustc --pretty=typed" fails.
2012-01-15Added string functions: split_func, split_char, lines, lines_any, words,Kevin Cantu-0/+92
and more tests
2012-01-15rustc: Parse fn inner attributes. Closes #1506Brian Anderson-0/+25
2012-01-14bench: Lower the default inputs on many shootout benchmarksBrian Anderson-5/+5
Make them run a bit faster during normal testing
2012-01-14bench: Update shootout-nbody for styleBrian Anderson-22/+20
2012-01-14bench: Update fannkuchredux for styleBrian Anderson-5/+11
2012-01-14bench: Update shootout-binarytrees for styleBrian Anderson-8/+15
2012-01-14bench: Update shootout-ackermann for performanceBrian Anderson-15/+14
2012-01-14bench: Update shootout-fibo for performanceBrian Anderson-14/+15
2012-01-14bench: Update shootout-binarytrees to use unique boxesBrian Anderson-5/+5
Shared boxes have a huge performance overhead due to #1493
2012-01-13xfail the tests for now, pending #1511 being fixedNiko Matsakis-0/+11
2012-01-13test: xfail-pretty run-pass/tag-disr-val-shapeBrian Anderson-0/+1
2012-01-13test: Simplify rope::bal1. Closes #1424Brian Anderson-2/+2
2012-01-13libcore: Add task::tryBrian Anderson-0/+21
2012-01-13Fixes #1499: a test that shape code can walk explicit disr valuesNiko Matsakis-0/+14
2012-01-13distinguish "any closure" and "stack closure" (block)Niko Matsakis-20/+20
2012-01-13make "native fn" the type for bare functions, remove fn exprsNiko Matsakis-15/+15
2012-01-13deprecate fn exprs and the fn() type, preferring fn@ and native fnNiko Matsakis-57/+51
2012-01-13Remove tests for objs, adjust tests that use objsMarijn Haverbeke-970/+16
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-12make parser disambiguate fn~ at top level correctlyNiko Matsakis-5/+5
2012-01-12add tydescs into shape, rewrite walk_fn_contents()Niko Matsakis-25/+50
2012-01-12free uniq data we encounter on the sweep, walk thru them otherwiseNiko Matsakis-0/+2
2012-01-12Implement passing cast-to-vtable values as bounded paramsMarijn Haverbeke-1/+5
Closes #1492
2012-01-12Cleanups to previous commits for issue #1393.Kevin Atkinson-1/+1
2012-01-11test: Add a test that empty records don't parseBrian Anderson-0/+7
Closes #1200
2012-01-11rustc: Don't allow empty link_name when nolink attribute is presentBrian Anderson-0/+7
Closes #1326
2012-01-11test: xfail-win32 run-pass/too-much-recursionBrian Anderson-0/+1
2012-01-11rt: Add RUST_MAX_STACK env var with 8MB defaultBrian Anderson-42/+61
Closes #1489
2012-01-11Major clean-up of std::ioMarijn Haverbeke-36/+17
Use ifaces instead of objs, stop wrapping everything in two (or three) layers of no-value-added indirection, and remove some of the more pointless/outdated idioms from the code.
2012-01-11Implement std::map as an iface/impl instead of an objMarijn Haverbeke-9/+1
2012-01-11add a log_str() function and allow '%?' in fmt strings to use itNiko Matsakis-0/+4
2012-01-11add section on spawn_connected to tutorial and pull test into fileNiko Matsakis-19/+18
2012-01-10update shape code to handle iface instancesNiko Matsakis-0/+45
2012-01-10Add support for casting enum-like tags to scalar values.Kevin Atkinson-1/+15