about summary refs log tree commit diff
path: root/src/rustc
AgeCommit message (Collapse)AuthorLines
2012-09-12Make moves in arguments explicit in libsyntax and rustcTim Chevalier-6/+6
2012-09-11Introduce auto adjustment table to subsume autoderef/autoref/borrowings.Niko Matsakis-1438/+1823
Fixes #3261 Fixes #3443
2012-09-11Make the 'move mode but datum will not store' error fatalTim Chevalier-1/+1
2012-09-11Remove dead codeTim Chevalier-1/+0
2012-09-11Promote 'impl' from restricted keyword to strictBrian Anderson-13/+13
2012-09-11Convert 'use' to 'extern mod'. Remove old 'use' syntaxBrian Anderson-7/+7
2012-09-11Promote 'struct' from a restricted keyword to a strict keywordBrian Anderson-183/+182
2012-09-11Make moves explicit in rustcTim Chevalier-23/+23
2012-09-11rustc: Remove a bunch of unused upcallsPatrick Walton-17/+2
2012-09-11rustc: Remove the cmp type upcallPatrick Walton-34/+0
2012-09-10Convert 'import' to 'use'. Remove 'import' keyword.Brian Anderson-14/+10
2012-09-10Camel case std::serializationBrian Anderson-9/+7
2012-09-10rustc: Stop calling cmp shape glue in trans.Patrick Walton-10/+38
XFAIL's alt-borrowed_str for now. Will need to fix this up in the future.
2012-09-10Convert std::map to camel caseBrian Anderson-185/+185
2012-09-10Convert class methods to impl methods. Stop parsing class methodsBrian Anderson-12/+33
2012-09-10rustc: Trim down and rename trans_compare. Now only eq shape glue remains.Patrick Walton-26/+9
2012-09-10rustc: Make range literals use compare_scalar_types instead of trans_comparePatrick Walton-32/+6
2012-09-10rustc: Long linesPatrick Walton-3/+7
2012-09-10rustc: Move trans_compare into alt.rsPatrick Walton-0/+29
2012-09-10Combine the vtable_origins from impl + method.Niko Matsakis-84/+265
Not as clean as it could be, but fixes #3314.
2012-09-10rustc: Make shape-based compare glue never called for comparison operators.Patrick Walton-36/+57
Only called for string patterns.
2012-09-09Long linesBrian Anderson-1/+2
2012-09-09Rename variables that clash with keywordsBrian Anderson-37/+37
2012-09-08Fix some old syntaxBrian Anderson-2/+2
2012-09-07Convert all kind bounds to camel case. Remove send, owned keywords.Brian Anderson-41/+41
2012-09-07Remove import and export from intrinsic.rsBrian Anderson-4/+3
2012-09-07Convert 'again' to 'loop'. Remove 'again' keywordBrian Anderson-19/+19
2012-09-07Migrate std::map to use core::hash::Hash trait. Disable many hokey hashes.Graydon Hoare-82/+353
2012-09-07Remove support for multiple traits in a single implTim Chevalier-21/+21
There was half-working support for them, but they were never fully implemented or even approved. Remove them altogether. Closes #3410
2012-09-07Implement &-patternsTim Chevalier-14/+29
Closes #2855
2012-09-07Convert field terminators to commas. Stop parsing semis.Brian Anderson-119/+119
2012-09-07rustc: Add a str_eq lang item for pattern matchingPatrick Walton-25/+31
2012-09-07Remove 'let' syntax for struct fieldsBrian Anderson-98/+98
2012-09-07Do not copy values of type () or _|_Niko Matsakis-21/+30
This can trigger a crash because we assume we can supply null ptrs and undefined values for values of those types, as we should be treated them as zero-size. Interestingly, this crash only shows up (atm) in non-optimized builds. Therefore, I added a -Z no-opt flag so that the new test (capture_nil) can specify that it should not run with optimizations enabled.
2012-09-07rustc: Make "ne" use traitsPatrick Walton-2/+2
2012-09-07rustc: Trailing whitespacePatrick Walton-1/+0
2012-09-07rustc: Add an "ne" method to the Eq trait, and implement it everywherePatrick Walton-22/+76
2012-09-07Don't check impl ty params for equality with trait ty paramsTim Chevalier-4/+49
This was too restrictive. We need to check the number of ty params, and that the bounds are equal, but otherwise require_same_types does the job. Closes #2611
2012-09-07In typeck, don't assume traits with default methods are in the same crateTim Chevalier-23/+31
But note that default methods still don't work cross-crate (see #2794) -- this just makes it so that when a method is missing in a cross-crate impl, the right error message gets printed. Closes #3344
2012-09-07Ensure that scratch datum's are zeroed out in the alloca phase.Niko Matsakis-2/+2
This should address the valgrind failure that @elliotslaughter was seeing, though I am not sure why the bots / test continued to pass, since this is precisely the condition this test was looking for!
2012-09-07gc: Add stack walker for new garbage collector.Elliott Slaughter-0/+21
Safe points are exported in a per-module list via the crate map. A C runtime call walks the crate map at startup and aggregates the list of safe points for the program. Currently the GC doesn't actually deallocate memory on malloc and free. Adding the GC at this stage is primarily of testing value. The GC does attempt to clean up exchange heap and stack-allocated resource on failure. A result of this patch is that the user now needs to be careful about what code they write in destructors, because the GC and/or failure cleanup may need to call destructors. Specifically, calls to malloc are considered unsafe and may result in infinite loops or segfaults.
2012-09-07Refactor fn_ty, working towards #3320Niko Matsakis-569/+699
2012-09-06Use callee ID when kind-checking expressions that may be overloadedTim Chevalier-3/+11
And fix up test cases that should have failed if not for this bug. Closes #2587
2012-09-06Repair long linesNiko Matsakis-6/+8
2012-09-06Issue #3402: Load immediate rvalues right awayNiko Matsakis-13/+73
Should lead to smaller stack frames, hopefully reducing the perf hits we saw
2012-09-06Refactor ty_var and ty_var_integral into one ty_infer variantNiko Matsakis-174/+182
2012-09-06Remove struct ctorsBrian Anderson-197/+277
2012-09-06Refactor trans to replace lvalue and friends with Datum.Niko Matsakis-4998/+6263
Also: - report illegal move/ref combos whether or not ref comes first - commented out fix for #3387, too restrictive and causes an ICE
2012-09-05Add a lint pass for structural recordsTim Chevalier-0/+24
Closes #3322
2012-09-05rustc: Make "priv" work on enum variantsPatrick Walton-3/+4