summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2012-03-28test: Un-XFAIL regions-mock-trans.rs and regions-mock-trans-impls.rsPatrick Walton-4/+0
2012-03-28rustc: Universally quantify regions when calling functions. Un-XFAIL ↵Patrick Walton-2/+0
regions-addr-of-ret.rs.
2012-03-28Allow references to "self" within classesTim Chevalier-1/+1
Allow writing self.f within a class that has a field f. Currently, the compiler accepts either self.f or f. In a future commit I'll require writing self.f and not f. Not sure whether self.f() works if f is a method (making sure that works next).
2012-03-28Test case to make sure typestate checks the body of class constructorsTim Chevalier-0/+23
2012-03-27Enforce mutability declarations in classes; correct shapes for classesTim Chevalier-6/+55
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-27Support returning from loop blocksMarijn Haverbeke-0/+57
The code is somewhat invasive, but it seems hard to do this in a clean way, since the design itself involves a bunch of 'action at a distance'. Issue #1819
2012-03-26Bulk-edit mutable -> mut.Graydon Hoare-190/+190
2012-03-26rustc: Begin eliminating ext's dependency on the sessionBrian Anderson-8/+6
2012-03-26In typeck, don't call ty::store_iface_methods on private methodsTim Chevalier-1/+35
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-26Improve type inference to compute LUB/GLBNiko Matsakis-6/+9
2012-03-26Remove stray commentTim Chevalier-9/+0
2012-03-26Enforce privacy declarations for class fields and methodsTim Chevalier-0/+90
2012-03-26Disallow ret inside of block functionsMarijn Haverbeke-2/+2
Also adds proper checking for cont/break being inside a loop. Closes #1854 Issue #1619
2012-03-24correct more broken testsNiko Matsakis-12/+20
2012-03-24add test that was failing from tedhNiko Matsakis-0/+11
2012-03-24add annotation for variable that used to infer to botNiko Matsakis-1/+1
2012-03-24Avoid unifying vars when possible; handle bot (more) correctlyNiko Matsakis-7/+67
2012-03-24new test which features conflicting variance requirementsNiko Matsakis-0/+46
2012-03-24test: Rename run-pass/simple-regions.rs to run-pass/regions-simple.rsPatrick Walton-0/+0
This groups all the region tests under regions-*.
2012-03-24test: Add a simple test for dangling pointersPatrick Walton-0/+9
2012-03-23Allow methods to call other methods in the same classTim Chevalier-4/+59
2012-03-23Add another test for cross-crate method callsTim Chevalier-0/+30
2012-03-23xfail-test regions testsNiko Matsakis-0/+6
2012-03-23Implement new inference algorithm.Niko Matsakis-19/+61
2012-03-23Handle self correctly when translating classesTim Chevalier-1/+0
This change uses the same code for handling the "self" reference for classes as is already used for impls/ifaces. This allows removing the extra maybe_self_id argument (which was just for classes) to trans_closure that I added before. I also rewrote the translation for class ctors so that it doesn't generate new AST nodes (instead translating directly). Also changed visit so that it visits class ctors correctly with visit_fn, and changed typestate to not do return-checking when visiting a class ctor.
2012-03-23test: Add a test case that ensures `ret &EXPR` works.Patrick Walton-0/+8
2012-03-23test: Fix unresolved name in regions-mock-trans-impls.rsPatrick Walton-1/+1
2012-03-23test: Add a version of the "mock-trans" regions test case that uses implsPatrick Walton-0/+46
2012-03-23test: Fix leak in regions-mock-transPatrick Walton-1/+4
2012-03-23test: Fix whitespace at EOLPatrick Walton-1/+1
2012-03-23test: Add a trans.rs-workalike test case for regionsPatrick Walton-0/+41
2012-03-23rustc: Redo region inference to be a bit less brokenPatrick Walton-0/+1
2012-03-23Keep an explicit map of things that have to be spilledMarijn Haverbeke-0/+6
This prevents us from spilling locals more than once. Closes #2040
2012-03-23Replace most uses of intrinsics in core with builtinsMarijn Haverbeke-29/+0
Issue #1981
2012-03-22Make cross-crate calls to class methods workTim Chevalier-3/+2
2012-03-22rt: Run resource destructors during cycle collectionBrian Anderson-0/+69
2012-03-22make --enforce-mut-vars always on, add mut annotations to remaining filesNiko Matsakis-287/+300
2012-03-21methods workTim Chevalier-6/+50
Cross-crate method calls don't work yet. Added run-pass/class-method-cross-crate to test that, but it's xfailed References to fields within methods don't work yet. Added run-pass/class-methods to test that, but it's also xfailed
2012-03-21add test for commit 9502fb99e0d535c8ced17ac61e63ebbd67b7dba7Niko Matsakis-0/+22
2012-03-21Adjust arena definition to be compatible with placement newNiko Matsakis-0/+9
2012-03-20Implement an initial version of placement new.Niko Matsakis-2/+38
2012-03-20Conditionalize test to only run double/byte/double test on x64 for now.Graydon Hoare-6/+13
2012-03-20Xfail struct-return test. x64 ABI is not quite right yet.Graydon Hoare-0/+1
2012-03-20Class methods WIPTim Chevalier-1/+7
In particular, use the ast::method type to represent a class method, and try to reuse as much iface code as possible. (This makes sense now since I'll be allowing polymorphic class methods.)
2012-03-20Some tests for passing and returning structures by value on x64. Close ↵Graydon Hoare-0/+39
#1402. Close #1970.
2012-03-20core: Rename unsafe::leak to unsafe::forget. Closes #2031Brian Anderson-1/+1
2012-03-19test: Remove pretty/issue-953. Doesn't typecheckBrian Anderson-5/+0
2012-03-16Encode both private and public class fields in metadataTim Chevalier-3/+0
This is necessary to calculate the correct offsets for field references. Simple cross-crate class tests (still with fields only) now pass.
2012-03-16rustc: Unify impl self types in the opposite order so variance is correctBrian Anderson-0/+12
2012-03-16Classes WIPTim Chevalier-0/+44
Cross-crate metadata for classes works well enough that programs with classes in other crates compile successfully, but output wrong results. Checking in work so far to avoid merge hassles. (Tests are xfailed.)