summary refs log tree commit diff
path: root/src/comp/driver
AgeCommit message (Collapse)AuthorLines
2012-01-19rustc: ";" to "," in enumsPatrick Walton-15/+15
2012-01-19rustc: "tag" -> "enum"Patrick Walton-6/+6
2012-01-19Partial fix for #1561, doesn't actually "fix" the problem but you get output ↵Graydon Hoare-3/+3
now. There's still something wrong with #error here, possibly cross-crate issue.
2012-01-19rustc: Refactor lint check and avoid a segv faultHaitao Li-4/+9
The segv fault issue is #1566
2012-01-19rustc: Name the lint-style check module `lint`Haitao Li-9/+13
Issue #1543
2012-01-19rustc: Add a usage pass to collect one-off analysesHaitao Li-1/+10
This patch starts from move the analysis which checkes of probably incorrectly usage of `int|uint` in native fn. Issue #1543
2012-01-19rustc: Use io::println for time-passes dataHaitao Li-2/+2
Issue #1561
2012-01-19Remove support for the '.' after a nullary tag in a patternTim Chevalier-18/+18
(Commit also includes lots of changes to remove '.'s that a git merge messed up, or else it was monkeys.)
2012-01-18Remove '.' after nullary tags in patternsTim Chevalier-25/+25
Does what it says on the tin. The next commit will remove support for this syntax.
2012-01-18Fix --out-dir a bit more in driver.Graydon Hoare-3/+5
2012-01-17rustc: --test overrides the crate_type attributeBrian Anderson-13/+30
2012-01-17Prevent pretty-printer from trying to consume stdin twiceMarijn Haverbeke-15/+15
Why this didn't fail on my machine, I don't know.
2012-01-17Try to fix pretty-printer failureMarijn Haverbeke-9/+8
I can't reproduce it on my side, unfortunately.
2012-01-17Fix --pretty normal, reorganize some code in driver.rsMarijn Haverbeke-48/+63
There is now only one path doing crate expanding and typechecking, which should make it less likely for the pretty-printing code to be broken by changes to the compilation pipeline. Closes #1536
2012-01-16Ensure library file always has a proper suffix.Josh Matthews-1/+1
2012-01-14rustc: Output a note about how to debug unexpected failuresBrian Anderson-0/+6
2012-01-14rustc: Fix testsBrian Anderson-4/+4
2012-01-14rustc: Run the compiler in a subtask and monitor the diagnosticsBrian Anderson-6/+65
Since we are no longer logging to the console it's possible for us to hit a plain-old-fail statement and not output anything. This adds a defensive mechanism that will monitor the emitted errors and compare them to the result of the compiler task. If the compiler fails without emitting an error it results in an ICE.
2012-01-14rustc: Extract the logic for generating an ICE messageBrian Anderson-2/+7
2012-01-14rustc: Rename mk_codemap_handler to mk_handlerBrian Anderson-4/+4
2012-01-14rustc: Rename emit_diagnostic to emitBrian Anderson-5/+5
2012-01-14rustc: Use the same diagnostic emmiter for both early errors and the sessionBrian Anderson-1/+2
This funnels all properly reported errors through a single closure. Yay.
2012-01-14rustc: Thread a diagnostic::emitter through driverBrian Anderson-16/+26
2012-01-14rustc: Pull some uses of early_error up into build_target_configBrian Anderson-13/+19
2012-01-14rustc: Rename diagnostic::diagnostictype to 'level'Brian Anderson-14/+14
2012-01-14rustc: Make it not an error when the source can't be loaded for highlightingBrian Anderson-2/+2
I plan to have a callback mechanism for reporting errors and it gets wierd when reporting errors while reporting an error.
2012-01-14rustc: Allow a custom diagnostic emitter when building the handlerBrian Anderson-12/+31
2012-01-13rustc: Remove emit_fatal/error/warning/note functionsBrian Anderson-24/+12
2012-01-13rustc: Add a distinct fatal diagnostic levelBrian Anderson-7/+13
2012-01-13rustc: Replace the lexer's error handling with diagnostic implBrian Anderson-1/+1
2012-01-13rustc: Replace parser's error handling with diagnostic implBrian Anderson-2/+7
2012-01-13rustc: Replace session's error handling with diagnostic implBrian Anderson-23/+21
2012-01-13rustc: Add diagnostic::handler iface and default implBrian Anderson-0/+77
This is for moving error handling logic out of the session
2012-01-13rustc: Stop exporting various things from driver::diagnosticBrian Anderson-3/+2
2012-01-13rustc: Extract driver::diagnostic from syntax::codemapBrian Anderson-9/+146
2012-01-13rustc: Refactor codemap::emit_* functionsBrian Anderson-8/+8
A codemap is only needed when we have a span so put them both into the option.
2012-01-13rustc: Turn logging off by defaultBrian Anderson-0/+3
2012-01-12Make driver::session::session no longer an objectMarijn Haverbeke-69/+64
Rather, it is now a struct where properties like opts are accessed directly, and the error-reporting methods are part of a static impl (with the same name as the type).
2012-01-11Major clean-up of std::ioMarijn Haverbeke-3/+5
Use ifaces instead of objs, stop wrapping everything in two (or three) layers of no-value-added indirection, and remove some of the more pointless/outdated idioms from the code.
2012-01-05rustc: Configure out #[test] functions when not testingBrian Anderson-5/+3
2012-01-05Switch to new param kind bound syntaxMarijn Haverbeke-1/+1
And remove support for the old syntax
2012-01-03More work on translating dictionary-passingMarijn Haverbeke-3/+4
Reached a point where simple uses of interfaces without bounds work. Issue #1227
2012-01-01freebsd supportUser Jyyou-1/+4
2011-12-30Print usage messages to rustc and rustdoc when invoked with no args. Close ↵Graydon Hoare-0/+3
#1394.
2011-12-22Merge all 3 log syntaxes, tidy up residual misuses.Graydon Hoare-2/+2
2011-12-20Separate driver rustc and librustcHaitao Li-600/+622
rustc is now a minimal wrapper of librustc.
2011-12-20rustc: Cleanup unused ext_mapHaitao Li-4/+4
2011-12-19Properly calculate base working dir for compile units.Josh Matthews-6/+10
2011-12-18Hide extended, unfinished debug information behind --xg compiler flag.Josh Matthews-2/+5
2011-12-18std: getopts now uses result::t (fixes #1289)Stefan Plantikow-4/+5