about summary refs log tree commit diff
path: root/src/librustc/driver
AgeCommit message (Collapse)AuthorLines
2013-05-14Fix cosmetics for fail!() callsMarvin Löbel-4/+2
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-3/+3
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-12librustc: Make `self` and `static` into keywordsPatrick Walton-4/+4
2013-05-11auto merge of #6389 : sonwow/rust/issue-3356, r=bstriebors-3/+3
Fix for #3356
2013-05-11auto merge of #6383 : huonw/rust/rustc-expand-then-strip, r=thestingerbors-4/+4
This allows macros to create tests and benchmarks. This is possibly unsound (I've got no idea, but it seemed to work), and being able to programmatically generate benchmarks to compare several implementations of similar algorithms is nice.
2013-05-10renamed str::from_slice to str::to_ownedYoungsoo Son-3/+3
2013-05-10auto merge of #6356 : dotdash/rust/strinterner, r=pcwaltonbors-2/+2
&str can be turned into @~str on demand, using to_owned(), so for strings, we can create a specialized interner that accepts &str for intern() and find() but stores and returns @~str.
2013-05-09auto merge of #6325 : sammykim/rust/lint-name, r=graydonbors-0/+1
Fix #3525.
2013-05-09Use a specialized string interner to reduce the need for owned stringsBjörn Steinbrink-2/+2
&str can be turned into @~str on demand, using to_owned(), so for strings, we can create a specialized interner that accepts &str for intern() and find() but stores and returns @~str.
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