about summary refs log tree commit diff
path: root/src/comp/driver/session.rs
AgeCommit message (Collapse)AuthorLines
2011-08-31Convert uses of #fmt to #ifmt. Issue #855Brian Anderson-5/+5
2011-08-27Convert rustc::driver::session to istrs. Issue #855Brian Anderson-29/+33
2011-08-27Convert rustc::syntax::codemap to istrs. Issue #855Brian Anderson-9/+14
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 typaram foo<T> syntax.Erick Tryzelaar-2/+2
2011-08-16Remove partial DPS back-endMarijn Haverbeke-1/+0
It won't be finished on the short term, and it's already bit-rotting fast. We can fetch this from git's autumn annals if we need it.
2011-08-10rustc: Add a --gc switch for debugging and experimentationPatrick Walton-1/+2
2011-08-09Port the compiler to the ivec type [T] syntax.Erick Tryzelaar-2/+2
2011-08-02Add a --no-trans command line optionBrian Anderson-1/+4
Runs all passes before translation. This will be used for pretty-printing tests to verify that the results are still probably valid Rust code.
2011-07-27Reformat for new syntaxMarijn Haverbeke-54/+47
2011-07-16Make clear the differentiation between char pos and byte pos in filemaps. ↵Josh Matthews-1/+1
Fix up error printing for files with multi-byte characters.
2011-07-15rustc: Introduce a stub destination-passing-style translation engine, ↵Patrick Walton-1/+2
accessible via the --dps switch for now
2011-07-15rustc: Remove a bunch of exterior vectorsPatrick Walton-3/+2
2011-07-14rustc: Move much of metadata reading over to interior vectorsPatrick Walton-1/+0
2011-07-13Make resolve and the typechecker check for a main fn of theTim Chevalier-0/+7
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-11Move macro expansion to a separate phase, change macro syntax, and add ↵Paul Stansifer-11/+16
parse_sess to session.
2011-07-11Only print up to six lines on error. Print ^~~~~ to highlight error span.Josh Matthews-0/+1
2011-07-08Move used_link_args from session to cstoreBrian Anderson-7/+0
2011-07-08Move used_libraries from session to cstoreBrian Anderson-18/+0
2011-07-08Move used_crate_files from session to cstoreBrian Anderson-14/+0
2011-07-08Replace the crate cache in session with the one in cstoreBrian Anderson-6/+0
2011-07-08Introduce metadata::cstoreBrian Anderson-0/+2
I intend for this to be the location for storing all the data retrieved by creader, most of which is currently in the session.
2011-07-07Implement --lib --static.Rafael Ávila de Espíndola-0/+1
2011-07-07Command line changes for adding support for static libraries.Rafael Ávila de Espíndola-1/+1
2011-07-06Begin adding unit testing infrastructure to the compilerBrian Anderson-1/+2
Add a --test flag and a pass for transforming the AST to generate a test harness. Issue #428
2011-07-05Don't thread the local crate number through the sessionMarijn Haverbeke-3/+1
It's a constant, anyway.
2011-07-05Move everything syntax-related to syntax/, break deps on rest of compilerMarijn Haverbeke-41/+15
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-04Use metadata to avoid always passing -Lrustllvm to the linker.Rafael Ávila de Espíndola-3/+12
2011-07-01Introduce --cfg argument for providing additional configuration. Issue #489Brian Anderson-1/+4
2011-06-29Add session.note methodBrian Anderson-0/+3
2011-06-29session.err shouldn't take a spanBrian Anderson-2/+2
2011-06-29Eliminate the --check-claims compiler flagTim Chevalier-1/+0
The option can only be toggled at runtime now.
2011-06-28Implement "claim"Tim Chevalier-0/+1
Implement "claim" (issue #14), which is a version of "check" that doesn't really do the check at runtime. It's an unsafe feature. The new flag --check-claims turns claims into checks automatically -- but it's off by default, so by default, the assertion in a claim doesn't execute at runtime.
2011-06-28Use "" in the native_name as an indication that no extra options have toRafael Ávila de Espíndola-0/+3
be passed to the "linker". Use that for libc.
2011-06-27Record and link with used native libraries.Rafael Ávila de Espíndola-0/+14
2011-06-20Fix line length.Rafael Ávila de Espíndola-2/+2
2011-06-20Remember the library files we used in rustc and pass them to the "linker".Rafael Ávila de Espíndola-0/+14
This avoid the hardcoded -lstd, allows programs to use other crates and avoids any differences that may exist in the rustc and ld search logic.
2011-06-19rustc: Re-introduce session.span_err, session.errBrian Anderson-1/+15
These errors are non-fatal. The session.abort_if_errors function needs to be called at strategic points to convert the previous errors to utter failure. Issue #440
2011-06-19rustc: Rename session.span_err -> span_fatal, err -> fatalBrian Anderson-4/+4
Issue #440
2011-06-19Revert previous 6 commits. Hopefully put out Windows fire.Brian Anderson-19/+5
Revert "rustc: Export only what's needed from middle::ty" This reverts commit 4255d58aa5db2a05362c4435a0e807205e1b8ed7. Revert "rustc: Make name resolution errors less fatal" This reverts commit b8ab9ea89c16c60237e7660804f4321f59ae0435. Revert "rustc: Make import resolution errors less fatal" This reverts commit 92a8ae94b971206bf0502da3dc5f416fcb24cc36. Revert "rustc: Export only what's used from middle::resolve" This reverts commit 4539a2cf7ad99851a165c98ed2f4e4a475cffd7d. Revert "rustc: Re-introduce session.span_err, session.err" This reverts commit 7fe9a88e31ae07f2fd89f6715efedd7e3edf49e6. Revert "rustc: Rename session.span_err -> span_fatal, err -> fatal" This reverts commit c394a7f49ac29a099994e243017065de2ff97f2a.
2011-06-19rustc: Re-introduce session.span_err, session.errBrian Anderson-1/+15
These errors are non-fatal. The session.abort_if_errors function needs to be called at strategic points to convert the previous errors to utter failure. Issue #440
2011-06-19rustc: Rename session.span_err -> span_fatal, err -> fatalBrian Anderson-4/+4
Issue #440
2011-06-17rustc: Remove metadata from the session.Brian Anderson-3/+0
This mechanism was not being used for anything. Issue #487.
2011-06-15Reformat source tree (minus a couple tests that are still grumpy).Graydon Hoare-99/+49
2011-06-07More work on proper linkage name-mangling. Almost right, aside from version ↵Graydon Hoare-15/+28
numbers.
2011-05-26Add a span_str function in sessionTim Chevalier-4/+12
2011-05-20Annotate erroring functions in session and parserTim Chevalier-6/+6
2011-05-19OptLevel changes. Accepts levels 0 to 3 only. '-O' is synonym for --OptLevel=2.Graydon Hoare-1/+1
2011-05-17rustc: Make return value checking warnings a little prettier. Also introduce ↵Patrick Walton-0/+5
a new "note" diagnostic level.
2011-05-17Finally rename std::_xxx to std::xxxMarijn Haverbeke-1/+1
Except for _task, which is still a keyword.