about summary refs log tree commit diff
path: root/src/test/run-pass
AgeCommit message (Collapse)AuthorLines
2011-12-18test: Enable all morestack testsBrian Anderson-19/+3
2011-12-18Only look for a matching method when normal field access failsMarijn Haverbeke-1/+24
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-16implement #[nolink]; deprecate #[link_name = ""]; note in stdlib to remove ↵Graham Fawcett-10/+10
empty link_name. Can't remove them from stdlib until the snapshotted compiler supports #[nolink].
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-16reorder args to the various vec, option fns so blk comes lastNiko Matsakis-4/+5
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-14Fixed type resolution error in math testsStefan Plantikow-5/+5
2011-12-13Copy first batch of material from libstd to libcore.Graydon Hoare-266/+266
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-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-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-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/+26
introduces ctypes::m_* machine type aliases for int, uint, float depending on cfg(target_arch) that are used in tests
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-1/+1
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-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: Fix calculation of stack args location in x86_64/morestack.SBrian Anderson-0/+45
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/+2
2011-11-24rustc: Fix a bug in cdir attribute parsingBrian Anderson-0/+11
The first attribute of the first mod was being applied to every mod.
2011-11-24rustc: Add a path attribute for crate directivesHaitao Li-8/+13
The path information was an optional "filename" component of crate directive AST. It is now replaced by an attribute with metadata named "path". With this commit, a directive mod foo = "foo.rs"; should be written as: #[path = "foo.rs"] mod foo; Closes issue #906.
2011-11-23Allow import directives in any blockMarijn Haverbeke-0/+11
Closes #49
2011-11-23Rollback return-by-referenceMarijn Haverbeke-32/+0
It's proving too inflexible, so I'm ripping out the extra complexity in the hope that regions will, at some point, provide something similar. Closes #918
2011-11-22rt: Make __morestack (without unwinding) work on 32-bit linuxBrian Anderson-0/+25
2011-11-18re-enable tests for #1058 and #1059Niko Matsakis-5/+2
2011-11-18add test for issue #1174Niko Matsakis-0/+16
2011-11-18Add some tests for new kind systemMarijn Haverbeke-17/+30
Issue #1177
2011-11-18Update stdlib, compiler, and tests to new kind systemMarijn Haverbeke-71/+71
This involved adding 'copy' to more generics than I hoped, but an experiment with making it implicit showed that that way lies madness -- unless enforced, you will not remember to mark functions that don't copy as not requiring copyable kind. Issue #1177
2011-11-18Add a pass-by-copy parameter passing conventionMarijn Haverbeke-0/+8
This is intended to solve the problem of how to pass arguments to constructor functions -- you want to move in rvalues, but not have to explicitly copy stuff that is not an rvalue. The by-copy passing convention will ensure the callee gets its own copy of the value. For rvalues, it'll just pass off the value. For lvalues, it'll make a copy. Issue #1177
2011-11-17remove compile-command from local variable blocksNiko Matsakis-5/+0
2011-11-16Disconnect ports before draining them. Issue #1155Brian Anderson-0/+27
2011-11-16Replace 'mutable?' with 'const'Brian Anderson-1/+1
2011-11-16rustc: Accept 'const' as synonym for 'mutable?'Brian Anderson-3/+3
2011-11-16Add a test that native mods don't need to declare an ABIBrian Anderson-0/+9
2011-11-16Use attributes for native module ABI and link nameHaitao Li-26/+63
This patch changes how to specify ABI and link name of a native module. Before: native "cdecl" mod llvm = "rustllvm" {...} After: #[abi = "cdecl"] #[link_name = "rustllvm"] native mod llvm {...} The old optional syntax for ABI and link name is no longer supported. Fixes issue #547
2011-11-16rustc: Use link_name attribute for native functionHaitao Li-1/+2
Fixes issue #906
2011-11-15Replaced constant functions with actual constants in std and updated testsStefan Plantikow-3/+3
Fixes issue #1165
2011-11-15Make run-pass/bitwise 64-bit compatibleBrian Anderson-3/+17
2011-11-15Support conditional compilation based on architectureBrian Anderson-0/+5
target_os = "x86" or target_os = "x86_64"