about summary refs log tree commit diff
path: root/src/librustc/metadata
AgeCommit message (Collapse)AuthorLines
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
2013-06-13Revert "std: convert {vec,str}::to_owned to methods."Brian Anderson-5/+6
This fixes the strange random crashes in compile-fail tests. This reverts commit 96cd61ad034cc9e88ab6a7845c3480dbc1ea62f3. Conflicts: src/librustc/driver/driver.rs src/libstd/str.rs src/libsyntax/ext/quote.rs
2013-06-13Use @str instead of @~str in libsyntax and librustc. Fixes #5048.Huon Wilson-97/+100
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-12Visitor refactoring: Step 1, couple (Env, vt<Env>) together in a tuple.Felix S. Klock II-8/+8
2013-06-12std: unify the str -> [u8] functions as 3 methods: .as_bytes() and ↵Huon Wilson-15/+19
.as_bytes_with_null[_consume](). The first acts on &str and is not nul-terminated, the last two act on strings that are always null terminated (&'static str, ~str and @str).
2013-06-12std: convert {vec,str}::to_owned to methods.Huon Wilson-5/+5
2013-06-11option: remove redundant old_iter implsDaniel Micay-3/+4
2013-06-11decoder: better error message when failing to look up an idPhilipp Brüschweiler-5/+5
2013-06-10std: remove str::{len, slice, is_empty} in favour of methods.Huon Wilson-1/+1
2013-06-10std: replace str::each_split* with an iteratorHuon Wilson-1/+2
2013-06-08remove deprecated vec::{is_empty, len} functionsDaniel Micay-1/+1
2013-06-08Avoid unnecessary allocations in the metadata decoderBjörn Steinbrink-32/+28
2013-06-08Remove some unnecessary closuresBjörn Steinbrink-7/+6
2013-06-08tydecode: Accept a plain borrowed pointer to the dataBjörn Steinbrink-22/+16
2013-06-08Avoid unnecessary heap allocations in the metadata ty decoderBjörn Steinbrink-46/+43
2013-06-07rustc::metadata::decoder: cleanup and slightly speed up each_pathPhilipp Brüschweiler-82/+70
2013-06-06Clean up a handful of build warnings.Michael Sullivan-18/+16
2013-06-05removed unused imports (and one unused argument)John Clements-2/+1
2013-06-05token_to_ident takes argument by referenceJohn Clements-7/+7
2013-06-05interner just uses uints, not idents with syntax contextJohn Clements-14/+18
2013-06-05removed some interner fieldsJohn Clements-3/+3
2013-06-04std::io: Modernize some constructorsPhilipp Brüschweiler-1/+1
Part of #3853
2013-06-01auto merge of #6807 : catamorphism/rust/rustpkg-extern-mod, r=catamorphismbors-3/+4
r? @graydon Addresses #5681
2013-06-01rustc/rusti/rustpkg: Infer packages from `extern mod` directivesTim Chevalier-3/+4
This commit won't be quite as useful until I implement RUST_PATH and until we change `extern mod` to take a general string instead of an identifier (#5682 and #6407). With that said, now if you're using rustpkg and a program contains: extern mod foo; rustpkg will attempt to search for `foo`, so that you don't have to provide a -L directory explicitly. In addition, rustpkg will actually try to build and install `foo`, unless it's already installed (specifically, I tested that `extern mod extra;` would not cause it to try to find source for `extra` and compile it again). This is as per #5681. Incidentally, I changed some driver code to infer the link name from the crate link_meta attributes. If that change isn't ok, say something. Also, I changed the addl_lib_search_paths field in the session options to be an @mut ~[Path] so that it can be modified after expansion but before later phases.
2013-06-01Fix a small typo in a comment.Tom Lee-1/+1
2013-06-01Reexport static methods on structs & enums.Tom Lee-30/+70
2013-05-31auto merge of #6853 : bblum/rust/sized, r=pcwaltonbors-0/+4
r? @nikomatsakis @pcwalton
2013-05-30Add 'Sized' builtin kind; doesn't do anything yetBen Blum-0/+4
2013-05-30Remove copy bindings from patterns.Niko Matsakis-3/+3
2013-05-30Remove a bunch of unnecessary allocations and copiesBjörn Steinbrink-4/+2
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-4/+27
2013-05-27auto merge of #6703 : sanxiyn/rust/allocation-lint, r=sanxiynbors-9/+9
Fix #6145. In particular, handle operator overloading.
2013-05-28Remove unnecessary allocations flagged by lintSeo Sanghyeon-9/+9
2013-05-27auto merge of #6688 : graydon/rust/issue-3396-mystery-bug-in-metadata, r=Aatchbors-11/+2
Whatever it was, it is no longer a problem here.
2013-05-22libstd: Fix merge fallout.Patrick Walton-20/+0
2013-05-22librustc: Change `std` to `extra` throughout libsyntax and librustcPatrick Walton-12/+12
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-2/+18
to libextra
2013-05-22librustc: Fix privacy checking for cross-crate variantsPatrick Walton-10/+37
2013-05-22revert no-longer-required workaround for mystery bug, close #3396Graydon Hoare-11/+2
2013-05-20Remove all unnecessary allocations (as flagged by lint)Alex Crichton-24/+24
2013-05-19Register snapshotsBrian Anderson-83/+0
2013-05-19Explain an odd conditional check.Tom Lee-0/+11
2013-05-19Remove unused variable.Tom Lee-1/+0
2013-05-19Reexport static trait methods on traits in the same module.Tom Lee-2/+4
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-24/+24