about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2013-08-27librustc: Ensure that type parameters are in the right positions in paths.Patrick Walton-47/+79
This removes the stacking of type parameters that occurs when invoking trait methods, and fixes all places in the standard library that were relying on it. It is somewhat awkward in places; I think we'll probably want something like the `Foo::<for T>::new()` syntax.
2013-08-27librustc: Add support for type parameters in the middle of paths.Patrick Walton-0/+16
For example, `foo::<T>::bar::<U>`. This doesn't enforce that the type parameters are in the right positions, however.
2013-08-27librustc: Remove `&const` and `*const` from the language.Patrick Walton-225/+13
They are still present as part of the borrow check.
2013-08-27Replace HashUtil w/ default method on HashJason Fager-4/+0
2013-08-27auto merge of #8799 : fhahn/rust/ticket_5783, r=catamorphismbors-0/+19
I've added a testcase, as mentioned in #5783
2013-08-27auto merge of #8797 : ↵bors-0/+61
nikomatsakis/rust/issue-8625-assign-to-andmut-in-borrowed-loc-2, r=pcwalton Fixes for #8625 to prevent assigning to `&mut` in borrowed or aliasable locations. The old code was insufficient in that it failed to catch bizarre cases like `& &mut &mut`. r? @pnkfelix
2013-08-27auto merge of #8771 : thestinger/rust/repr, r=catamorphismbors-27/+6
2013-08-27Add test for #5783Florian Hahn-0/+19
2013-08-27reflect: rm unused visit_{var,var_integral,constr}Daniel Micay-21/+0
2013-08-27repr: print integer/float suffixesDaniel Micay-6/+6
2013-08-27Extend aliasability check to uncover `& &mut &mut` and the likeNiko Matsakis-0/+30
2013-08-27auto merge of #8772 : thestinger/rust/option, r=anasazibors-25/+0
Closes #6002 There is consensus that the current implementation should be changed or removed, so removing it seems like the right decision for now.
2013-08-27option: rm implementation of AddDaniel Micay-25/+0
Closes #6002 There is consensus that the current implementation should be changed or removed, so removing it seems like the right decision for now.
2013-08-26auto merge of #8757 : vadimcn/rust/debug-info-tests, r=brsonbors-140/+4
Now that new LLVM has landed, the debug info works on Windows as well. Most existing tests pass, except for the following four, which I left disabled for now: lexical-scope-in-for-loop lexical-scope-in-if lexical-scope-in-match lexical-scopes-in-block-expression Also, fixed a small problem with the debug info test runner.
2013-08-26auto merge of #8739 : fhahn/rust/ticket_2275, r=brsonbors-0/+450
This is a pull request for #2275 I've created a small python script to generate test files for a list of keywords (as break do else enum extern false fn for if impl let loop match mod mut priv pub ref return self static struct super true trait type unsafe use while), but I'm not really sure where to put it. I've added the created files as well. I did not use fn main() { let $KW = "foo"; //~ error println($KW); //~ error } as template, because for return, self, ref, loop, mut and break this does not raise an error in the ```println``` line, only in the ```let``` line.
2013-08-26Fix deriving-zero testCorey Richardson-2/+0
2013-08-26Add script and tests for using keywords as identifiersFlorian Hahn-0/+450
2013-08-26auto merge of #8744 : jld/rust/discr64, r=nikomatsakisbors-0/+25
This is in preparation for making discriminants not always be int (#1647), but it also makes compiles for a 64-bit target not behave differently — with respect to how many bits of discriminants are preserved — depending on the build host's word size, which is a nice property to have. We may want to standardize how to abbreviate "discriminant" in a followup change.
2013-08-26Un-disabled debug info tests on Windows.Vadim Chugunov-140/+4
2013-08-24Add a test case for the preceding changes.Jed Davis-0/+25
This would have failed on 32-to-64-bit cross-compiles.
2013-08-24Introduce alternate forms of loggingAlex Crichton-1/+1
These new macros are all based on format! instead of fmt! and purely exist for bootstrapping purposes. After the next snapshot, all uses of logging will be migrated to these macros, and then after the next snapshot after that we can drop the `2` suffix on everything
2013-08-24Settle on the format/write/print family of namesAlex Crichton-218/+233
2013-08-24Implement a wrapper macro around fprintf -- ifmtfAlex Crichton-1/+21
2013-08-23rt: Move some test functions to rust_test_helpersBrian Anderson-20/+20
2013-08-23Emit a better error for attempted unsafe-pointer-self. Close #8306.Ben Blum-0/+22
2013-08-23Parse and reserve typeof keyword. #3228Ben Blum-0/+13
2013-08-23auto merge of #8677 : bblum/rust/scratch, r=alexcrichtonbors-0/+21
r anybody; there isn't anything complicated here
2013-08-22auto merge of #8596 : vadimcn/rust/master, r=alexcrichtonbors-16/+0
This resolves issue #908. Notable changes: - On Windows, LLVM integrated assembler emits bad stack unwind tables when segmented stacks are enabled. However, unwind info directives in the assembly output are correct, so we generate assembly first and then run it through an external assembler, just like it is already done for Android builds. - Linker is invoked via "g++" command instead of "gcc": g++ passes the appropriate magic parameters to the linker, which ensure correct registration of stack unwind tables in dynamic libraries.
2013-08-22Don't do a bogus substitution on the transformed self ty for objects. Closes ↵Michael Sullivan-0/+20
#8664.
2013-08-22Substitute into the impl method rather than the trait method when emitting ↵Michael Sullivan-0/+26
vtables. Closes #8601.
2013-08-22auto merge of #8666 : nikomatsakis/rust/issue-3678-extern-fn-types, r=pcwaltonbors-26/+101
Change the type of crust fns like this one: extern fn foo() { ... } from `*u8` to `extern "C" fn()`. r? @pcwalton (or whomever)
2013-08-22auto merge of #8626 : kballard/rust/issue-8615, r=catamorphismbors-0/+14
Fixes #8615.
2013-08-22auto merge of #8620 : brson/rust/issue-7563, r=alexcrichtonbors-0/+25
2013-08-22Enabled tests.Vadim Chugunov-16/+0
2013-08-21auto merge of #8570 : catamorphism/rust/2013-08-16-rollup, r=catamorphismbors-3/+180
Nothing arguable here, as far as I can tell.
2013-08-21auto merge of #8562 : bblum/rust/superkinds, r=nikomatsakisbors-0/+360
For #7083. The metadata issue with the old version is now fixed. Ready for review. This is also not the full solution to #7083, because this is not supported yet: ``` trait Foo : Send { } impl <T: Send> Foo for T { } fn foo<T: Foo>(val: T, chan: std::comm::Chan<T>) { chan.send(val); } ``` cc @nikomatsakis
2013-08-21test: Add test for #7563. Closes #7563Brian Anderson-0/+25
2013-08-21oops v2, apparently writing std::comm::stream() doesn't work on check-fast; ↵Ben Blum-10/+19
fix this
2013-08-21auto merge of #8595 : vadimcn/rust/print_link_args, r=alexcrichtonbors-0/+0
This resolves issue #8569
2013-08-21testsuite: Un-xfail test for #5917Tim Chevalier-3/+1
2013-08-21testsuite: Test for #4447Tim Chevalier-0/+15
Closes #4447
2013-08-21testsuite: Test for #6132Tim Chevalier-0/+24
Closes #6132
2013-08-21rustc: More helpful error message when using a struct type like a functionTim Chevalier-0/+19
Closes #6702
2013-08-21Testsuite: Test for #7013. Closes #7013Tim Chevalier-0/+43
2013-08-21testsuite: Tests for #6458. Closes #6458Tim Chevalier-0/+78
2013-08-21Only bug on self-not-mapped-to-def if no previous errors were present. Close ↵Ben Blum-0/+21
#6642.
2013-08-21auto merge of #8594 : bytewiseand/rust/static-fn-ptr, r=pcwaltonbors-0/+64
Fixes #8588
2013-08-21oops, xfail-fast the cross-crate superkind testsBen Blum-0/+6
2013-08-21Changed `fn main` to `pub fn main`Andreas Martens-1/+1
2013-08-21Prohibit assignment to `&mut` pointers that are found in frozen or borrowed ↵Niko Matsakis-0/+31
locations. Fixes #8625.