about summary refs log tree commit diff
path: root/src/rustc
AgeCommit message (Collapse)AuthorLines
2012-07-03Remove rule requiring non-nil block-style statements to be semi-terminatedBrian Anderson-15/+11
This is a subtle rule that no longer seems to be required.
2012-07-03Change crust -> extern.Graydon Hoare-2/+2
2012-07-03rustc: Avoid a lot of copying in metadata when reading implsPatrick Walton-6/+20
2012-07-03Switch 'native' to 'extern' (or 'foreign' in some descriptions)Graydon Hoare-39/+39
2012-07-03rustc: Add X-ray functionality to resolve3 so the test runner worksPatrick Walton-34/+58
2012-07-03rustc: Record the main function in the session in resolve3Patrick Walton-0/+25
2012-07-03Fix some indentation in check::vtable.Michael Sullivan-52/+52
2012-07-02rustc: Remove some comments from resolve3 that are being misparsed as attributesBrian Anderson-4/+4
2012-07-02rustc: Implement a new resolve pass behind a compile flagPatrick Walton-145/+4256
2012-07-02Implemented better error message for missing do statements.Armin Ronacher-0/+14
This fixes #2783 for the case where an empty double pipe symbol is being used without a do keyword.
2012-07-02Mark -g as experimental (#2767)Brian Anderson-1/+1
2012-07-02Merge remote-tracking branch 'Dretch/prettydocs'Brian Anderson-2/+4
Conflicts: src/compiletest/errors.rs src/libsyntax/parse/attr.rs src/libsyntax/parse/comments.rs src/test/compile-fail/ambig_impl_unify.rs src/test/compile-fail/assign-super.rs src/test/compile-fail/bad-for-loop.rs src/test/compile-fail/bad-var-env-capture-in-block-arg.rs src/test/compile-fail/block-arg-as-stmt-with-value.rs src/test/compile-fail/borrowck-assign-comp-idx.rs src/test/compile-fail/borrowck-lend-flow.rs src/test/compile-fail/borrowck-loan-blocks-move-cc.rs src/test/compile-fail/borrowck-loan-blocks-mut-uniq.rs src/test/compile-fail/borrowck-loan-rcvr.rs src/test/compile-fail/borrowck-loan-vec-content.rs src/test/compile-fail/borrowck-mut-vec-as-imm-slice-bad.rs src/test/compile-fail/cap-clause-with-stack-closure.rs src/test/compile-fail/do1.rs src/test/compile-fail/do2.rs src/test/compile-fail/empty-vec-trailing-comma.rs src/test/compile-fail/evec-subtyping.rs src/test/compile-fail/issue-1896.rs src/test/compile-fail/issue-2149.rs src/test/compile-fail/issue-2150.rs src/test/compile-fail/issue-2487-b.rs src/test/compile-fail/kindck-implicit-close-over-mut-var.rs src/test/compile-fail/liveness-issue-2163.rs src/test/compile-fail/liveness-use-in-index-lvalue.rs src/test/compile-fail/no-reuse-move-arc.rs src/test/compile-fail/no-send-res-ports.rs src/test/compile-fail/non-const.rs src/test/compile-fail/pure-higher-order.rs src/test/compile-fail/pure-loop-body.rs src/test/compile-fail/regions-addr-of-upvar-self.rs src/test/compile-fail/regions-escape-loop-via-vec.rs src/test/compile-fail/regions-scoping.rs src/test/compile-fail/seq-args.rs src/test/compile-fail/tstate-unsat-in-called-fn-expr.rs src/test/compile-fail/tstate-unsat-in-fn-expr.rs src/test/compile-fail/vec-add.rs src/test/compile-fail/vec-concat-bug.rs src/test/compile-fail/vector-no-ann.rs
2012-07-01Convert to new closure syntaxBrian Anderson-1519/+1514
2012-06-30Eliminate usages of old sugared call syntaxBrian Anderson-587/+585
2012-06-30Check in changes I forgot to check inTim Chevalier-7/+7
2012-06-30initial draft of fix for issue #2498:Gareth Daniel Smith-2/+4
1. make /// ... and //! ... and /** ... */ and /*! ... */ into sugar for #[doc = ...] attributes. 2. add a script in etc/ to help converting doc-attributes to doc-comments 3. add some functions to core::str to help with (1)
2012-06-30Descend into ty_boxes in type_useTim Chevalier-25/+46
type_use was failing to look into ty_boxes, which caused monomorphize to coalesce instances that shouldn't have been coalesced (because they should actually use different type glue) Closes #2734
2012-06-29Allow empty enums to be sent (#2737)Eric Holk-1/+1
2012-06-29Adding a bunch of atomic intrinsics.Eric Holk-3/+118
Adding a test cases for the atomic intrinsics.
2012-06-29Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.Michael Sullivan-1337/+1335
2012-06-28Merge branch 'master' of github.com:mozilla/rust into incomingEric Holk-147/+182
2012-06-28Don't use literal info from the original source when pretty printing ↵Michael Sullivan-8/+8
expanded ASTs.
2012-06-28Replaced almost all vector+ in rustc (#2719)Eric Holk-147/+182
Didn't update shape because the changes were causing segfaults.
2012-06-28replace more vector + (issue #2719)Eric Holk-57/+88
2012-06-27rustc: Fix a missing application of the operator in fold_tyBrian Anderson-1/+1
2012-06-27rustc: Don't give variables the same name as enums in transPatrick Walton-47/+47
Conflicts: src/rustc/middle/trans/alt.rs src/rustc/middle/trans/base.rs src/rustc/middle/trans/closure.rs src/rustc/middle/trans/impl.rs src/rustc/middle/trans/uniq.rs
2012-06-27rustc: Don't allow multiple candidate methods from impls with the same def IDPatrick Walton-10/+17
2012-06-27Better error message instead of bare "fail" in inferLindsey Kuper-3/+3
2012-06-27Remove unnecessary bounds checks in vec::push_all (issue #2719)Eric Holk-0/+6
Don't needlessly drop closures (issue #2603)
2012-06-26Change 'native' and 'crust' to 'extern'.Graydon Hoare-187/+201
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-26Properly cleanup slice literals. Closes #2705.Michael Sullivan-0/+7
2012-06-26Some box cleanup that doesn't break the build.Michael Sullivan-52/+42
2012-06-26rustc: Make trans no longer insist that there be exactly one impl scope per ↵Patrick Walton-10/+5
module Conflicts: src/rustc/middle/trans/base.rs
2012-06-26Revert "Clean up a bunch of box related code."Michael Sullivan-27/+38
This reverts commit bacf9e9887872a40d16798813aa66b6916cc6a4e.
2012-06-26Be a little more clever about calculating sizes for class typesTim Chevalier-11/+17
We could try to calculate the size of a partially-converted class type, and run into an LLVM error because we were trying to calculate the size of a named struct whose fields hadn't yet be filled in. The issue can be dodged by extending simplify_type to convert classes to isomorphic structural records, just for the purposes of size calculations. (for real this time) Closes #2718
2012-06-26Incorporate class fields into recursive-type checkTim Chevalier-1/+9
Noticed while investigating issue 2718 that the typechecker allowed some non-instantiable types involving classes. This wasn't the root of 2718, but fixed it anyway.
2012-06-26Typos in a comment and an error messageTim Chevalier-2/+2
2012-06-26Clean up a bunch of box related code.Michael Sullivan-38/+27
2012-06-26Getting rid of lots more vector +=. (issue #2719)Eric Holk-206/+217
2012-06-25Comments only: fix some comments that got spurious /~sMichael Sullivan-3/+3
2012-06-25Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.Michael Sullivan-1509/+1552
2012-06-25When we cons up vector asts, generate evecs.Michael Sullivan-6/+16
2012-06-25Split deprecated str and vec warnings into two flags, enable old_vecs by ↵Michael Sullivan-7/+18
default.
2012-06-25rustc: Make 'do' work with effects the same as 'for'Brian Anderson-1/+1
2012-06-25Add class fields to the global indexTim Chevalier-6/+12
Closes #2192
2012-06-25MergeTim Chevalier-31/+34
2012-06-25Finish compare glue for classesTim Chevalier-2/+3
This tests == and !=. I don't know what <, >, etc. should do. Closes #2601
2012-06-24Make 'do' expressions accept stack closuresBrian Anderson-1/+1
2012-06-24Remove resourcesTim Chevalier-451/+77
Also fixed shapes for classes with dtors, as well as handling offsets for classes with dtors correctly in take glue. Closes #2485
2012-06-22Minor capitalization/punctuation fixes in error messagesLindsey Kuper-16/+17