about summary refs log tree commit diff
path: root/src/comp/util
AgeCommit message (Collapse)AuthorLines
2011-12-13Copy first batch of material from libstd to libcore.Graydon Hoare-7/+7
2011-12-07Change literal representation to not truncateMarijn Haverbeke-52/+53
Also shuffles around the organization of numeric literals and types, separating by int/uint/float instead of machine-vs-non-machine types. This simplifies some code. Closes #974 Closes #1252
2011-11-30Box ast::path valuesMarijn Haverbeke-2/+2
It seems inefficient to copy them around. Let's measure whether that's actually > the case
2011-11-23Rollback return-by-referenceMarijn Haverbeke-5/+0
It's proving too inflexible, so I'm ripping out the extra complexity in the hope that regions will, at some point, provide something similar. Closes #918
2011-11-22Only warn about unreachable range patterns when appropriateMarijn Haverbeke-186/+0
Also simplifies the literal-munging, and moves it into ast_util Closes #1170
2011-11-21rustc: Remove abi from ast::native_modHaitao Li-1/+1
2011-11-18Update stdlib, compiler, and tests to new kind systemMarijn Haverbeke-3/+3
This involved adding 'copy' to more generics than I hoped, but an experiment with making it implicit showed that that way lies madness -- unless enforced, you will not remember to mark functions that don't copy as not requiring copyable kind. Issue #1177
2011-11-18Add a pass-by-copy parameter passing conventionMarijn Haverbeke-1/+2
This is intended to solve the problem of how to pass arguments to constructor functions -- you want to move in rvalues, but not have to explicitly copy stuff that is not an rvalue. The by-copy passing convention will ensure the callee gets its own copy of the value. For rvalues, it'll just pass off the value. For lvalues, it'll make a copy. Issue #1177
2011-11-17remove compile-command from local variable blocksNiko Matsakis-2/+0
2011-11-16Replace 'mutable?' with 'const'Brian Anderson-1/+1
2011-11-10Cleanup unused importsHaitao Li-14/+6
2011-11-02Fix printing of parameterized tag types in ppauxMarijn Haverbeke-1/+1
It was printing option::t[int] instead of option::t<int>
2011-10-25Update our code to new type parameter kind syntaxMarijn Haverbeke-4/+4
Closes #1067
2011-10-21Drop support for iter, put, and for-eachMarijn Haverbeke-11/+0
Closes #1056
2011-10-20Merge ast::proto_shared and ast::proto_closureBrian Anderson-1/+1
Now they are both just proto_shared and proto_shared takes an argument indicating that it is sugared as 'lambda'
2011-10-20Rename ast::proto_fn to ast::proto_sharedBrian Anderson-1/+1
2011-10-18Add a math module to the standard libMarijn Haverbeke-18/+11
I need some rudimentary stdlib stuff for the tutorial. Closes #1042
2011-10-12[Renaming] str_to_float is now float::from_str, float_to_str is now ↵David Rajchenbach-Teller-3/+3
float::to_str
2011-10-11[Move] Moved str_to_float, float_to_str from compiler to libDavid Rajchenbach-Teller-37/+3
2011-10-07Parse and typecheck by-value and by-ref arg specsMarijn Haverbeke-1/+3
Add sprinkle && throughout the compiler to make it typecheck again. Issue #1008
2011-10-05Fix some remaining rpath bugsBrian Anderson-1/+1
2011-10-05Begin work on rpathBrian Anderson-2/+9
2011-10-04Use std::os::get_exe_path to determine sysrootBrian Anderson-10/+12
2011-10-04Use util::filesearch to locate intrinsics.bc and main.oBrian Anderson-0/+6
2011-10-04Move the library search into util::filesearchBrian Anderson-0/+25
2011-10-04Encapsulate current sysroot and lib path handling into util::filesearchBrian Anderson-0/+63
2011-09-28Revert "Revert "Implement pattern ranges for all numeric types.""Brian Anderson-0/+172
This reverts commit a034f87146e60e1db2327c6f6807c47406a1bb0b. Conflicts: src/comp/middle/check_alt.rs src/comp/middle/trans_alt.rs src/comp/syntax/ast.rs src/comp/syntax/ast_util.rs src/comp/syntax/fold.rs src/comp/syntax/print/pprust.rs Conflicts: src/comp/middle/trans_alt.rs
2011-09-22Convert ty::ty_uniq to contain a mutable typeBrian Anderson-1/+1
Issue #409
2011-09-21Revert "Implement pattern ranges for all numeric types."Marijn Haverbeke-172/+0
This reverts commit ce0f054f9d56df4e60291fc2e1b89ce979cf374f.
2011-09-21Implement pattern ranges for all numeric types.Josh Matthews-0/+172
2011-09-15Require the parameter that will be referenced to be notedMarijn Haverbeke-1/+2
Issue #918
2011-09-14Add syntax and representation for return-by-mutably-rooted-refMarijn Haverbeke-4/+6
This will be used in the near future to decide what can safely be done with the returned reference. Issue #918
2011-09-14Make most of the compiler aware of return-by-referenceMarijn Haverbeke-3/+6
tyencode/tydecode still don't know about it. return_ref will be extended to take arguments anyway.
2011-09-14Rename ast::controlflow to ast::ret_styleMarijn Haverbeke-4/+4
It will include information about returning by alias.
2011-09-13Print something when we can't figure out a tag name. Mitigates #876.Michael Sullivan-4/+1
2011-09-12Factor imports mindlessly.Graydon Hoare-39/+12
2011-09-12Reformat for new mode syntax, step 1Marijn Haverbeke-36/+36
Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
2011-09-12Make the names of the arg mode tag reflect their (revised) meaningMarijn Haverbeke-5/+4
2011-09-02Rename ty_istr to ty_str. Issue #855Brian Anderson-1/+1
2011-09-02Print the type of istrs as 'str' in error messages. Issue #855Brian Anderson-1/+1
2011-09-02Reformat. Issue #855Brian Anderson-87/+72
2011-09-01Remove lots of estr code from rustc. Issue #855Brian Anderson-3/+2
2011-09-01Rename std::istr to std::str. Issue #855Brian Anderson-11/+11
2011-09-01Remove std::str. Issue #855Brian Anderson-2/+0
2011-09-01Remove various istr conversions. Issue #855Brian Anderson-2/+2
2011-08-30Eliminate an unchecked use of map::get in ppauxTim Chevalier-1/+5
2011-08-27Convert misc compiler bits to istrs. Issue #855Brian Anderson-1/+1
2011-08-27Convert rustc::syntax::ast_util to istrs. Issue #855Brian Anderson-1/+1
2011-08-27Convert pretty-printer to istrs. Issue #855Brian Anderson-7/+5
2011-08-27Convert rustc::util to istrs. Issue #855Brian Anderson-76/+83