about summary refs log tree commit diff
path: root/src/comp/util/common.rs
AgeCommit message (Collapse)AuthorLines
2011-12-13Copy first batch of material from libstd to libcore.Graydon Hoare-3/+3
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-18Update stdlib, compiler, and tests to new kind systemMarijn Haverbeke-2/+2
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-17remove compile-command from local variable blocksNiko Matsakis-1/+0
2011-11-10Cleanup unused importsHaitao Li-8/+4
2011-10-25Update our code to new type parameter kind syntaxMarijn Haverbeke-2/+2
Closes #1067
2011-10-21Drop support for iter, put, and for-eachMarijn Haverbeke-11/+0
Closes #1056
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-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-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-12Factor imports mindlessly.Graydon Hoare-24/+7
2011-09-12Reformat for new mode syntax, step 1Marijn Haverbeke-20/+20
Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
2011-09-02Reformat. Issue #855Brian Anderson-13/+10
2011-09-01Remove lots of estr code from rustc. Issue #855Brian Anderson-2/+2
2011-09-01Rename std::istr to std::str. Issue #855Brian Anderson-2/+2
2011-09-01Remove std::str. Issue #855Brian Anderson-1/+0
2011-08-27Convert rustc::util to istrs. Issue #855Brian Anderson-10/+10
2011-08-27Convert ast::ident to istr. Issue #855Brian Anderson-4/+4
2011-08-27Convert std::uint to istrs. Issue #855Brian Anderson-2/+3
2011-08-20ReformatBrian Anderson-4/+3
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-16Port the compiler to the expr foo::<T> syntax.Erick Tryzelaar-1/+1
2011-08-16Port the compiler to foo<T> decl syntax.Erick Tryzelaar-1/+1
2011-08-16Port the compiler to the typaram foo<T> syntax.Erick Tryzelaar-4/+4
2011-08-16Rename std::ivec to std::vecBrian Anderson-1/+1
2011-08-15The wonky for...in... whitespace was bothering me. Sorry!Lindsey Kuper-1/+1
2011-08-15Fix bad argument type of pprust::print_typeMarijn Haverbeke-1/+1
AST types are boxed, there's no need for every caller to do the unboxing
2011-08-15Tuple fields are immutableMarijn Haverbeke-8/+0
2011-08-12Rename std::ioivec to std::ioBrian Anderson-3/+3
2011-08-09Port the compiler to the ivec type [T] syntax.Erick Tryzelaar-5/+5
2011-08-03Do a bunch more typechecking for iters and for each loops.Michael Sullivan-1/+2
Closes #771. Closes #772. Closes #796.
2011-07-29Enable kind checking on typarams, fix kind constraints in library and comp.Graydon Hoare-1/+1
2011-07-28Show millisecond precision for time_passes timesMarijn Haverbeke-0/+22
Closes #713
2011-07-27Reformat for new syntaxMarijn Haverbeke-105/+78
2011-07-26Convert all code that uses walk.rs in the straightforward way to simple_visitMarijn Haverbeke-5/+5
Code that needs the keep_going functionality is still using walk. I will add an equivalent to visit.rs later.
2011-07-26Remove all uses of tuples from the compiler and stdlibMarijn Haverbeke-3/+3
2011-07-25Rename the block type to be blk also. Sorry.Michael Sullivan-3/+3
2011-07-14rustc: Move much of metadata reading over to interior vectorsPatrick Walton-3/+3
2011-07-13Make resolve and the typechecker check for a main fn of theTim Chevalier-1/+4
correct type This means if a non-library program leaves out the main program, the error gets caught earlier than link. Closes #626.
2011-07-12rustc: Remove some useless std::vec importsPatrick Walton-1/+0
2011-07-12rustc: Remove some interior vectors from typestate and some useless ↵Patrick Walton-8/+0
vec-related imports
2011-07-13Use switches rather than chained conditionals to compile alt matchesMarijn Haverbeke-0/+1
This also moves the alt-related trans code into its own file. Closes #467
2011-07-11In typeck, check for dynamically sized by-value arguments to thunksTim Chevalier-0/+13
A check in trans didn't have a corresponding check in typeck, causing some programs (to wit, compile-fail/chan-parameterized-args.rs - part of this commit) to fail with an assertion failure in trans instead of a type error. Fixed it. In short, arguments that are future thunk arguments (any spawn arguments, and _ arguments in bind) need to either not contain type params or type vars, or be by-reference. Closes #665.
2011-07-07rustc: Change lots of AST nodes to use interior vectorsPatrick Walton-8/+10
2011-07-05Move everything syntax-related to syntax/, break deps on rest of compilerMarijn Haverbeke-110/+29
src/comp/syntax is currently just a sub-module of rustc, but it will, in the near future, be its own crate. This includes: - The AST data structure - The parser - The pretty-printer - Visit, walk, and fold - The syntax extension system - Some utility stuff that should be in the stdlib* *) Stdlib extensions currently require a snapshot before they can be used, and the win build is very broken right now. This is temporary and will be cleaned up when one of those problems goes away. A lot of code was moved by this patch, mostly towards a more organized layout. Some package paths did get longer, and I guess the new layout will take some getting used to. Sorry about that! Please try not to re-introduce any dependencies in syntax/ on any of the other src/comp/ subdirs.
2011-07-05Move pretty-printing 'modes' into a callback hookMarijn Haverbeke-1/+0
This way, the pretty-printer does not have to know about middle::ty. (This is a preparation for separating the AST functionality into a separate crate.)
2011-06-28Replace common::new_seq_hash with an adapter around std::smallintmapBrian Anderson-102/+0
It would be better to either convert ast_map to use smallintmap or make smallintmap and hashmap follow the same interface, but I don't feel up to it just now. Closes #585.
2011-06-26Add a very simple map implementation for sequential integer keysBrian Anderson-0/+103
Use it for the ast_map. Cuts 40% off the time spent prior to LLVM.