about summary refs log tree commit diff
path: root/src/librustc/metadata/creader.rs
AgeCommit message (Collapse)AuthorLines
2013-02-17rustc: Don't copy in add_used_link_argsZack Corr-1/+1
2013-02-17Support link_args at the crate level. Closes #1301Zack Corr-0/+15
2013-02-07librustc: Lots of de-muting. rs=demutingPatrick Walton-33/+40
2013-02-03rename map -> oldmap and mark it as deprecatedDaniel Micay-1/+1
LinearMap is quite a bit faster, and is fully owned/sendable without requiring copies. The older std::map also doesn't use explicit self and relies on mutable fields.
2013-01-31test cases, cleanupJohn Clements-2/+2
2013-01-31Finalize moves-based-on-type implementation.Niko Matsakis-3/+4
Changes: - Refactor move mode computation - Removes move mode arguments, unary move, capture clauses (though they still parse for backwards compatibility) - Simplify how moves are handled in trans - Fix a number of illegal copies that cropped up - Workaround for bug involving def-ids in params (see details below) Future work (I'll open bugs for these...): - Improve error messages for moves that are due to bindings - Add support for moving owned content like a.b.c to borrow check, test in trans (but I think it'll "just work") - Proper fix for def-ids in params Def ids in params: Move captures into a map instead of recomputing. This is a workaround for a larger bug having to do with the def-ids associated with ty_params, which are not always properly preserved when inlining. I am not sure of my preferred fix for the larger bug yet. This current fix removes the only code in trans that I know of which relies on ty_param def-ids, but feels fragile.
2013-01-29librustc: De-export metadata. rs=deexportingPatrick Walton-9/+7
2013-01-24replace ConstVector trait with the Container traitDaniel Micay-2/+2
2013-01-17rustc: One Less Bad CopyTim Chevalier-2/+3
2013-01-14syntax/rustc: Eliminate some bad copiesTim Chevalier-2/+1
r=pcwalton
2013-01-10librustc: Implement a #[no_mangle] attribute to suppress name mangling. r=brsonPatrick Walton-2/+1
This is very helpful for SDL, as SDL wants you to define a function named `SDL_main`.
2013-01-10mode: reset mode on entry to fn body.Niko Matsakis-1/+2
This is an interim fix to address the "Beware!" unsoundness. I have a more comprehensive rewrite of mode.rs in the pipeline. r=pcwalton
2013-01-09A collection of refactorings that I found it hard/tiresome to divide:Niko Matsakis-4/+4
- Make `extern fn()` assignable to any closure type, rather than a subtype. - Remove unused int_ty_set and float_ty_set - Refactor variable unification and make it more DRY - Do fn sub/lub/glb on the level of fn_sig - Rename infer::to_str::ToStr to infer::to_str::InferStr - Capitalize names of various types - Correct hashing of FnMeta - Convert various records-of-fns into structs-of-fns. This is both eliminating use of deprecated features and more forwards compatible with fn reform. r=pcwalton
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+2
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-2/+0
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+2
module scope. r=tjc
2013-01-07librustc: Make vectors no longer implicitly copyable in rustc. r=graydonPatrick Walton-20/+25
~20% perf win for trans on -O0, with other minor improvements across the board. No effect on -O2.
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-11/+22
contain at least two components. r=graydon
2012-12-17Change iter::find's closure to take a refErick Tryzelaar-1/+1
2012-12-13librustc: Make `use` statements crate-relative by default. r=brsonPatrick Walton-2/+2
2012-12-04librustc: Remove all legacy pattern bindings from libsyntax and librustc. ↵Patrick Walton-7/+7
rs=refactoring
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-11-28core: Convert some records to structsBrian Anderson-1/+1
2012-11-07Rename src/rustc to src/librustc. Use the driver crateBrian Anderson-0/+286