about summary refs log tree commit diff
path: root/src/librustc/middle/astencode.rs
AgeCommit message (Collapse)AuthorLines
2013-07-23Major rework of how calls to self and super methods work.Michael Sullivan-22/+2
Eliminates method_super, method_self, and vtable_self, merging all of them into the param cases. Cloes #4396. Closes #7301.
2013-07-23Properly track and export information about vtables for impls in metadata.Michael Sullivan-18/+73
Partially rework how vtables are handled in default method calls. Closes #7460.
2013-07-22Ast spanned<T> refactoring, renaming: crate, local, blk, crate_num, crate_cfg.Michael Woerister-4/+4
`crate => Crate` `local => Local` `blk => Block` `crate_num => CrateNum` `crate_cfg => CrateConfig` Also, Crate and Local are not wrapped in spanned<T> anymore.
2013-07-17librustc: Remove all uses of the `Copy` bound.Patrick Walton-2/+2
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-5/+7
2013-07-17Made ast::blk not use spanned<T> anymore.Michael Woerister-4/+5
2013-07-11Get cross crate static default methods working. Closes #7569.Michael Sullivan-2/+4
2013-07-08Update trans to use type to decide when to move, not the moves table (simplerNiko Matsakis-10/+1
for cases where it's hard to decide what id to use for the lookup); modify irrefutable bindings code to move or copy depending on the type, rather than threading through a flag. Also updates how local variables and arguments are registered. These changes were hard to isolate.
2013-07-04Remove vec::{filter, filtered, filter_map, filter_mapped}, replaced by ↵Huon Wilson-6/+6
iterators.
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-5/+4
2013-06-28Rework vtable_res to not be flattened. It is now a list of the resolutions ↵Michael Sullivan-3/+7
for each param.
2013-06-28Make calling methods parameterized on the trait work from default methods.Michael Sullivan-1/+17
This is done by adding a new notion of "vtable_self". We do not yet properly handle super traits. Closes #7183.
2013-06-28librustc: Rewrite reachability and forbid duplicate methods in type ↵Patrick Walton-14/+17
implementations. This should allow fewer symbols to be exported.
2013-06-25Merge remote-tracking branch 'mozilla/master' into incomingBrian Anderson-1/+1
Conflicts: src/librustc/middle/astencode.rs src/librustc/middle/check_const.rs
2013-06-23Add 'static mut' items to the languageAlex Crichton-1/+1
2013-06-22Cleaned up middle a bit.Steven Stewart-Gallus-86/+89
The only really tricky change is that a long chain of ifs, and elses was turned into a single if, and a match in astencode.rs. Some methods can only be called in certain cases, and so have to come after the if.
2013-06-16remove unused importsHuon Wilson-1/+0
2013-06-16Remove @-fields from CrateContextJames Miller-21/+31
Remove all the explicit @mut-fields from CrateContext, though many fields are still @-ptrs. This required changing every single function call that explicitly took a @CrateContext, so I took advantage and changed as many as I could get away with to &-ptrs or &mut ptrs.
2013-06-14add IteratorUtil to the preludeDaniel Micay-1/+0
2013-06-13Use @str instead of @~str in libsyntax and librustc. Fixes #5048.Huon Wilson-4/+4
This almost removes the StringRef wrapper, since all strings are Equiv-alent now. Removes a lot of `/* bad */ copy *`'s, and converts several things to be &'static str (the lint table and the intrinsics table). There are many instances of .to_managed(), unfortunately.
2013-06-11option: remove redundant old_iter implsDaniel Micay-52/+83
2013-06-10clean-up unused import warningsHuon Wilson-1/+0
2013-06-10std: convert str::reserve* to methods, and methodise str::push_*.Huon Wilson-1/+1
2013-06-08tydecode: Accept a plain borrowed pointer to the dataBjörn Steinbrink-2/+2
2013-06-05interner just uses uints, not idents with syntax contextJohn Clements-1/+1
2013-06-05removed some interner fieldsJohn Clements-7/+8
2013-06-01Remove all uses of `pub impl`. rs=stylePatrick Walton-5/+5
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-0/+3
2013-05-22librustc: Change `std` to `extra` throughout libsyntax and librustcPatrick Walton-6/+6
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-0/+2
to libextra
2013-05-20Remove all unnecessary allocations (as flagged by lint)Alex Crichton-7/+7
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-1/+1
2013-05-16rename `at_vec::from_owned` and `at_vec::from_slice` to ↵Youngsoo Son-1/+1
`at_vec::to_managed_consume` and `at_vec::to_managed`
2013-05-14rustc: rename ast::self_ty and related fields to explicit_selfErick Tryzelaar-2/+2
2013-05-14rustc: Remove ty::argErick Tryzelaar-23/+4
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-2/+2
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-09Use a specialized string interner to reduce the need for owned stringsBjörn Steinbrink-3/+3
&str can be turned into @~str on demand, using to_owned(), so for strings, we can create a specialized interner that accepts &str for intern() and find() but stores and returns @~str.
2013-05-08libcore: Fix tests.Patrick Walton-1/+1
2013-05-05Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freezeNiko Matsakis-233/+239
Conflicts: src/libcore/core.rc src/libcore/hashmap.rs src/libcore/num/f32.rs src/libcore/num/f64.rs src/libcore/num/float.rs src/libcore/num/int-template.rs src/libcore/num/num.rs src/libcore/num/strconv.rs src/libcore/num/uint-template.rs src/libcore/ops.rs src/libcore/os.rs src/libcore/prelude.rs src/libcore/rt/mod.rs src/libcore/unstable/lang.rs src/librustc/driver/session.rs src/librustc/middle/astencode.rs src/librustc/middle/borrowck/check_loans.rs src/librustc/middle/borrowck/gather_loans.rs src/librustc/middle/borrowck/loan.rs src/librustc/middle/borrowck/preserve.rs src/librustc/middle/liveness.rs src/librustc/middle/mem_categorization.rs src/librustc/middle/region.rs src/librustc/middle/trans/base.rs src/librustc/middle/trans/inline.rs src/librustc/middle/trans/reachable.rs src/librustc/middle/typeck/check/_match.rs src/librustc/middle/typeck/check/regionck.rs src/librustc/util/ppaux.rs src/libstd/arena.rs src/libstd/ebml.rs src/libstd/json.rs src/libstd/serialize.rs src/libstd/std.rc src/libsyntax/ast_map.rs src/libsyntax/parse/parser.rs src/test/compile-fail/borrowck-uniq-via-box.rs src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs src/test/run-pass/borrowck-nested-calls.rs
2013-05-05Address all FIXMEs from #5562Niko Matsakis-5/+3
2013-05-04Register snapshotsBrian Anderson-774/+0
2013-05-02librustc: Update the serializer to work properly with INHTWAMA, removing ↵Patrick Walton-93/+795
mutable fields in the process
2013-05-01rustc: remove the rest of dropErick Tryzelaar-26/+0
Removes: ast::struct_def::dtor syntax::ast::ii_dtor syntax::visit::fk_dtor syntax::ast_map::node_dtor syntax:struct_dtor
2013-04-30new borrow checker (mass squash)Niko Matsakis-38/+5
2013-04-30adapt to snapshotNiko Matsakis-104/+0
2013-04-29librustc: Remove the concept of modes from the compiler.Patrick Walton-16/+16
This commit does not remove `ty::arg`, although that should be possible to do now.
2013-04-27only use #[no_core] in libcoreDaniel Micay-2/+0
2013-04-19rustc: de-mode + fallout from libsyntax changesAlex Crichton-43/+44
2013-04-12auto merge of #5827 : ↵bors-1/+4
nikomatsakis/rust/issue-5656-change-meaning-of-borrowed-self, r=pcwalton See #5656 for details. r? @pcwalton
2013-04-10std: rename {read,emit}_field to {read,emit}_struct_fieldErick Tryzelaar-0/+97