about summary refs log tree commit diff
path: root/src/librustc/driver
AgeCommit message (Collapse)AuthorLines
2013-05-09Perform expansion before stripping/building a test harness.Huon Wilson-4/+4
This allows macros to create tests and benchmarks.
2013-05-09Add spaceSangeun Kim-1/+1
2013-05-08auto merge of #6327 : z0w0/rust/rm-notest, r=brsonbors-3/+2
Makes it more consistent, imo.
2013-05-08auto merge of #6119 : brson/rust/main, r=brsonbors-0/+3
r? @ILyoan This pulls all the logic for discovering the crate entry point into a new pass (out of resolve and typeck), then changes it so that main is only looked for at the crate level (`#[main]` can still be used anywhere). I don't understand the special android logic here and worry that I may have broken it.
2013-05-08Remove #[cfg(notest)] and use #[cfg(not(test))] to cooincide with #[cfg(debug)]Zack Corr-3/+2
2013-05-08Show lint namesSangeun Kim-0/+1
2013-05-06refinement to technique used to not run regionckNiko Matsakis-0/+3
2013-05-05Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freezeNiko Matsakis-93/+93
Conflicts: src/libcore/core.rc src/libcore/hashmap.rs src/libcore/num/f32.rs src/libcore/num/f64.rs src/libcore/num/float.rs src/libcore/num/int-template.rs src/libcore/num/num.rs src/libcore/num/strconv.rs src/libcore/num/uint-template.rs src/libcore/ops.rs src/libcore/os.rs src/libcore/prelude.rs src/libcore/rt/mod.rs src/libcore/unstable/lang.rs src/librustc/driver/session.rs src/librustc/middle/astencode.rs src/librustc/middle/borrowck/check_loans.rs src/librustc/middle/borrowck/gather_loans.rs src/librustc/middle/borrowck/loan.rs src/librustc/middle/borrowck/preserve.rs src/librustc/middle/liveness.rs src/librustc/middle/mem_categorization.rs src/librustc/middle/region.rs src/librustc/middle/trans/base.rs src/librustc/middle/trans/inline.rs src/librustc/middle/trans/reachable.rs src/librustc/middle/typeck/check/_match.rs src/librustc/middle/typeck/check/regionck.rs src/librustc/util/ppaux.rs src/libstd/arena.rs src/libstd/ebml.rs src/libstd/json.rs src/libstd/serialize.rs src/libstd/std.rc src/libsyntax/ast_map.rs src/libsyntax/parse/parser.rs src/test/compile-fail/borrowck-uniq-via-box.rs src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs src/test/run-pass/borrowck-nested-calls.rs
2013-05-04make asm_comments something that you opt in toNiko Matsakis-8/+3
2013-05-03auto merge of #6198 : luqmana/rust/linker-arg, r=graydonbors-2/+6
2013-05-03rustpkg: Handle sysroot more correctlyTim Chevalier-2/+2
In rustpkg, pass around sysroot; in rustpkg tests, set the sysroot manually so that tests can find libcore and such. With bonus metadata::filesearch refactoring to avoid copies.
2013-05-03librustc: Add argument to allow choosing "linker"Luqman Aden-2/+6
2013-05-02make link_args use spaces as separatorsDaniel Micay-2/+2
Lots of linking arguments need to be passed as -Wl,--foo so giving the comma meaning at the rustc layer makes those flags impossible to pass. Multiple arguments can now be passed from a shell by quoting the argument: --link-args='-lfoo -Wl,--as-needed'.
2013-05-01auto merge of #6174 : sanxiyn/rust/static-string, r=brsonbors-14/+14
2013-05-02Remove 'Local Variable' commentsBrendan Zabarauskas-15/+0
2013-05-02Take string slicesSeo Sanghyeon-14/+14
2013-04-30auto merge of #6105 : Aatch/rust/linker-improv, r=pcwaltonbors-54/+73
Adds two extra flags: `--linker` which takes extra flags to pass to the linker, can be used multiple times and `--print-link-args` which prints out linker arguments. Currently `--print-link-args` needs execution to get past translation to get the `LinkMeta` data. I haven't done tests or updated any extra documentation yet, so this pull request is currently here for review.
2013-04-30new borrow checker (mass squash)Niko Matsakis-12/+17
2013-04-30Change flags to -Z print-link-args and --link-argsJames Miller-16/+5
2013-04-29rustc: Only accept main functions at the crate level. #4433Brian Anderson-1/+2
2013-04-29rustc: Move code for discovering the crate entry point into its own passBrian Anderson-0/+2
It doesn't have anything to do with resolve and the logic will likely get more involved in the future, after #4433
2013-04-29Adds '--print-link-args' that outputs linker arguments that would be usedJames Miller-1/+17
2013-04-29Add `--linker` option to pass flags to the linkerJames Miller-53/+67
2013-04-28refactoring mod.rsJohn Clements-1/+1
2013-04-27only use #[no_core] in libcoreDaniel Micay-6/+0
2013-04-24Fixed typo... And a billion other things.Marvin Löbel-3/+4
2013-04-24Removed ascii functions from other modulesMarvin Löbel-1/+4
Replaced str::to_lowercase and str::to_uppercase
2013-04-22auto merge of #5996 : sanxiyn/rust/target-feature, r=graydonbors-0/+11
Fix #1879.
2013-04-22Choose target featuresSeo Sanghyeon-0/+11
2013-04-20rustc: remove unused 'mut' variablesAlex Crichton-1/+1
2013-04-19rustc: de-mode + fallout from libsyntax changesAlex Crichton-30/+30
2013-04-19librustc: Implement fast-ffi and use it in various placesPatrick Walton-3/+6
2013-04-18rustc: Anti-copy policeTim Chevalier-4/+4
In this case, some copies are still necessary to convert from a mutable to an immutable @-box. It's still an improvement, I hope.
2013-04-18rustc: One less copyTim Chevalier-6/+6
2013-04-16libcore,std,syntax,rustc: move tests into `mod tests`, make them private (no ↵Huon Wilson-13/+13
pub mod or pub fn).
2013-04-10Add #[start] attribute to define a new entry point functionJames Miller-2/+14
2013-04-05Fix various warnings, NOTEs, etcNiko Matsakis-1/+1
2013-04-04rt: improve mips backendJyun-Yan You-1/+1
2013-04-03auto merge of #5559 : jbclements/rust/change-to-tt-based-parsing, r=jbclementsbors-1/+1
Changes the parser to parse all streams into token-trees before hitting the parser proper, in preparation for hygiene. As an added bonus, it appears to speed up the parser (albeit by a totally imperceptible 1%). Also, many comments in the parser. Also, field renaming in token-trees (readme->forest, cur->stack).
2013-03-29Add AbiSet and integrate it into the AST.Niko Matsakis-22/+21
I believe this patch incorporates all expected syntax changes from extern function reform (#3678). You can now write things like: extern "<abi>" fn foo(s: S) -> T { ... } extern "<abi>" mod { ... } extern "<abi>" fn(S) -> T The ABI for foreign functions is taken from this syntax (rather than from an annotation). We support the full ABI specification I described on the mailing list. The correct ABI is chosen based on the target architecture. Calls by pointer to C functions are not yet supported, and the Rust type of crust fns is still *u8.
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-9/+9
2013-03-29change to parsing using ttsJohn Clements-1/+1
also, updates test cases a bit
2013-03-28Removing unused importsAlex Crichton-1/+1
2013-03-28Unbreak 'rustc --help'Marvin Löbel-2/+1
2013-03-26rustc: Remove uses of oldmap::HashMapAlex Crichton-3/+3
2013-03-25Kill some warnings: unused imports and old #[deny(..)]s.Huon Wilson-1/+0
2013-03-22librustc: Remove the `const` declaration form everywherePatrick Walton-23/+23
2013-03-22rustc: replace uses of old deriving attribute with new oneAndrew Paseltiner-4/+4
2013-03-21auto merge of #5470 : sanxiyn/rust/remove-oldmap-2, r=sanxiynbors-16/+4
Referencing #4986.
2013-03-21Time type checking passes separatelySeo Sanghyeon-5/+3