about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2011-12-18libcore: Remove task::set_min_stackBrian Anderson-15/+0
This existed to make up for the lack of stack growth, and wasn't generally safe.
2011-12-18test: Enable all morestack testsBrian Anderson-27/+3
2011-12-18Only look for a matching method when normal field access failsMarijn Haverbeke-4/+27
We should probalby warn when defining a method foo on {foo: int} etc. This should reduce the amount of useless typevars that are allocated. Issue #1227
2011-12-17rt: Use a DWARF CFI scheme that works on mac in __morestackBrian Anderson-0/+28
2011-12-16allow #[link_args] with #[nolink]. For now, fail if two modules link same ↵Graham Fawcett-0/+28
lib, and second has link_args. I think it should undefined to have multiple modules that link in the same library, but provide different link arguments. Unfortunately we don't track link_args by module -- they are just appended as discovered into the crate store -- but for now, it should be an error to provide link_args on a module that's already been included (with or without link_args).
2011-12-16implement #[nolink]; deprecate #[link_name = ""]; note in stdlib to remove ↵Graham Fawcett-12/+17
empty link_name. Can't remove them from stdlib until the snapshotted compiler supports #[nolink].
2011-12-16std: file_is_dir -> path_is_dir, add path_existsElly Jones-4/+10
2011-12-16add test that requires capturing generic descriptorsNiko Matsakis-0/+36
2011-12-16first test of sendable fns (passes)Niko Matsakis-0/+20
2011-12-16rename iter2 to iteri to match typical conventionNiko Matsakis-4/+4
2011-12-16reorder args to the various vec, option fns so blk comes lastNiko Matsakis-31/+32
2011-12-16Change syntax for implMarijn Haverbeke-0/+18
Move the name of the bundle to the front, allow type parameters (not handled yet), and add a 'for' keyword: impl utils for int { fn str() -> str { int::str(self) } fn times(f: block()) { ... } }
2011-12-16Make 1.f parse as a field access on the integer 1Marijn Haverbeke-1/+1
A dot is only considered part of a number when not followed by a letter Closes #1306
2011-12-16Make uses of self in impls compileMarijn Haverbeke-2/+2
Get rid of expr_self_call, introduces def_self. `self` is now, syntactically, simply a variable. A method implicitly brings a `self` binding into scope. Issue #1227
2011-12-15stdlib: Add a str::split_str() to split on a delimiter string of any lengthPatrick Walton-0/+14
2011-12-14Fixed type resolution error in math testsStefan Plantikow-8/+6
2011-12-14Moved std::math to std::coreStefan Plantikow-1/+1
- merges math and float into core::float - Splits core::ctypes into core::ctypes and core::mtypes - cmath is not exported - stdtest::math passes
2011-12-14std: export math_f* as math::f* submods and use tailcalls in std::mathStefan Plantikow-0/+3
2011-12-13Copy first batch of material from libstd to libcore.Graydon Hoare-462/+532
2011-12-11rt: Make unwinding through __morestack work on macBrian Anderson-3/+3
Had to bump the min stack size in some of the tests from 256 bytes to 1024 bytes. Not sure why yet.
2011-12-09Allow type annotations for blocksMarijn Haverbeke-0/+4
I.e. {|foo: int| -> int foo + 2} Issue #1275
2011-12-08Allow binding of nested patternsMarijn Haverbeke-0/+12
See src/test/run-pass/nested-patterns.rs for some examples. The syntax is boundvar@subpattern Which will match the subpattern as usual, but also bind boundvar to the whole matched value. Closes #838
2011-12-07Fix test that used an oversized int literalMarijn Haverbeke-2/+2
2011-12-07Restore accidentally overwritten testMarijn Haverbeke-18/+74
2011-12-07Check for literals that are out of range for their typeMarijn Haverbeke-0/+3
2011-12-07Change literal representation to not truncateMarijn Haverbeke-76/+28
Also shuffles around the organization of numeric literals and types, separating by int/uint/float instead of machine-vs-non-machine types. This simplifies some code. Closes #974 Closes #1252
2011-12-07Disallow binding by-mut-ref and by-move argumentsMarijn Haverbeke-11/+11
Fix bug in bound by-copy arguments. Closes #1261
2011-12-06rt: Various tweaks to make __morestack unwinding work on linuxBrian Anderson-2/+2
When unwinding through __morestack the stack limit in the TLS is invalidated and must be reset. Instead of actually landing at __morestack we're just going to make all our Rust landing pads call upcall_reset_stack_limit, which will find the stack segment that corresponds to the current stack pointer and put the limit in the TLS. Also massively expand the stack segment red zone to make more room for the dynamic linker. Will fix in the future.
2011-12-05test: More tests for unwinding + morestackBrian Anderson-3/+43
2011-12-05rt: Make stack unwinding work more correctly with stack growthBrian Anderson-0/+35
2011-12-05test: Test hitting the dynamic linker in the red zoneBrian Anderson-0/+81
2011-12-05test: Add more tests for stack growthBrian Anderson-0/+126
2011-12-05rustc: Add suffix ".rc" to LLVM module identifierHaitao Li-0/+7
LLVM code generator emits the ".file filename" directive for ELF backends. Value of the "filename" is set as the LLVM module identifier. Due to a LLVM MC bug[1], LLVM crashes if the module identifer is same as other symbols such as a function name in the module. This patch adds a ".rc" suffix (means crates) to LLVM module identifier to workaround the bug. Fixes issue #1251. 1. http://llvm.org/bugs/show_bug.cgi?id=11479
2011-12-05typeck: Fix for #932Stefan Plantikow-0/+4
2011-12-05rustc: Fix memory leak in do-while loopHaitao Li-0/+8
Issue #1257
2011-12-02const_check: trans: added support for trivial castsStefan Plantikow-0/+15
Part of #1215
2011-12-02parse: typeck: enabling trivial casts of tail-call return valuesStefan Plantikow-0/+45
introduces ctypes::m_* machine type aliases for int, uint, float depending on cfg(target_arch) that are used in tests
2011-12-02Be less specific in 'unresolved import' error patternsMarijn Haverbeke-6/+6
To make sure different test set-ups (check-fast) don't cause the tests to fail.
2011-12-02Disable a test that's failing on 32-bit due to imprecise literal handlingMarijn Haverbeke-1/+2
7655b3c0c673a6857ccf94835f6cedbe778a8667 (re-)introduced the problem
2011-12-02Make import ignore imports coming after themMarijn Haverbeke-3/+3
This broke no code at all, so I guess people were already writing imports in this style. Issue #1228
2011-12-01test: Don't fill queue in run-pass/send-iloop. Closes #1244Brian Anderson-0/+3
2011-12-01stdlib: Implement some preliminary libuv bindingsBrian Anderson-0/+45
std::uv is intended to be low-level, exactly mirroring the C API. Difficult to continue the implementation now without scheduler improvements.
2011-11-30adjust and un-xfailNiko Matsakis-17/+21
2011-11-30xfail run-pass/bind-native-printfBrian Anderson-0/+1
Bots are crashing on this on the x86_64 build. As this doesn't seem crucial for getting the x86_64 snapshot, I'm just turning it off.
2011-11-29rt: Delete the entire stack chain on task destructionBrian Anderson-1/+2
Unwinding through __morestack on 64-bit Linux seems to be no big deal, and all we have to do is free the stacks to make unwinding work with split stacks.
2011-11-29rt: Fix calculation of stack args location in x86_64/morestack.SBrian Anderson-0/+45
2011-11-29update io test to use tmp directory, and update configure to create itNiko Matsakis-1/+1
2011-11-29extra whitespaceNiko Matsakis-1/+1
2011-11-29fix bug in shape concerning size of tag variantNiko Matsakis-0/+31
2011-11-29Add --stack-growth to the morestack test compile flagsBrian Anderson-0/+3