about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2011-11-28Ignore some should_fail tests on win32Brian Anderson-0/+2
2011-11-28c_vec: add testsJoshua Wise-0/+58
2011-11-24Comment-out some math tests that produce different results on win32Brian Anderson-7/+9
2011-11-24std: math: renaming and documentation fixesStefan Plantikow-1/+2
2011-11-24std: factored f32 and f64 out from mathStefan Plantikow-2/+4
2011-11-24std: added missing calls to math; covers C95 completely now, includes testsStefan Plantikow-9/+225
2011-11-24std: rewrote math to support most C95 libmath calls on f32, f64 and floatStefan Plantikow-6/+6
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-11/+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-101/+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/+37
2011-11-22Add fs::rmdir() and tempfile/gen_str() tests.Elly Jones-0/+29
2011-11-22rustc: Allow trailing comma in record fieldsHaitao Li-0/+8
2011-11-22Properly check for copies when constructing a record using withMarijn Haverbeke-0/+13
Closes #989
2011-11-22Only warn about unreachable range patterns when appropriateMarijn Haverbeke-9/+3
Also simplifies the literal-munging, and moves it into ast_util Closes #1170
2011-11-21stdlib: added (2,3,4)-valued logic ADTsStefan Plantikow-0/+292
This is useful for writing caches and perhaps in typestate predicates. It also adds a companion module for bool with from_str, to_str, ... fns.
2011-11-21Ignore test_log_functions test for nowMarijn Haverbeke-0/+1
It fails under valgrind
2011-11-21Added logarithm functions for floats to std::mathStefan Plantikow-0/+39
Thanks to marijn for helping with #[link_name]
2011-11-21Add a pass that checks that blocks are only used in safe waysMarijn Haverbeke-6/+3
Closes #1188
2011-11-20Added a little sudoku solver to test/bench for everone's puzzle solving needsStefan Plantikow-0/+170
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 tests for unsafe::reinterpret_castBrian Anderson-0/+14
2011-11-18stdlib: Add tests for sys::size_of and sys::align_ofBrian Anderson-0/+45
2011-11-18Add some tests for new kind systemMarijn Haverbeke-73/+30
Issue #1177
2011-11-18Update stdlib, compiler, and tests to new kind systemMarijn Haverbeke-266/+116
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-18Preparation for kind system overhaulMarijn Haverbeke-0/+16
This goes before a snapshot, so that subsequenct patches can make the transition without breaking the build. Disables kind checking pass, makes parser accept both new and old-style kind annotation. Issue #1177
2011-11-17remove compile-command from local variable blocksNiko Matsakis-11/+0
2011-11-17rustc: Add a flag '--warn-unused-imports'Haitao Li-0/+1
Followup of issue #889
2011-11-16Disconnect ports before draining them. Issue #1155Brian Anderson-0/+27
2011-11-16refactor all unix typesNiko Matsakis-6/+8
2011-11-16Replace 'mutable?' with 'const'Brian Anderson-14/+14
2011-11-16rustc: Accept 'const' as synonym for 'mutable?'Brian Anderson-3/+3
2011-11-16Fix S_IRUSR/S_IWUSR constants on mac. Closes #726Brian Anderson-6/+0
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-29/+70
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-25/+25
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"
2011-11-15Make run-pass/native-fn-linkname's main take no argsBrian Anderson-1/+1
check-fast doesn't like it.
2011-11-15Use native fn's link name attribute if givenHaitao Li-0/+19
Fixes issue #905
2011-11-15Fix handling of loops and conditionals in alias.rsMarijn Haverbeke-0/+19
It now threads information about invalidated aliases through the AST properly. This makes it more permissive for conditionals (invalidating an alias in one branch doesn't prevent you from using it in another), and less permissive for loops (it now properly notices when a loop invalidates an alias that it might still use in another iteration). Closes #1144
2011-11-14xfail-fast run-pass/native-dupe.rsBrian Anderson-0/+3
This test calls the task pin function which has side effects and causes other tests to lock.
2011-11-14stdlib: Run cleanups on data that fails to sendBrian Anderson-0/+10
2011-11-14Un-xfail-win32 two tests that should actually workBrian Anderson-2/+0
2011-11-15rustllvm: Add a GetOrInsertFunction wrapperHaitao Li-0/+12
Fixes issue #1161 Test-case-by: Brian Anderson <banderson@mozilla.com> Signed-off-by: Haitao Li <lihaitao@gmail.com>
2011-11-13Drop enqueued elements when a port is destructed. Closes #1155Brian Anderson-0/+18