summary refs log tree commit diff
path: root/src/librustc/metadata
AgeCommit message (Collapse)AuthorLines
2013-06-30Remove vec::{map, mapi, zip_map} and the methods, except for .map, since thisHuon Wilson-2/+1
is very common, and the replacement (.iter().transform().collect()) is very ugly.
2013-06-30Convert vec::{rposition, rposition_elem, position_elem, contains} to methods.Huon Wilson-2/+1
2013-06-30auto merge of #7468 : cmr/rust/great_renaming, r=pcwaltonbors-55/+40
2013-06-29Remove mutability from unique boxes in the ASTAlex Crichton-3/+2
2013-06-29Warning cleanupCorey Richardson-6/+1
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-49/+39
2013-06-29'Borrow' stack closures rather than copying them (e.g., "|x|f(x)"), in prep ↵Ben Blum-21/+21
for making them noncopyable.
2013-06-28librustc: Fix even *more* merge fallout!Patrick Walton-4/+4
2013-06-28librustc: Fix more merge fallout.Patrick Walton-4/+4
2013-06-28librustc: Fix merge fallout and test cases.Patrick Walton-4/+4
2013-06-28Rewrite each_path to allow performance improvements in the future.Patrick Walton-140/+403
Instead of determining paths from the path tag, we iterate through modules' children recursively in the metadata. This will allow for lazy external module resolution.
2013-06-28librustc: Fix merge fallout.Patrick Walton-1/+1
2013-06-28librustc: Rewrite reachability and forbid duplicate methods in type ↵Patrick Walton-42/+34
implementations. This should allow fewer symbols to be exported.
2013-06-28librustc: Remove the broken overloaded assign-ops from the language.Patrick Walton-2/+4
They evaluated the receiver twice. They should be added back with `AddAssign`, `SubAssign`, etc., traits.
2013-06-28librustc: Change Const to Freeze in the compilerPatrick Walton-2/+2
2013-06-28librustc: Rename Owned to Send in the compilerPatrick Walton-2/+2
2013-06-27auto merge of #7430 : huonw/rust/vec-kill, r=thestingerbors-7/+5
2013-06-28Convert vec::{push, push_all, push_all_move} to methods.Huon Wilson-2/+1
2013-06-27Remove many shared pointersPhilipp Brüschweiler-17/+13
Mostly just low-haning fruit, i.e. function arguments that were @ even though & would work just as well. Reduces librustc.so size by 200k when compiling without -O, by 100k when compiling with -O.
2013-06-27Convert vec::[mut_]slice to methods, remove vec::const_slice.Huon Wilson-5/+4
2013-06-27auto merge of #7361 : brson/rust/incoming, r=brsonbors-20/+16
2013-06-26auto merge of #7420 : mozilla/rust/rollup, r=thestingerbors-52/+50
2013-06-26auto merge of #7354 : bblum/rust/trait-bounds, r=pcwaltonbors-1/+1
r? @nikomatsakis
2013-06-26Fix old .each usageCorey Richardson-2/+2
2013-06-26Infer default static/Owned bounds for unbounded heap fns/traits (#7264)Ben Blum-1/+1
2013-06-26auto merge of #7382 : msullivan/rust/cleanup, r=bblumbors-15/+5
2013-06-26rustc: Eliminate extra failing case in metadata::loader::crate_from_metasTim Chevalier-52/+50
Closes #2406
2013-06-25Merge remote-tracking branch 'mozilla/master' into incomingBrian Anderson-15/+26
Conflicts: src/librustc/middle/astencode.rs src/librustc/middle/check_const.rs
2013-06-25remove `each` from vec, HashMap and HashSetDaniel Micay-1/+1
2013-06-25remove the redundant `each` method from OptVecDaniel Micay-2/+2
2013-06-25Get rid of terrible way for iterating over provided methods.Michael Sullivan-15/+5
2013-06-25auto merge of #7291 : alexcrichton/rust/static-mut, r=huonwbors-11/+23
This adds both `static mut` items and `static mut` foreign items. This involved changing far less code than I thought it was going to, but the tests seem to pass and the variables seem functional. I'm more than willing to write more tests, so suggestions are welcome! Closes #553
2013-06-25Warning policeJames Miller-1/+0
2013-06-24Merge remote-tracking branch 'cmr/various-cleanup' into incomingBrian Anderson-18/+2
2013-06-24Merge remote-tracking branch 'sstewartgallus/cleanup_middle' into incomingBrian Anderson-2/+14
2013-06-24remove old_iterDaniel Micay-2/+2
the `test/run-pass/class-trait-bounded-param.rs` test was xfailed and written in an ancient dialect of Rust so I've just removed it this also removes `to_vec` from DList because it's provided by `std::iter::to_vec` an Iterator implementation is added for OptVec but some transitional internal iterator methods are still left
2013-06-23Support foreign 'static mut' variables as wellAlex Crichton-2/+6
2013-06-23Add 'static mut' items to the languageAlex Crichton-9/+17
2013-06-23Parse and typecheck (not kindcheck) bounds on trait paths.Ben Blum-3/+8
2013-06-23vec: remove BaseIter implementationDaniel Micay-50/+56
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-22Cleaned up middle a bit.Steven Stewart-Gallus-2/+14
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-21Remove `ast::pure_fn` and all concept of `pure` from the compilerCorey Richardson-18/+2
2013-06-21auto merge of #7263 : thestinger/rust/iterator, r=graydonbors-12/+13
2013-06-21vec: rm old_iter implementations, except BaseIterDaniel Micay-12/+13
The removed test for issue #2611 is well covered by the `std::iterator` module itself. This adds the `count` method to `IteratorUtil` to replace `EqIter`.
2013-06-20auto merge of #7203 : msullivan/rust/default-methods, r=graydonbors-35/+8
This fixes the large number of problems that prevented cross crate methods from ever working. It also fixes a couple lingering bugs with polymorphic default methods and cleans up some of the code paths. Closes #4102. Closes #4103. r? nikomatsakis
2013-06-20Get cross crate default methods working.Michael Sullivan-35/+8
This fixes the large number of problems that prevented cross crate methods from ever working. It also fixes a couple lingering bugs with polymorphic default methods and cleans up some of the code paths. Closes #4102. Closes #4103.
2013-06-21librust: cleanup warnings (except 1)James Miller-23/+21
2013-06-16Add copies to type params with Copy boundNiko Matsakis-1/+1
2013-06-16Remove @-fields from CrateContextJames Miller-66/+84
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-2/+0