about summary refs log tree commit diff
path: root/src/comp
AgeCommit message (Collapse)AuthorLines
2011-07-08Nicer pretty-printing for anon objs. Closes #499.Lindsey Kuper-3/+50
(Incidentally, what's the right way to test changes to the pretty-printer? There has to be a better way than what I did, which was to log_err the results of expr_to_str as exprs passed through trans and glance at the output.)
2011-07-08Recursively load dependencies of external crates. Issue #632Brian Anderson-5/+37
2011-07-08Refactor load_library_crate and resolve_crateBrian Anderson-14/+23
2011-07-08Add a map from external cnums to local cnums in cstore::crate_metadataBrian Anderson-3/+14
Once populated, this will allow us to load type info for types defined in external crates referenced by other external crates.
2011-07-08Extract resolve_crate from creader::visit_view_itemBrian Anderson-8/+14
2011-07-08Try to use static crate if we cannot find the dynamic one. This supportsRafael Ávila de Espíndola-3/+16
the common case of wanting to link statically with the project's libraries but dynamically with the system ones.
2011-07-08Add just enough logic to the driver so that we can link std statically.Rafael Ávila de Espíndola-2/+16
2011-07-08Fix newlines when outputting crate attributes with --lsBrian Anderson-2/+2
2011-07-08Encode/decode a crate's externel dependencies. Issue #632Brian Anderson-1/+80
The encoding is very simple right now, just the crate name. Ultimately this won't be enough for our versioning needs, but it should fill our immediate need of being able to correlate encoded crate numbers to actual crates.
2011-07-08rustc: Do dynamic size calculations properly when concatenating interior ↵Patrick Walton-23/+40
vectors. Closes #640.
2011-07-08Don't export tyencode from the metadata moduleBrian Anderson-53/+64
This involves pulling the type_abbrev cache out of crate_ctxt
2011-07-08Cleanup decoding and crate searchingBrian Anderson-7/+16
2011-07-08Make the interface to metadata::csearch more consistentBrian Anderson-21/+25
2011-07-08Remove unused functions from metadata::csearchBrian Anderson-9/+0
2011-07-08Extract various dependencies from metadata::decoder to metadata::csearchBrian Anderson-16/+20
2011-07-08Begin splitting metadata::decoder into decoding and crate search modulesBrian Anderson-14/+57
2011-07-08Replace various ints with ast::crate_numsBrian Anderson-13/+17
2011-07-08Move external crate/lib resolution to its own passBrian Anderson-2/+2
The scope of external crate reading is beyond the resolve pass now, as it builds up tables of information needed for several different purposes.
2011-07-08Move crate_map from resolve to cstoreBrian Anderson-58/+66
2011-07-08Remove non-existant export from metadata::decoderBrian Anderson-1/+0
2011-07-08Comment creaderBrian Anderson-28/+29
2011-07-08Comment cstoreBrian Anderson-0/+3
2011-07-08Move used_link_args from session to cstoreBrian Anderson-10/+12
2011-07-08Move used_libraries from session to cstoreBrian Anderson-22/+21
2011-07-08Move used_crate_files from session to cstoreBrian Anderson-25/+24
2011-07-08Replace the crate cache in session with the one in cstoreBrian Anderson-16/+17
2011-07-08Introduce metadata::cstoreBrian Anderson-1/+43
I intend for this to be the location for storing all the data retrieved by creader, most of which is currently in the session.
2011-07-08Ignore current scope when resolving self-shadowing importsMarijn Haverbeke-18/+15
That is, for example, import x::y::x, which defines a local x, and thus wouldn't be able to find x::y anymore. Closes issue #624
2011-07-08Don't unbox types in ty::is_binopable, do it on typeck side insteadMarijn Haverbeke-17/+4
Closes issue #631 Removes ty::strip_boxes entirely, since unboxing is now more complicated anyway.
2011-07-08Remove useless return value in typeck::check_decl_localMarijn Haverbeke-6/+2
2011-07-08Auto-bind generic functions when their value is taken in non-call contextMarijn Haverbeke-4/+28
trans::trans_lval will now autobind if the given expression was the name of a generic functions. Those callees (trans_call and trans_bind) that are interested in the generics information call trans_lval_gen now.
2011-07-08Avoid superfluous take/drop for temp values passes as argumentsMarijn Haverbeke-8/+16
2011-07-08Make for-each bodies close over their parent's iterbodyMarijn Haverbeke-6/+19
Closes issue #639
2011-07-07rustc: Check iter return types. Closes #638.Patrick Walton-0/+2
2011-07-07rustc: Fix long linePatrick Walton-1/+2
2011-07-07rustc: Make trans use interior vectorsPatrick Walton-781/+732
2011-07-07rustc: Remove all exterior vectors from the ASTPatrick Walton-70/+62
2011-07-07Fix a bug that was interfering with method overriding. Issue #543.Lindsey Kuper-23/+36
Previously, we were creating both a normal vtable entry and a forwarding function for overriding methods, when they should have just gotten a vtable entry. This patch fixes that.
2011-07-07Merge pull request #634 from robarnold/upstream-stablePatrick Walton-8/+39
Allocate ivecs out of the kernel pool
2011-07-07Rename encoder::ty_str to encoded_strBrian Anderson-4/+4
2011-07-07Don't expert def_to_str from metadata::encoderBrian Anderson-2/+1
2011-07-07Move tyencode::ty_str to metadata::encoderBrian Anderson-11/+16
2011-07-07Refactor tyencode::ty_str to not require a tyencode::ctxtBrian Anderson-10/+6
All users were constructing the context the same way.
2011-07-07Remove duplicate definition of def_to_str from middle::tyBrian Anderson-5/+1
2011-07-07Refactor a few things in the metadata moduleBrian Anderson-20/+20
Rename metadata::tags to metadata::common. Move some utility functions from metadata::encoder to metadata::common.
2011-07-07Rename hash_def_id to hash_node_idBrian Anderson-4/+4
2011-07-07Remove metadata::encoder's dependence on trans::node_id_typeBrian Anderson-9/+9
2011-07-07rustc: Change lots of AST nodes to use interior vectorsPatrick Walton-373/+400
2011-07-07Implement --lib --static.Rafael Ávila de Espíndola-8/+8
2011-07-07Use an early exit to reduce indentation.Rafael Ávila de Espíndola-72/+74