about summary refs log tree commit diff
path: root/src/comp/rustc.rc
AgeCommit message (Collapse)AuthorLines
2011-05-26Remove residual uses of fold, and fold itself.Graydon Hoare-1/+0
2011-05-20rustc: Move the interner to a new module intended to be used for general ↵Patrick Walton-1/+1
data structures
2011-05-19Remove type_glue.rs, don't think it's going to work.Graydon Hoare-1/+0
2011-05-16Rename aux.rs to auxiliary.rs since win32 doesn't like files named "aux". ↵Graydon Hoare-3/+2
Really.
2011-05-16Started adding support for return checking and non-returning function ↵Tim Chevalier-2/+13
annotations * Reorganized typestate into several modules. * Made typestate check that any function with a non-nil return type returns a value. For now, the check is a warning and not an error (see next item). * Added a "bot" type (prettyprinted as _|_), for constructs like be, ret, break, cont, and fail that don't locally return a value that can be inspected. "bot" is distinct from "nil". There is no concrete syntax for _|_, while the concrete syntax for the nil type is (). * Added support to the parser for a ! annotation on functions whose result type is _|_. Such a function is required to have either a fail or a call to another ! function that is reached in all control flow paths. The point of this annotation is to mark functions like unimpl() and span_err(), so that an alt with a call to err() in one case isn't a false positive for the return-value checker. I haven't actually annotated anything with it yet. * Random bugfixes: * * Fixed bug in trans::trans_binary that was throwing away the cleanups for nested subexpressions of an and or or (tests: box-inside-if and box-inside-if2). ** In typeck, unify the expected type arguments of a tag with the actual specified arguments.
2011-05-16rustc: Factor out the code that interns types into an "interner" data structurePatrick Walton-0/+1
2011-05-13rustc: lowercase the link and link::write modulesBrian Anderson-1/+1
2011-05-13Slight adjustments to shape, rename to type_glue.rs.Graydon Hoare-1/+1
2011-05-13Make the parser more careful about keywordsMarijn Haverbeke-1/+1
Keywords are now only recognized in contexts where they are valid. The lexer no longer recognizes them, all words are lexed as IDENT tokens, that get interpreted by the parser.
2011-05-13Move capture checking into resolve.rsMarijn Haverbeke-1/+0
Drops capture.rs. The new algorithm also checks for captures function arguments and obj fields.
2011-05-12rustc: Beginnings of a "shape" module to convert types to shapesPatrick Walton-0/+1
2011-05-12Downcase std modules again, move to :: for module dereferencingMarijn Haverbeke-5/+5
This should be a snapshot transition.
2011-05-10Add meta info to rustc.rcBrian Anderson-0/+6
2011-05-09rustc: Declare upcalls with real signatures; preparation for killing ↵Patrick Walton-0/+1
rust_native_rust_* stubs
2011-05-05rustc: Add a Link module; move crate writing to it to slim down trans slightlyPatrick Walton-0/+1
2011-05-04Add #env syntax extension for plucking strings out of the compilation ↵Graydon Hoare-0/+1
environment.
2011-04-20Change collect_upvars from using fold to using walkMarijn Haverbeke-0/+1
2011-04-19rustc: Cache the results of type_of()Patrick Walton-16/+16
2011-04-19Remove effect system from src.Graydon Hoare-26/+0
2011-04-11Implement the "attempted dynamic environment-capture" error in rustc.Rafael Ávila de Espíndola-0/+1
2011-04-09Move to single-uint file-position representation.Marijn Haverbeke-0/+1
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.
2011-04-08Implemented computing prestates and poststates for a few expression forms.Tim Chevalier-0/+4
The typestate checker (if it's uncommented) now correctly rejects a trivial example program that has an uninitialized variable.
2011-04-07Revise EBML reader APIMarijn Haverbeke-0/+2
New one is less stateful, easier to work with.
2011-04-06Continued sketching out code for checking states against preconditions.Tim Chevalier-1/+5
It's still sketchy. I added a typestate annotation field to statements tagged stmt_decl or stmt_expr, because a stmt_decl statement has a typestate that's different from that of its child node. This necessitated trivial changes to a bunch of other files all over to the compiler. I also added a few small standard library functions, some of which I didn't actually end up using but which I thought might be useful anyway.
2011-04-06More work on typestate. Sketched out code for computing and checking ↵Tim Chevalier-0/+2
prestates and poststates. Still a long ways away.
2011-04-01Re-enable typestate_check in build, was lost during merge. Sorry.Graydon Hoare-0/+1
2011-04-01rustc: Get tag variants from the crate metadataPatrick Walton-0/+1
2011-04-01Started adding support for typestate checking.Tim Chevalier-0/+3
I added a new field to the ast "ann" type for typestate information. Currently, the field contains a record of a precondition bit vector and postcondition vector, but I tried to structure things so as to make it easy to change the representation of the typestate annotation type. I also had to add annotations to some syntactic forms that didn't have them before (fail, ret, be...), with all the boilerplate changes that that would imply. The main call to the typestate_check entry point is commented out and the actual pre-postcondition algorithm only has a few cases implemented, though the overall AST traversal is there. The rest of the typestate algorithm isn't implemented yet.
2011-03-31rustc: Write out an index of definition info in crate metadataPatrick Walton-0/+2
2011-03-31Tweak build command on rustc.Graydon Hoare-1/+1
2011-03-29Teach trans to emit undefined references to 'use'd symbols. Can compile and ↵Graydon Hoare-0/+1
run a simple 'use std;' example now.
2011-03-28Move all allocas to dedicated basic block at top of function, to keep frames ↵Graydon Hoare-0/+2
finite. Un-comment next size in nbody.rs.
2011-03-28rustc: Parse types in external metadataPatrick Walton-0/+2
2011-03-25rustc: Look up names in "use"d cratesPatrick Walton-0/+1
2011-03-24rustc: Open "use"d crates; add a _vec.vec_from_buf() method along the way; ↵Patrick Walton-0/+1
XFAIL use-import-export.rs in rustc
2011-03-23rustc: Switch over to using rustllvm.dll exclusively, ending the ↵Patrick Walton-12/+6
"Franken-LLVM" problem
2011-03-16Revert 6fdb81fa17b3c7147a69edc5217c9f93ff485410, it is causing failures inRafael Ávila de Espíndola-1/+0
the bots.
2011-03-15rustc: Open "use"d crates with the LLVM object file readerPatrick Walton-0/+1
2011-03-15rustc: Add a stub crate reader module for "use" directivesPatrick Walton-0/+1
2011-03-15Append 'svn' to version in dll name, hopefully to bring win32 up again.Graydon Hoare-1/+1
2011-03-15rustc: Add Rust bindings to the LLVM object file libraryPatrick Walton-3/+9
2011-03-14Bump LLVM version strings to 3.0svn, we're effectively tied to it now anyways.Graydon Hoare-3/+3
2011-03-11rustc: Add some stub metadata to each cratePatrick Walton-0/+2
2011-03-09Have the pretty-printer take a writer stream as argumentMarijn Haverbeke-0/+1
It now uses a string writer to also fill in for middle.ty.ast_ty_to_str
2011-03-07Remove old pretty-printer from rustcBrian Anderson-1/+0
2011-03-07Add a pretty-printerMarijn Haverbeke-0/+5
Adds a -pp option to the compiler which will cause it to simply pretty-print the given file.
2011-03-02Begin an AST pretty-printerBrian Anderson-0/+1
2011-03-02Begin implementing #fmt in rustcBrian Anderson-0/+1
2011-02-24Factor crate expr evaluator out of parser, expand to simple scalars and ops, ↵Graydon Hoare-1/+1
if, alt.
2011-01-21Tweak effect-checking rules in rustboot, remove/rewrite/re-auth impure cases ↵Graydon Hoare-0/+2
in trans.rs