about summary refs log tree commit diff
path: root/src/rustc/middle
AgeCommit message (Collapse)AuthorLines
2012-10-22rustc: Convert two printlns in trans into debug!Brian Anderson-2/+2
2012-10-22Long linesBrian Anderson-1/+2
2012-10-22Merge pull request #3826 from jdm/doublefailBrian Anderson-1/+1
Fix ICE stemming from use of unique pointers in unreachable blocks.
2012-10-22Fix breakage (forgot to commit this...Tim Chevalier-1/+1
2012-10-22Incorporate review comments (mostly fixing indentation)Tim Chevalier-28/+26
Previous commit was r=nmatsakis
2012-10-22Preliminary support for labeled break/continue for `loop`sTim Chevalier-81/+193
This patch adds preliminary middle-end support (liveness and trans) for breaks and `loop`s to `loop` constructs that have labels. while and for loops can't have labels yet. Progress on #2216
2012-10-22Simplify the AST representation of ty param boundsTim Chevalier-28/+35
Change ast::ty_param_bound so that all ty param bounds are represented as traits, with no special cases for Copy/Send/Owned/Const. typeck::collect generates the special cases. A consequence of this is that code using the #[no_core] attribute can't use the Copy kind/trait. Probably not a big deal? As a side effect, any user-defined traits that happen to be called Copy, etc. in the same module override the built-in Copy trait. r=nmatsakis Closes #2284
2012-10-21Correct propagation of mutability from components to base in borrowckNiko Matsakis-9/+61
Fixes #3828.
2012-10-21rustc: add new intrinsics - atomic_cxchg{_acq,_rel}Luqman Aden-6/+44
2012-10-21Fix ICE stemming from use of unique pointers in unreachable blocks.Josh Matthews-1/+1
2012-10-20Remove old fixed-length vector syntaxBen Striegel-5/+5
2012-10-19Remove superfluous by-ref in option::get, option::get_default, option::expectTim Chevalier-5/+5
Superficial change, no review.
2012-10-18rustc: Implement intra-crate static methods on anonymous trait ↵Patrick Walton-23/+101
implementations. r=nmatsakis
2012-10-18rustc: optimize away some mallocs when building GEP argsErick Tryzelaar-2/+1
2012-10-17Merge pull request #3716 from Blei/fix-3656Tim Chevalier-3/+4
rustc: fix size computation of structs for the FFI
2012-10-16Remove integer suffixesTim Chevalier-2/+2
2012-10-16Change a use of map::get to map::findTim Chevalier-2/+2
2012-10-16rustc: Implement intra-crate static methods on anonymous trait implementations.Patrick Walton-109/+297
2012-10-15In ty::normalize_ty, don't replace self_regions with NoneTim Chevalier-4/+10
Instead, replace with re_static. This was causing ty::subst to fail when called from trans::type_of::type_of. Already discussed with nmatsakis and it's a small change, so no review. Closes #3447
2012-10-15Error out in resolve if structs try to capture type parametersTim Chevalier-2/+2
Closes #3214
2012-10-15rustc: Merge module and type namespaces. r=brsonPatrick Walton-528/+459
2012-10-15rustc: Implement monomorphic default methods. r=nmatsakisPatrick Walton-293/+522
2012-10-15Check whether loans conflict with old loans or with themselves.Niko Matsakis-94/+140
Along the way, convert from dvec-of-dvec representation to track loans in scope to just a single flattened list. It's more convenient. Fixes #3765. r+ pcwalton.
2012-10-15Fix whitespaceTim Chevalier-2/+2
2012-10-15Allow enum discriminator exprs to refer to declared constsTim Chevalier-115/+196
Also some work towards #3521 Closes #2428
2012-10-12Avoid repeating 'try adding a move' hintTim Chevalier-3/+5
2012-10-12Remove unneeded parensTim Chevalier-1/+1
2012-10-12Make trans ignore last useTim Chevalier-17/+9
2012-10-12Change the kind checker to ignore results of last-useTim Chevalier-37/+49
and require explicit moves. Also provide more info in some error messages. Also: check that non-copyable struct fields don't get copied. Closes #3481
2012-10-12(For legacy code:) In liveness, require that by-move arguments are rvaluesTim Chevalier-1/+9
2012-10-12Make moves explicit in rustc::middleTim Chevalier-4/+4
2012-10-12remove ctor from ast (take 2) (no review: just dead code removal)Niko Matsakis-492/+108
2012-10-12Use the Nth impl when translating a static method call, insteadNiko Matsakis-12/+52
of the 0th. 0th is only correct when there are no bound tps on the trait. Fixes #3741.
2012-10-12Replace several common macros of the form #m[...] with m!(...)Kevin Cantu-18/+18
This commit replaces nearly all remaining uses of #fmt, #debug, #error, and #info, and fixes some error messages...
2012-10-11Use truncate in typeck::infer; gets rid of FIXMETim Chevalier-5/+2
2012-10-11Remove obsolete commentTim Chevalier-5/+0
2012-10-11Update FIXME numbersTim Chevalier-7/+6
2012-10-11Remove obsolete FIXMETim Chevalier-3/+0
2012-10-11Update FIXME numbersTim Chevalier-2/+2
2012-10-11Remove obsolete FIXMETim Chevalier-6/+1
2012-10-11Make to_str pure and fix const parameters for str-mutating functionsTim Chevalier-2/+2
Two separate changes that got intertwined (sorry): Make to_str pure. Closes #3691 In str, change functions like push_char to take an &mut str instead of an &str. Closes #3710
2012-10-10rustc: fix size computation of structs for the FFIPhilipp Brüschweiler-3/+4
It didn't take alignment into account. Fixes #3656.
2012-10-08Revert "Revert "Remove old auto_serialize2 code (needs snapshot)""Tim Chevalier-22/+0
This reverts commit a33535e441dc5461fec0489069a1491367ad1c91.
2012-10-08Revert "Remove old auto_serialize2 code (needs snapshot)"Tim Chevalier-0/+22
This reverts commit 0bd6da8a8c93143325cb45e8a074ccf7121ca168.
2012-10-07Remove old auto_serialize2 code (needs snapshot)Erick Tryzelaar-22/+0
2012-10-07Remove the old serializers (needs snapshot)Erick Tryzelaar-46/+67
2012-10-07migrate libsyntax/rustc to auto_serialize2Erick Tryzelaar-112/+112
2012-10-05Remove by-mutable-ref mode from the compilerTim Chevalier-44/+12
and test cases. Closes #3513
2012-10-05De-mode mysterious unused functions in middle::trans::shape (see comment)Tim Chevalier-4/+8
2012-10-05rustc: Add a new method_self method call origin. Part of default methods.Patrick Walton-15/+61