summary refs log tree commit diff
path: root/src/rustc/metadata/decoder.rs
AgeCommit message (Collapse)AuthorLines
2012-07-09rustc: Fix the collision with Tim's changePatrick Walton-1/+12
2012-07-09Tag re-exports differently in metadataTim Chevalier-6/+10
so that the "list metadata" command doesn't print out anything about intrinsics, but other code can see them. Closes #2771
2012-07-09Fix metadata serialization of foreign functions. Properly take the value of ↵Josh Matthews-0/+1
foreign functions from other crates to fix #1840.
2012-07-05Change 'iface' to 'trait' internally; parse `trait` as `iface` synonymLindsey Kuper-12/+12
2012-07-04convert doc-attributes to doc-comments using ↵Gareth Daniel Smith-1/+1
./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
2012-07-03rustc: Make a note of the fact that each_path doesn't handle path nesting ↵Patrick Walton-0/+3
properly
2012-07-03rustc: Speed up def ID parsing in the metadataPatrick Walton-9/+10
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-5/+5
2012-07-02rustc: Implement a new resolve pass behind a compile flagPatrick Walton-20/+135
2012-07-02Merge remote-tracking branch 'Dretch/prettydocs'Brian Anderson-1/+2
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-44/+45
2012-06-30Eliminate usages of old sugared call syntaxBrian Anderson-24/+24
2012-06-30initial draft of fix for issue #2498:Gareth Daniel Smith-1/+2
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-29Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.Michael Sullivan-46/+46
2012-06-28Replaced almost all vector+ in rustc (#2719)Eric Holk-3/+3
Didn't update shape because the changes were causing segfaults.
2012-06-26Change 'native' and 'crust' to 'extern'.Graydon Hoare-1/+1
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-26Getting rid of lots more vector +=. (issue #2719)Eric Holk-23/+23
2012-06-25Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.Michael Sullivan-64/+64
2012-06-25Add class fields to the global indexTim Chevalier-1/+7
Closes #2192
2012-06-21Tag all remaining FIXMEs with bugs. Install rule in tidy script to enforce this.Graydon Hoare-2/+1
2012-06-20Remove bind. Issue #2189Brian Anderson-2/+2
2012-06-13Box AST identsBrian Anderson-22/+24
2012-06-12Handle class destructors correctly in metadataTim Chevalier-7/+10
This allows destructors to be inlined, which is necessary since classes can have both ty params and destructors.
2012-06-06Revert "Revert "Merge pull request #2516 from mozilla/incoming" due to failures"Tim Chevalier-1/+1
This reverts commit 9fae95860de510f6874810cf43efb83f101246ef.
2012-05-21rustc: Move ast_map to the syntax crateBrian Anderson-1/+1
2012-05-17Annotate or fix FIXMEs in LLVM bindings and metadata codeTim Chevalier-2/+2
Fixed up a few FIXMEs in lib/llvm to use more descriptive data types. Covered FIXMEs in metadata::{creader, csearch, decoder} and one in encoder.
2012-05-16rustc: Sever the link between metadata and resolveBrian Anderson-2/+7
2012-05-15Generate drop glue correctly for classes with destructorsTim Chevalier-0/+14
2012-05-14rustc: Break some of metadata's dependencies on sessionBrian Anderson-2/+4
2012-05-14rustc: Eliminate metadata's dependency on astencodeBrian Anderson-5/+13
2012-05-14rustc: Move astencode from metadata to middleBrian Anderson-0/+1
2012-05-13rustc: Eliminate metadata's dependency on transBrian Anderson-1/+0
2012-05-08Start parsing pub/priv on regular itemsMarijn Haverbeke-6/+6
Issue #1893
2012-05-02Remove commented-out code and old comments that accidentally snuck inTim Chevalier-19/+1
2012-05-02Encode the ifaces a class implements in metadataTim Chevalier-12/+31
This lets you use class A as if it had type B if A implements B, and A and B are in different crates from your own. Closes #2285
2012-04-23Allow classes to be cast to ifaces that are in the same crateTim Chevalier-6/+3
I had to xfail one existing test case (class-implements-int) because, I think, of the same bug described in #2272.
2012-04-19make nominal types optionally parameterized by a self region.Niko Matsakis-1/+16
Issue #2201.
2012-04-16rustc: Resolve external impls defined in yet other crates. Issue #2196Brian Anderson-5/+14
2012-04-15syntax: Cleanup attr module. Closes #1545Brian Anderson-1/+1
2012-04-08Encode crate dependencies' hash and version dataHaitao Li-4/+21
2012-04-06Re-rename option functionsTim Chevalier-1/+1
get_with_default (nee from_maybe) => get_default with_option (nee maybe) => map_default with_option_do (nee may) => iter As per discussion of 21be1379d561b6679a8a2ea47dce88f948c5acca
2012-04-06Convert old-style for loops to new-styleMarijn Haverbeke-6/+6
Most could use the each method, but because of the hack used to disambiguate old- and new-style loops, some had to use vec::each. (This hack will go away soon.) Issue #1619
2012-04-02Rename some core::option functionsTim Chevalier-1/+1
from_maybe => get_with_default maybe => with_option may => with_option_do I know these names are kind of ridiculous, but it's the best I could think of. Feel free to bikeshed. Closes #2081
2012-03-29rustc: Remove the rustsyntax::attr wrapper in frontBrian Anderson-1/+1
2012-03-28Allow explicit self-calls within classesTim Chevalier-1/+1
Allow writing self.f() within a class that has a method f. In a future commit, this syntax will be required. For now, you can write either self.f() or f(). I added a "privacy" field to all methods (whether class methods or not), which allowed me to refactor the AST somewhat (getting rid of the class_item type; now there's just class_member).
2012-03-27Enforce mutability declarations in classes; correct shapes for classesTim Chevalier-2/+14
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-26Enforce privacy declarations for class fields and methodsTim Chevalier-16/+15
2012-03-23Remove last vestiges of old-style intrinsicsMarijn Haverbeke-8/+0
Closes #2048
2012-03-23Revert removal of intrinsicsMarijn Haverbeke-0/+8
Oops. We can't do this yet until the next snapshot.