aboutsummaryrefslogtreecommitdiff
path: root/src/comp
Commit message (Collapse)AuthorAgeFilesLines
* Add more commentary about ExtFmtBrian Anderson2011-04-131-14/+7
|
* Add support for printing uints as lower-case hex to ExtFmt.Brian Anderson2011-04-131-13/+78
| | | | | Begin passing an ExtFmt.RT.conv parsed format description to each of the ExtFmt.RT.conv* functions.
* Move #fmt conversion model into ExtFmt.CT namespaceBrian Anderson2011-04-131-29/+28
|
* rm unused importTim Chevalier2011-04-131-1/+0
|
* Make expr_while work in typestate_checkTim Chevalier2011-04-132-116/+93
| | | | | | Also did some refactoring in typestate_check. All test cases in compile-fail that involve uninitialized vars now fail correctly! (All eight of them, that is.)
* Fix temporary-spilling logic in trans_args, uncomment most of lib-deque.rs ↵Graydon Hoare2011-04-131-1/+5
| | | | (which now passes on stage0).
* Lex numeric escapes, needed for lib-str.rs (which now passes).Graydon Hoare2011-04-131-13/+77
|
* Enable alias analysis and the function attributes pass.Rafael Ávila de Espíndola2011-04-132-4/+7
| | | | | The C API extension is already upstream, we can drop the local copy once the bots are updated.
* typestate_check can now handle expr_block, expr_if, and expr_binaryTim Chevalier2011-04-126-161/+358
| | | | | | | | | | | | | | | | (caveat for the latter: it assumes that binary operations are strict; a TODO is to detect or and and and correctly reflect that they're lazy in the second argument). I had to add an ann field to ast.block, resulting in the usual boilerplate changes. Test cases that currently work (if you uncomment the typestate pass in the driver) (all these are under test/compile-fail): fru-typestate ret-uninit use-uninit use-uninit-2 use-uninit-3
* rustc: Switch to indices for type parametersPatrick Walton2011-04-129-382/+255
|
* rustc: Add "float" as a type to the pretty printerPatrick Walton2011-04-121-0/+1
|
* Further work on typestate. Handles expr_rec and expr_assign now.Tim Chevalier2011-04-127-249/+536
| | | | | | | | | | | | Also changed the ts_ann field on statements to be an ann instead, which explains most of the changes. As well, got rid of the "warning: no type for expression" error by filling in annotations for local decls in typeck (not sure whether this was my fault or not). Finally, in bitv, added a clone() function to copy a bit vector, and fixed is_true, is_false, and to_str to not be nonsense.
* Make glue always pass-by-alias and rename "scalar_or_boxed" concept to ↵Graydon Hoare2011-04-121-48/+73
| | | | "immediate"
* Tighten up condition on use of opaque_tag, remove blunt hammer of alias ↵Graydon Hoare2011-04-121-5/+20
| | | | arg-casting in trans_args.
* Enable more optimizations.Rafael Ávila de Espíndola2011-04-122-9/+10
|
* Factor out creation of calls into ExtFmt.RTBrian Anderson2011-04-111-12/+12
|
* Add support for bool, char to extfmt.Brian Anderson2011-04-111-0/+10
| | | | XFAIL syntax-extension-fmt in rustboot.
* Move ExtFmt compile-time functions into their own moduleBrian Anderson2011-04-111-1/+1
|
* Make ExtFmt call its own functions instead of others defined in stdBrian Anderson2011-04-111-6/+4
|
* Move extfmt parsing into standard libraryBrian Anderson2011-04-111-210/+1
|
* Move the extfmt data model into the standard library.Brian Anderson2011-04-111-48/+30
|
* rustc: Add a uint hash functionPatrick Walton2011-04-111-0/+8
|
* rustc: Factor out expr_ty() into expr_ann() and expr_ty()Patrick Walton2011-04-111-38/+45
|
* Implement the "attempted dynamic environment-capture" error in rustc.Rafael Ávila de Espíndola2011-04-113-0/+121
|
* rustc: Push down types for all expressions; add logic for recv and sendPatrick Walton2011-04-082-2/+26
|
* Remove silly legacy glue-offset encoding, predicate runtime adjustments by ↵Graydon Hoare2011-04-092-48/+30
| | | | ABI. LLVM should inline most glue now.
* Fix codemap.lookup_posMarijn Haverbeke2011-04-091-15/+12
| | | | | Previously, it would place every single location in the first file of the crate that was parsed.
* rustc: Rename "demand" to "pushdown" in the typechecker and explain more ↵Patrick Walton2011-04-081-376/+409
| | | | clearly what it's for
* Move to single-uint file-position representation.Marijn Haverbeke2011-04-0911-351/+413
| | | | | | | | This makes passing them around cheaper. There is now a table (see front/codemap.rs) that is needed to transform such an uint into an actual filename/line/col location. Also cleans up the span building in the parser a bit.
* Make lexer buffer the whole fileMarijn Haverbeke2011-04-091-59/+66
| | | | | This way, it won't have to go through a bunch of calls for each byte fetched.
* rustc: Resolve ty_localsPatrick Walton2011-04-081-3/+32
|
* rustc: Add the ability to fold over annotationsPatrick Walton2011-04-081-36/+83
|
* Remove unused function.Rafael Ávila de Espíndola2011-04-081-17/+0
|
* Remove unused function.Rafael Ávila de Espíndola2011-04-081-12/+0
|
* fix long linesTim Chevalier2011-04-081-36/+30
|
* Implemented computing prestates and poststates for a few expression forms.Tim Chevalier2011-04-084-64/+253
| | | | | The typestate checker (if it's uncommented) now correctly rejects a trivial example program that has an uninitialized variable.
* Make block results work for generic typesBrian Anderson2011-04-071-14/+17
| | | | | | | I think just about every type can be used as a block result now. There's quite a proliferation of tests here, but they all test slightly different things and some are split out to remain XFAILed. The tests of generic vectors are still XFAILed because generic aliased boxes still don't work in general.
* rustc: Pointer cast when crossing a box boundary for statically-sized ↵Patrick Walton2011-04-071-0/+4
| | | | elements in trans_index()
* add a -parse-only option to rustcMarijn Haverbeke2011-04-081-2/+9
| | | | (undocumented, only used for profiling the parser)
* rustc: Pointer cast when autodereferencing boxed tag typesPatrick Walton2011-04-071-1/+13
|
* rustc: Use the name "opaque_tag", not "tag", for opaque tagsPatrick Walton2011-04-071-1/+1
|
* Support for self-calls that take arguments.Lindsey Kuper2011-04-077-41/+70
| | | | | | | Nicer parsing of self-calls (expr_self_method nodes inside expr_call nodes, rather than a separate expr_call_self) makes typechecking tractable. We can now write self-calls that take arguments and return values (see: test/run-pass/obj-self-*.rs).
* Add a very basic crate-dump utilityMarijn Haverbeke2011-04-072-2/+73
| | | | | 'rustc -ls [cratelib]' will now dump out a list of symbols defined by the crate, as well as a short description of what they are.
* Fix problem in metadata writerMarijn Haverbeke2011-04-071-0/+4
| | | | | | It was creating non-multiple-of-four section sizes, which, for some reason, presumably by LLVM, were clipped, rather than padded, to be a multiple of four.
* Revise EBML reader APIMarijn Haverbeke2011-04-072-191/+124
| | | | New one is less stateful, easier to work with.
* rustc: Remove useless call to type_of() in trans_rec()Patrick Walton2011-04-071-1/+0
|
* rustc: Allow dereference expressions to be used as lvalues. Add a test case.Patrick Walton2011-04-071-20/+26
|
* Add a -O option and change the Makefile to use it.Rafael Ávila de Espíndola2011-04-072-10/+16
|
* rustc: Reindent line. Puts out burning tinderbox.Patrick Walton2011-04-071-2/+2
|
* rustc: Link to external tag discriminants. Un-XFAIL test/run-pass/lib-option.rs.Patrick Walton2011-04-071-44/+52
|