about summary refs log tree commit diff
path: root/src/rustc/middle
AgeCommit message (Collapse)AuthorLines
2012-09-13s/vec::as_buf/vec::as_imm_buf/, fix comment, remove set.rsNiko Matsakis-5/+5
hat tip to @jruderman
2012-09-13remove commented code that used to cause borrowck errorNiko Matsakis-10/+0
Fixes #2280
2012-09-12trans: overhaul match bindings. No more phi, one code path for guards.Niko Matsakis-393/+694
Fixes #3256. Fixes #3291.
2012-09-12Rename vec::unsafe to vec::rawBrian Anderson-17/+17
2012-09-12purge the separate path for rel ops (e.g., ==) vs other bin opsNiko Matsakis-60/+22
2012-09-12rustc: Use the correct 'fail' rtcallBrian Anderson-1/+1
2012-09-12Add some monomorphizing instrumentation, simplify types before emitting glue.Graydon Hoare-4/+135
2012-09-12fixup mutability of vec::each, make iter_bytes pureNiko Matsakis-30/+30
also, change DVec() to work with imm vectors rather than mut ones
2012-09-12Rename core::rt_fail to core::rt_fail_Brian Anderson-1/+1
2012-09-12Make moves in arguments explicit in libsyntax and rustcTim Chevalier-4/+4
2012-09-11Introduce auto adjustment table to subsume autoderef/autoref/borrowings.Niko Matsakis-1415/+1766
Fixes #3261 Fixes #3443
2012-09-11Make the 'move mode but datum will not store' error fatalTim Chevalier-1/+1
2012-09-11Promote 'impl' from restricted keyword to strictBrian Anderson-12/+12
2012-09-11Promote 'struct' from a restricted keyword to a strict keywordBrian Anderson-177/+176
2012-09-11Make moves explicit in rustcTim Chevalier-20/+20
2012-09-11rustc: Remove the cmp type upcallPatrick Walton-21/+0
2012-09-10Convert 'import' to 'use'. Remove 'import' keyword.Brian Anderson-3/+3
2012-09-10Camel case std::serializationBrian Anderson-7/+7
2012-09-10rustc: Stop calling cmp shape glue in trans.Patrick Walton-9/+37
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-155/+155
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-36/+36
2012-09-07Convert 'again' to 'loop'. Remove 'again' keywordBrian Anderson-17/+17
2012-09-07Migrate std::map to use core::hash::Hash trait. Disable many hokey hashes.Graydon Hoare-81/+352
2012-09-07Remove support for multiple traits in a single implTim Chevalier-16/+19
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-117/+117
2012-09-07rustc: Add a str_eq lang item for pattern matchingPatrick Walton-25/+30
2012-09-07Remove 'let' syntax for struct fieldsBrian Anderson-90/+90
2012-09-07Do not copy values of type () or _|_Niko Matsakis-0/+4
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/+68
2012-09-07Don't check impl ty params for equality with trait ty paramsTim Chevalier-3/+31
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-551/+673
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