summary refs log tree commit diff
path: root/src/test/auxiliary
AgeCommit message (Collapse)AuthorLines
2012-07-09Fix metadata serialization of foreign functions. Properly take the value of ↵Josh Matthews-0/+22
foreign functions from other crates to fix #1840.
2012-07-04convert doc-attributes to doc-comments using ↵Gareth Daniel Smith-13/+13
./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
2012-07-04Remove empty argument lists from do expressionsBen Striegel-1/+1
2012-07-03Switch 'native' to 'extern' (or 'foreign' in some descriptions)Graydon Hoare-3/+3
2012-07-01Convert to new closure syntaxBrian Anderson-4/+4
2012-06-30Eliminate usages of old sugared call syntaxBrian Anderson-2/+2
2012-06-29Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.Michael Sullivan-7/+7
2012-06-26Change 'native' and 'crust' to 'extern'.Graydon Hoare-1/+1
This comes with a terminology change. All linkage-symbols are 'extern' now, including rust syms in other crates. Some extern ABIs are merely "foreign". The term "native" is retired, not clear/useful. What was "crust" is now "extern" applied to a _definition_. This is a bit of an overloading, but should be unambiguous: it means that the definition should be made available to some non-rust ABI.
2012-06-25Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.Michael Sullivan-7/+7
2012-06-25MergeTim Chevalier-1/+1
2012-06-22Remove 'implements' keyword in favour of :, part of #2301.Graydon Hoare-1/+1
2012-06-22Remove resources from remaining test casesTim Chevalier-5/+10
2012-06-20Test for #2242 (xfailed for now)Tim Chevalier-0/+29
2012-06-15Test case for #2631Tim Chevalier-0/+15
2012-06-13Allow impls to be re-exportedTim Chevalier-0/+14
It was a little hard for me to believe, but it seems that re-exporting an impl doesn't work at a, because encoder::encode_info_for_mod requires that all the impls in the current module's impl map be local (that is, bound to a value in the current crate's item map). Fixed it. Closes #2414.
2012-06-13Traverse types in reachabilityTim Chevalier-0/+32
Issue 2526 showed a test case where a library exported only a type that was a synonym for a class. Because the class's destructor wasn't getting marked as reachable, its linkage was wrongly getting set to "internal". The solution is for reachability to traverse types. Closes #2526.
2012-06-12Test case for previous commitTim Chevalier-0/+108
(basically a stripped-down version of comm, and a "driver" that constructs a new port)
2012-06-06minor changes to tests so they pass borrowckNiko Matsakis-9/+9
2012-05-30Adding a test to make sure CCI works with capture clauses.Eric Holk-0/+12
2012-05-29Test case for issue 2380Tim Chevalier-0/+10
2012-05-26core: Make range follow the for loop protocolBrian Anderson-1/+1
2012-05-18test for #2378Niko Matsakis-0/+22
2012-05-02report ambig impl methodsNiko Matsakis-0/+1
2012-05-02Encode the ifaces a class implements in metadataTim Chevalier-0/+40
This lets you use class A as if it had type B if A implements B, and A and B are in different crates from your own. Closes #2285
2012-05-01Don't re-export a glob-imported ID when the same ID is defined withinTim Chevalier-0/+19
a module See the test case I added (issue-2316-c) for a concrete example. issue-2316 also contains the originally reported test case. resolve was using bitwise or instead of logical or when checking exports, resulting in excessively eager evaluation. A one-line fix that took six hours to isolate ;-)
2012-04-23encode the borrowing table, add a simple cross-crate borrowing testNiko Matsakis-0/+3
2012-04-21syntax: Eliminate 'mutable' keyword. Closes #2254Brian Anderson-1/+1
2012-04-16test: Add xfailed test for #2196Brian Anderson-0/+21
2012-04-11Test that a class can implement an interface defined in a different crateTim Chevalier-0/+7
2012-04-10Generic classes and generic class methods work cross-crateTim Chevalier-0/+21
Classes can have ty params now. So can methods inside classes. That was probably true before, but now it should still work if you call methods in a class that's defined in a different crate. Yay!
2012-04-10test: Remove duplicated auxliary testsHaitao Li-22/+8
2012-04-09make anything used in a resource body always reachableNiko Matsakis-0/+8
(they appear to be uncond. inlined) Fixes #2170.
2012-04-09test: Don't share auxiliary modulesHaitao Li-6/+20
2012-04-08Check metadata hash when loading transitive dependent cratesHaitao Li-0/+14
Fix issue #2138
2012-04-07rustc: Hash the CMH into symbol namesBrian Anderson-0/+14
2012-04-07test: Add test for mismatched nominal types when using multiple crate versBrian Anderson-0/+12
2012-04-07test: Add another test using multiple versions of the same crateBrian Anderson-0/+20
2012-04-08Check version when resolving transitive dependent cratesHaitao Li-0/+24
Issue #2138
2012-04-07Use version and hash in crate_map nameHaitao Li-0/+12
Related issue #2137
2012-04-06Convert old-style for loops to new-styleMarijn Haverbeke-1/+1
Most could use the each method, but because of the hack used to disambiguate old- and new-style loops, some had to use vec::each. (This hack will go away soon.) Issue #1619
2012-04-06test: Refactor the crateresolve testsBrian Anderson-3/+21
Keep their aux builds from stomping on each other
2012-04-05rustc: Don't assume that all crates with the same name are the sameBrian Anderson-0/+18
2012-03-29Require "self" as base expression for intra-class method or field referencesTim Chevalier-13/+13
All field or method references within a class must begin with "self." now. A bare reference to a field or method in the same class will no longer typecheck.
2012-03-27Enforce mutability declarations in classes; correct shapes for classesTim Chevalier-2/+4
1. Enforce mutability declarations on class fields. Don't allow any mutation of class fields not declared as mutable (except inside the constructor). 2. Handle classes correctly in shape (treat classes like records).
2012-03-26Bulk-edit mutable -> mut.Graydon Hoare-5/+5
2012-03-26In typeck, don't call ty::store_iface_methods on private methodsTim Chevalier-0/+14
This was resulting in a different error message depending on whether the private method you were trying to call was in the same crate or a different one.
2012-03-23Allow methods to call other methods in the same classTim Chevalier-0/+34
2012-03-23Add another test for cross-crate method callsTim Chevalier-0/+17
2012-03-23Implement new inference algorithm.Niko Matsakis-0/+3
2012-03-22make --enforce-mut-vars always on, add mut annotations to remaining filesNiko Matsakis-3/+3