about summary refs log tree commit diff
path: root/src/comp/driver/session.rs
AgeCommit message (Collapse)AuthorLines
2012-03-02Move src/comp to src/rustcGraydon Hoare-210/+0
2012-02-29optionally enforce local variable mutabilityNiko Matsakis-1/+2
2012-02-28change def's that are always local to use node_id, add --inline optNiko Matsakis-0/+1
2012-02-09Remove some pointless importsMarijn Haverbeke-2/+0
2012-02-03Start on in-crate monomorphizingMarijn Haverbeke-0/+1
Adds a --monomorpize flag to rustc to turn it on. You probably don't want to use it yet, since it's broken in a whole bunch of ways, but it successfully monomorphizes simple generic functions called from within the crate. Issue #1736
2012-02-03Remove experimental GC codeMarijn Haverbeke-1/+0
It's been sitting unused long enough to have bitrotted completely.
2012-01-31Change option::t to optionTim Chevalier-2/+2
Now that core exports "option" as a synonym for option::t, search-and- replace option::t with option. The only place that still refers to option::t are the modules in libcore that use option, because fixing this requires a new snapshot (forthcoming).
2012-01-31Require alts to be exhaustiveTim Chevalier-1/+1
middle::check_alt does the work. Lots of changes to add default cases into alts that were previously inexhaustive.
2012-01-26rustc: Switch the --no-core switch to a #[no_core] attributeBrian Anderson-1/+0
2012-01-24rustc: Split diagnostics into "span diagnostics" and "diagnostics".Patrick Walton-15/+15
The former contain a codemap (which is per-crate), and the latter don't. This will be useful in order to allow more than one crate to be compiled in one run of the compiler.
2012-01-22rustc: Specify lint checks via crate attributesHaitao Li-1/+1
A crate attribute like `#[lint(no_ctypes)]` can now be used to turn off ctypes checking. Issue #1543
2012-01-19rustc: ";" to "," in enumsPatrick Walton-3/+3
2012-01-19rustc: "tag" -> "enum"Patrick Walton-3/+3
2012-01-19rustc: Name the lint-style check module `lint`Haitao Li-1/+2
Issue #1543
2012-01-19rustc: Add a usage pass to collect one-off analysesHaitao Li-0/+1
This patch starts from move the analysis which checkes of probably incorrectly usage of `int|uint` in native fn. Issue #1543
2012-01-18Remove '.' after nullary tags in patternsTim Chevalier-3/+3
Does what it says on the tin. The next commit will remove support for this syntax.
2012-01-17rustc: --test overrides the crate_type attributeBrian Anderson-11/+28
2012-01-13rustc: Replace session's error handling with diagnostic implBrian Anderson-21/+19
2012-01-13rustc: Extract driver::diagnostic from syntax::codemapBrian Anderson-8/+8
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-12Make driver::session::session no longer an objectMarijn Haverbeke-48/+32
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-01freebsd supportUser Jyyou-1/+1
2011-12-19Properly calculate base working dir for compile units.Josh Matthews-1/+5
2011-12-18Hide extended, unfinished debug information behind --xg compiler flag.Josh Matthews-0/+1
2011-12-17rustc: Remove --stack-growth optionBrian Anderson-1/+0
2011-12-13Copy first batch of material from libstd to libcore.Graydon Hoare-2/+2
2011-12-08rustc: Actually hook the crate_type attribute into sessionBrian Anderson-2/+6
2011-12-08rustc: Support 'crate_type' attributeBrian Anderson-0/+74
[crate_type = "lib"] builds it as a library. [crate_type = "bin"] builds it as an executable. Executable is the default. --lib and --bin switches override.
2011-12-08rustc: Determine the crate type (lib/bin) in the session, not session optsBrian Anderson-1/+4
This is in preparation for adding a #[crate_type] attribute
2011-12-07Change literal representation to not truncateMarijn Haverbeke-4/+4
Also shuffles around the organization of numeric literals and types, separating by int/uint/float instead of machine-vs-non-machine types. This simplifies some code. Closes #974 Closes #1252
2011-12-06Add --no-core option and inject a use core/import core::* pair into crate ↵Graydon Hoare-0/+1
unless it's given.
2011-11-17remove compile-command from local variable blocksNiko Matsakis-1/+0
2011-11-17rustc: Add a flag '--warn-unused-imports'Haitao Li-1/+2
Followup of issue #889
2011-11-16Removed --no-typestate flag from rutscStefan Plantikow-1/+0
Fixes issue #1139
2011-11-16enable comments in generated asm, llNiko Matsakis-1/+2
2011-11-15Fix handling of loops and conditionals in alias.rsMarijn Haverbeke-0/+1
It now threads information about invalidated aliases through the AST properly. This makes it more permissive for conditionals (invalidating an alias in one branch doesn't prevent you from using it in another), and less permissive for loops (it now properly notices when a loop invalidates an alias that it might still use in another iteration). Closes #1144
2011-11-10Cleanup unused importsHaitao Li-1/+1
2011-11-02hack around on makefiles trying to get a 64 bit buildNiko Matsakis-1/+1
right now there are many temporary hacks, search for NDM to find them
2011-11-02start to isolate target strings so that they can be configured forNiko Matsakis-0/+2
x64 or other targets
2011-10-12reimplement some of the unsafe stuff which got lostNiko Matsakis-2/+1
- blocks inherit unsafety - remove the --check-unsafe flag - add unsafe annotations where needed to get things to compile
2011-10-12enable unsafe checking but only with a flag --check-unsafeNiko Matsakis-1/+2
2011-10-04Encapsulate current sysroot and lib path handling into util::filesearchBrian Anderson-3/+6
2011-09-30rustc: Stub a --stack-growth option; it's behind a flag for now because it ↵Patrick Walton-1/+2
requires patches to LLVM.
2011-09-21Add target_triple to session::options. Use host triple by default, accept ↵Graydon Hoare-0/+1
--target on command line.
2011-09-12Factor imports mindlessly.Graydon Hoare-8/+3
2011-09-12Reformat for new mode syntax, step 1Marijn Haverbeke-12/+12
Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
2011-09-02Reformat. Issue #855Brian Anderson-28/+20
2011-09-01Convert all uses of #ifmt to #fmt. Issue #855Brian Anderson-2/+2
2011-09-01Rename std::istr to std::str. Issue #855Brian Anderson-1/+1
2011-09-01Remove std::str. Issue #855Brian Anderson-1/+0