about summary refs log tree commit diff
path: root/src/test/run-pass
AgeCommit message (Collapse)AuthorLines
2013-08-19Add tests for cross-crate condition handling. Close #5446.Graydon Hoare-0/+131
2013-08-19test: add testcase, close #4929 which was already fixed.Graydon Hoare-0/+12
2013-08-19test: un-xfail now working run-pass/foreign-struct.rs, close #2334.Graydon Hoare-1/+0
2013-08-19auto merge of #8535 : nikomatsakis/rust/issue-3678-wrappers-be-gone-2, r=graydonbors-9/+38
Long-standing branch to remove foreign function wrappers altogether. Calls to C functions are done "in place" with no stack manipulation; the scheme relies entirely on the correct use of `#[fixed_stack_segment]` to guarantee adequate stack space. A linter is added to detect when `#[fixed_stack_segment]` annotations are missing. An `externfn!` macro is added to make it easier to declare foreign fns and wrappers in one go: this macro may need some refinement, though, for example it might be good to be able to declare a group of foreign fns. I leave that for future work (hopefully somebody else's work :) ). Fixes #3678.
2013-08-19Add externfn macro and correctly label fixed_stack_segmentsNiko Matsakis-3/+37
2013-08-19Issue #3678: Remove wrappers and call foreign functions directlyNiko Matsakis-6/+1
2013-08-19auto merge of #8564 : alexcrichton/rust/ifmt+++, r=graydonbors-5/+27
See discussion in #8489, but this selects option 3 by adding a `Default` trait to be implemented by various basic types. Once this makes it into a snapshot I think it's about time to start overhauling all current use-cases of `fmt!` to move towards `ifmt!`. The goal is to replace `%X` with `{}` in 90% of situations, and this commit should enable that.
2013-08-18auto merge of #8560 : kballard/rust/reserve-yield, r=pcwaltonbors-18/+18
Rename task::yield() to task::deschedule(). Fixes #8494.
2013-08-17auto merge of #8544 : dim-an/rust/fix-match-pipes, r=pcwaltonbors-0/+68
Pointers to bound variables shouldn't be stored before checking pattern, otherwise piped patterns can conflict with each other (issue #6338). Closes #6338.
2013-08-17Fix warnings it testsErick Tryzelaar-456/+500
2013-08-16Delegate `{}` to Default instead of PolyAlex Crichton-5/+25
By using a separate trait this is overridable on a per-type basis and makes room for the possibility of even more arguments passed in for the future.
2013-08-16Implement `{:s}` for ~str and @str as wellAlex Crichton-0/+2
2013-08-16Reserve 'yield' keywordKevin Ballard-18/+18
Rename task::yield() to task::deschedule(). Fixes #8494.
2013-08-16auto merge of #8534 : huonw/rust/tls-key-macro, r=alexcrichtonbors-0/+28
This allows the internal implementation details of the TLS keys to be changed without requiring the update of all the users. (Or, applying changes that *have* to be applied for the keys to work correctly, e.g. forcing LLVM to not merge these constants.)
2013-08-16auto merge of #8532 : kballard/rust/cstr-cleanup, r=ericktbors-3/+3
Implement interior null checking in `.to_c_str()`, among other changes.
2013-08-15auto merge of #8518 : catamorphism/rust/issue-8498-workaround, r=brsonbors-0/+44
r? @brson
2013-08-16syntax: add a local_data_key macro that creates a key for access to the TLS.Huon Wilson-0/+28
This allows the internal implementation details of the TLS keys to be changed without requiring the update of all the users. (Or, applying changes that have to be applied for the keys to work correctly, e.g. forcing LLVM to not merge these constants.)
2013-08-15auto merge of #7917 : catamorphism/rust/resolve-and-testcases, r=catamorphismbors-0/+44
2013-08-15testsuite: xfailed test casesTim Chevalier-0/+44
2013-08-15vec: rm obsolete zip and zip_sliceDaniel Micay-44/+0
These are obsoleted by the generic iterator `zip` adaptor. Unlike these, it does not clone the elements or allocate a new vector by default.
2013-08-15auto merge of #8485 : alexcrichton/rust/add-tests, r=catamorphismbors-0/+324
Closes #3907 Closes #5493 Closes #4464 Closes #4759 Closes #5666 Closes #5884 Closes #5926 Closes #6318 Closes #6557 Closes #6898 Closes #6919 Closes #7222
2013-08-16Pointers to bound variables are stored after all patterns are matched.Dmitry Ermolov-2/+0
Pointers to bound variables shouldn't be stored before checking pattern, otherwise piped patterns can conflict with each other (issue #6338). Closes #6338.
2013-08-15Add even more testsAlex Crichton-0/+80
Closes #8248 Closes #8249 Closes #8398 Closes #8401
2013-08-15Fix a typo in the ifmt doxAlex Crichton-4/+4
2013-08-16Test for issue #6338.Dmitry Ermolov-0/+70
2013-08-15Add ToCStr method .with_c_str()Kevin Ballard-3/+3
.with_c_str() is a replacement for the old .as_c_str(), to avoid unnecessary boilerplate. Replace all usages of .to_c_str().with_ref() with .with_c_str().
2013-08-15auto merge of #8483 : luqmana/rust/rexprs, r=catamorphismbors-0/+16
Fixes #8152.
2013-08-14testsuite: Add xfailed test for #8498Tim Chevalier-0/+44
2013-08-14auto merge of #8440 : sfackler/rust/env-fix, r=pcwaltonbors-2/+1
The type of the result of option_env! was not fully specified in the None case, leading to type check failures in the case where the variable was not defined (e.g. option_env!("FOO").is_none()). Also cleaned up some compilation warnings.
2013-08-13Add a bunch of tests for closed issuesAlex Crichton-0/+244
Closes #3907 Closes #5493 Closes #4464 Closes #4759 Closes #5666 Closes #5884 Closes #5926 Closes #6318 Closes #6557 Closes #6898 Closes #6919 Closes #7222
2013-08-13auto merge of #8497 : nikomatsakis/rust/improvements-to-object-coercion, ↵bors-0/+92
r=pcwalton While looking over the code for object coercion, I realized that it wasn't quite handling freezing and reborrowing correctly. Tweak the code, adding tests for the relevant cases. r? @pcwalton
2013-08-13auto merge of #8446 : alexcrichton/rust/ifmt++, r=graydonbors-37/+157
This includes a number of improvements to `ifmt!` * Implements formatting arguments -- `{:0.5x}` works now * Formatting now works on all integer widths, not just `int` and `uint` * Added a large doc block to `std::fmt` which should help explain what `ifmt!` is all about * Added floating point formatters, although they have the same pitfalls from before (they're just proof-of-concept now) Closed a couple of issues along the way, yay! Once this gets into a snapshot, I'll start looking into removing all of `fmt`
2013-08-13Add `f` formats to `ifmt!`Alex Crichton-6/+15
Currently the work just the same as the old `extfmt` versions
2013-08-13Add test for repeat expr in statics.Luqman Aden-0/+16
2013-08-13Reborrow even when passing &Object to &Object, so as to permit freezingNiko Matsakis-0/+48
2013-08-13Fix freezing of @mut Objects when passing as argumentNiko Matsakis-0/+44
2013-08-12Forbid pub/priv where it has no effectAlex Crichton-6/+6
Closes #5495
2013-08-12Correct the padding on integer types for formattingAlex Crichton-65/+57
2013-08-12Define integer formats for all widthsAlex Crichton-0/+64
Closes #1653
2013-08-12Implement formatting arguments for strings and integersAlex Crichton-37/+92
Closes #1651
2013-08-11Fixed option_env! typeSteven Fackler-2/+1
The type of the result of option_env! was not fully specified in the None case, leading to type check failures in the case where the variable was not defined (e.g. option_env!("FOO").is_none()).
2013-08-11tests: Add new tests for borrowck/objects and update some existing testsNiko Matsakis-35/+81
2013-08-10Merge branch 'match' of https://github.com/msullivan/rust into rollupErick Tryzelaar-11/+31
2013-08-10Merge branch 'vec-exh' of https://github.com/stepancheg/rust into rollupErick Tryzelaar-3/+31
2013-08-10std: Rename Iterator.transform -> .mapErick Tryzelaar-2/+2
cc #5898
2013-08-10std: merge Iterator and IteratorUtilErick Tryzelaar-1/+1
2013-08-09auto merge of #8296 : erickt/rust/remove-str-trailing-nulls, r=ericktbors-13/+19
This PR fixes #7235 and #3371, which removes trailing nulls from `str` types. Instead, it replaces the creation of c strings with a new type, `std::c_str::CString`, which wraps a malloced byte array, and respects: * No interior nulls * Ends with a trailing null
2013-08-09Merge remote-tracking branch 'remotes/origin/master' into ↵Erick Tryzelaar-8/+83
remove-str-trailing-nulls
2013-08-09auto merge of #8387 : brson/rust/nooldrt, r=brsonbors-21/+8
2013-08-09Fix interaction between default matches and guards. Closes #3121.Michael Sullivan-1/+0