about summary refs log tree commit diff
path: root/src/comp
AgeCommit message (Collapse)AuthorLines
2012-02-22Remove preconditions from librariesMarijn Haverbeke-28/+3
Closes #1805
2012-02-22Clean up small things in syntax submodulesMarijn Haverbeke-51/+27
2012-02-21rustc: Generate crates with #astBrian Anderson-0/+22
2012-02-21Clean up unification codeMarijn Haverbeke-328/+116
2012-02-21Clean up some FIXMEs in middle:: modulesMarijn Haverbeke-124/+88
Rename all TODOs to FIXMEs
2012-02-21Move trans::type_of code into its own fileMarijn Haverbeke-220/+223
Slowly shrinking base.rs
2012-02-21Include @ in crate_ctxt and fn_ctxt type definitionsMarijn Haverbeke-160/+160
So that code using them doesn't have to spell it out constantly.
2012-02-21Remove unused tydesc argument to upcall_shared_mallocMarijn Haverbeke-13/+5
2012-02-21Make the cleanup tag in resource types a u8Marijn Haverbeke-11/+9
Closes #1184
2012-02-21Remove some checks and associated FIXMEs from trans codeMarijn Haverbeke-120/+37
Such intentions are better tracked in the bug tracker, don't need to litter the code with repetetive comments.
2012-02-21Clean up a number of TODOs in the trans modulesMarijn Haverbeke-297/+272
Rename the ones that I didn't handle to FIXME
2012-02-20More work on typechecking classesTim Chevalier-7/+48
classes-simple doesn't fail until trans now!
2012-02-20core: New task APIBrian Anderson-2/+0
2012-02-20Oops, my whitespace is showingTim Chevalier-1/+1
2012-02-20Further work on resolving and typechecking classesTim Chevalier-28/+193
Class tests aren't working yet, but they fail a little later :-) Also, make the parser correctly set a constructor's result type to its enclosing class type.
2012-02-20cargo: Use $sysroot/$libdir/cargo as work dirTycho Sci-3/+3
On win32 environment, it's "$sysroot/bin/cargo". On unix-y environment, it's "$sysroot/lib/cargo".
2012-02-18rustc: Add missing space to error messageBrian Anderson-1/+1
2012-02-18Merge pull request #1860 from erickt/masterBrian Anderson-1/+2
add str::find_from_bytes and str::index_from_bytes
2012-02-17Refactor view_path to parse (but not yet process) export globs, unify code ↵Graydon Hoare-389/+419
paths.
2012-02-17rustc: Make resolve more forgiving of missing external cratesBrian Anderson-7/+16
Rustdoc needs to be able to resolve locals without resolving externals
2012-02-17rustdoc: Resolve imports and reexportsBrian Anderson-24/+47
2012-02-17Move debuginfo into transMarijn Haverbeke-1/+1
2012-02-17Clean up some of trans using block combinatorsMarijn Haverbeke-904/+791
`with_scope` and `with_cond` can be used to wrap a piece of code in a scope block, or conditionalize it on a value, without doing all the context-creation and jumping by hand. Also renames @block_ctxt to block to reduce noise.
2012-02-17Simplify get_tydesc's APIMarijn Haverbeke-44/+22
2012-02-17Clean up block_ctxt representationMarijn Haverbeke-140/+131
2012-02-17rt: Make upcall_vec_push an intrinsicBrian Anderson-5/+11
2012-02-16core: rewrite str::byte_index to use vec functionsErick Tryzelaar-1/+2
2012-02-16More rigorous reuse of cleanup sequencesMarijn Haverbeke-153/+170
In both landing pads and break/cont/ret unwinding. Closes #300
2012-02-16Remove to_zero/to_revoke kludgeMarijn Haverbeke-71/+25
It is much simpler to just move by_move args into a temporary alloca.
2012-02-15make mut a keyword synonymous with mutableNiko Matsakis-204/+220
first step towards issue #1273
2012-02-15move shape into transNiko Matsakis-1/+1
2012-02-15Rewrite exhaustiveness checkerMarijn Haverbeke-82/+129
Issue #352 Closes #1720 The old checker would happily accept things like 'alt x { @some(a) { a } }'. It now properly descends into patterns, checks exhaustiveness of booleans, and complains when number/string patterns aren't exhaustive.
2012-02-15Replace some explicit fails with 'alt check' invocationsMarijn Haverbeke-82/+39
2012-02-15Fix bug in safe-reference checkerMarijn Haverbeke-35/+23
At some point, a refactor broke the code that handled local declarations to no longer descend into the initializer expressions. Closes #1846
2012-02-15Fix bad line printing for parse errorsMarijn Haverbeke-12/+6
The code that extracted lines from partially-parsed files was broken. Closes #1848
2012-02-15Support 'alt check' syntaxMarijn Haverbeke-27/+29
It is only a way to flag an alt as intentionally non-exhaustive right now. Issue #1679
2012-02-14When parsing a source string, fail when the entire string is not parsed.Kevin Atkinson-0/+3
(For now only fail when parse_from_source_str is used to avoid possible compatibility problems; parse_expr_from_source_str still does not check.)
2012-02-14Bug fix to accept $ in 0th pos, (ie #ast{$(x) + ...}).Kevin Atkinson-4/+5
Note: part from Niko Matsakis commit: rewrite assert to accept a $ in 0th pos.
2012-02-14Correctly handle the character position at the EOF.Kevin Atkinson-1/+7
Fixes issue #1785.
2012-02-14Use file_substr rather than <anon> when re-parsing quasi-quotesKevin Atkinson-24/+25
for better error messages.
2012-02-14Do a better job of reporting source location for files (i.e. filemap)Kevin Atkinson-2/+45
that are really a substr of another file.
2012-02-14Change file_substr to allow for external strings.Kevin Atkinson-14/+16
2012-02-14rustc: Translate crust functionsBrian Anderson-84/+267
2012-02-14rustc: Add trans_crust_fn. Don't do anything special yetBrian Anderson-6/+15
2012-02-14rustc: Extract native function generation into trans::nativeBrian Anderson-183/+194
2012-02-14rustc: Translate the value of crust functionsBrian Anderson-0/+13
2012-02-14rustc: Typecheck crust functions as *u8Brian Anderson-0/+12
2012-02-14rustc: Parse crust functionsBrian Anderson-1/+4
2012-02-14rustc: Add crust functions to the ASTBrian Anderson-3/+10
2012-02-14Merge pull request #1831 from killerswan/str_fixesBrian Anderson-13/+14
(core::str) changes to find / find_bytes