summary refs log tree commit diff
path: root/src/test/auxiliary
AgeCommit message (Collapse)AuthorLines
2013-03-29Add AbiSet and integrate it into the AST.Niko Matsakis-3/+3
I believe this patch incorporates all expected syntax changes from extern function reform (#3678). You can now write things like: extern "<abi>" fn foo(s: S) -> T { ... } extern "<abi>" mod { ... } extern "<abi>" fn(S) -> T The ABI for foreign functions is taken from this syntax (rather than from an annotation). We support the full ABI specification I described on the mailing list. The correct ABI is chosen based on the target architecture. Calls by pointer to C functions are not yet supported, and the Rust type of crust fns is still *u8.
2013-03-27testsuite: Add various test casesTim Chevalier-0/+3
Some are xfailed, some not, some existing ones get un-xfailed.
2013-03-26test: Fix testsPatrick Walton-2/+2
2013-03-26librustc: Enforce that `extern mod` directives come first, then `use` ↵Patrick Walton-0/+6
directives, then items. Resolve them in this order as well.
2013-03-26test: Remove uses of oldmap::HashMapAlex Crichton-4/+4
2013-03-22librustc: Remove the `const` declaration form everywherePatrick Walton-3/+3
2013-03-22libsyntax: Stop parsing `pure` and `static`Patrick Walton-2/+2
2013-03-22test: Remove `pure` from the test suitePatrick Walton-17/+17
2013-03-22librustc: Remove all uses of `static` from functions. rs=destaticPatrick Walton-8/+8
2013-03-21auto merge of #5480 : pcwalton/rust/at-const, r=pcwaltonbors-0/+1
r? @catamorphism
2013-03-21librustc: Forbid destructors from being attached to any structs that might ↵Patrick Walton-0/+1
contain non-Owned fields. r=nmatsakis
2013-03-21auto merge of #5461 : catamorphism/rust/flagless, r=nikomatsakisbors-0/+14
r? @nikomatsakis The typechecker previously passed around a boolean return flag to indicate whether it saw something with type _|_ (that is, something it knows at compile-time will definitely diverge) and also had some manual checks for the `ty_err` pseudo-type that represents a previous type error. This was because the typing rules implemented by the typechecker didn't properly propagate _|_ and ty_err. I fixed it. This also required changing expected error messages in a few tests, as now we're printing out fewer derived errors -- in fact, at this point we should print out no derived errors, so report any that you see (ones that include "[type error]") as bugs.
2013-03-21librustc: Forbid access to cross-crate private static methodsPatrick Walton-0/+10
2013-03-20Make typechecker compositionalTim Chevalier-0/+14
The typechecker previously passed around a boolean return flag to indicate whether it saw something with type _|_ (that is, something it knows at compile-time will definitely diverge) and also had some manual checks for the `ty_err` pseudo-type that represents a previous type error. This was because the typing rules implemented by the typechecker didn't properly propagate _|_ and ty_err. I fixed it. This also required changing expected error messages in a few tests, as now we're printing out fewer derived errors -- in fact, at this point we should print out no derived errors, so report any that you see (ones that include "[type error]") as bugs.
2013-03-18librustc: Convert all uses of old lifetime notation to new lifetime ↵Patrick Walton-1/+1
notation. rs=delifetiming
2013-03-13test: Fix tests. rs=testsPatrick Walton-1/+1
2013-03-13test: Some test fixesPatrick Walton-3/+3
2013-03-13librustc: Remove implicit self from the language, except for old-style drop ↵Patrick Walton-28/+28
blocks.
2013-03-13librustc: Don't accept `as Trait` anymore; fix all occurrences of it.Patrick Walton-1/+1
2013-03-13Remove `++` mode from the compiler (it is parsed as `+` mode)Niko Matsakis-1/+1
and obsolete `-` mode altogether (it *was* parsed as `+` mode).
2013-03-11test: Fix tests. rs=testsPatrick Walton-2/+2
2013-03-11test: Remove newtype enums from the test suite. rs=deenumPatrick Walton-2/+2
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-4/+4
2013-03-08test: Removing dvec usesAlex Crichton-7/+4
2013-03-07librustc: Remove "extern mod { ... }" from librustc, librustdoc, and tests. ↵Patrick Walton-23/+32
rs=deexterning
2013-03-07Inline constants across crates.Josh Matthews-0/+16
2013-03-06Fix bug in coherence that causes all cross-crate impls to be regarded asNiko Matsakis-0/+21
inherent impls, not just those of the `impl Type` variety.
2013-03-05libsyntax: Separate multiple inherited traits with `+`Patrick Walton-2/+2
2013-03-02test: Remove `fn@`, `fn~`, and `fn&` from the test suite. rs=defunPatrick Walton-2/+3
2013-03-02librustc: Forbid chained imports and fix the logic for one-level renaming ↵Patrick Walton-2/+2
imports
2013-02-28Remove legacy object creation mode, and convert remaining uses of itNiko Matsakis-1/+1
2013-02-28librustc: Enforce cross-crate method privacyPatrick Walton-2/+2
2013-02-28librustc: Mark all type implementations public. rs=impl-publicityPatrick Walton-2/+2
2013-02-27Turn old `drop` blocks into `Drop` traitsBen Striegel-1/+4
2013-02-27librustc: Forbid `pub` or `priv` before trait implementationsPatrick Walton-10/+10
2013-02-25test: Residual de-muting of the test suite. rs=demutingPatrick Walton-29/+28
2013-02-22test: De-mut the test suite. rs=demutingPatrick Walton-2/+2
2013-02-21core: Extract comm from pipes. #4742Brian Anderson-1/+1
2013-02-20librustc: Separate most trait bounds with '+'. rs=plussingPatrick Walton-11/+11
2013-02-17Remove use of capture clause #4965Seth Pink-1/+1
2013-02-15librustc: Stop parsing `impl Type : Trait` and fix several declarations that ↵Patrick Walton-10/+10
slipped through. r=tjc
2013-02-15tests/tutorials: Get rid of `move`.Luqman Aden-1/+1
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-26/+26
rs=implflipping
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-4/+4
2013-02-13librustc: Make monomorphic newtype structs work cross-cratePatrick Walton-0/+4
2013-02-12auto merge of #4900 : luqmana/rust/core_os_errors, r=graydonbors-2/+2
Rewrote the last pull request (#4859) to not require on llvm for core. Also fixes #2269.
2013-02-12Revert "librustc: Make monomorphic newtype structs work cross-crate"Graydon Hoare-4/+0
This reverts commit a8f039a085c7d7622899b7a4d1bebfe2d7621165.
2013-02-11rt: remove last_os_error and adjust tests.Luqman Aden-2/+2
2013-02-11librustc: Make monomorphic newtype structs work cross-cratePatrick Walton-0/+4
2013-02-05oldmap: use &K instead of K in find and getPatrick Walton-1/+1
This reverts commit a4250a96fdf61142a9c8dbb6d37ae8435c99e396. This is not the cause of the nonexhaustive-match failure.