summary refs log tree commit diff
path: root/src/librusti
AgeCommit message (Collapse)AuthorLines
2013-09-24Don't use libc::exit. #9473Brian Anderson-3/+4
This can cause unexpected errors in the runtime when done while scheduler threads are still initializing. Required some restructuring of the main_args functions in our libraries.
2013-09-23librusti: Eliminate `@fn`.Patrick Walton-11/+20
2013-09-23librustpkg: Fix diagnostic invocation syntax in librustdoc, librusti, and ↵Patrick Walton-15/+33
librustpkg.
2013-09-21Update version numbers to 0.8Brian Anderson-1/+1
2013-09-18Register new snapshotsAlex Crichton-1/+1
2013-09-11extra: use a mutex to wrap linenoise calls and make them threadsafe.Huon Wilson-10/+8
Fixes #3921.
2013-09-03Modernized a few more types in syntax::astMarvin Löbel-11/+11
2013-08-23removed os::set_args, closing #8325Do Nhat Minh-1/+5
removed pub on real_args, changed test to use args
2013-08-22auto merge of #8627 : kballard/rust/fix-rusti, r=catamorphismbors-1/+1
Commit 0932ab336 accidentally broke rusti by making it parse the binary name as the input, instead of parsing what the user typed.
2013-08-19Fix broken rustiKevin Ballard-1/+1
Commit 0932ab336 accidentally broke rusti by making it parse the binary name as the input, instead of parsing what the user typed.
2013-08-19auto merge of #8623 : pnkfelix/rust/fsk-visitor-vpar-defaults-step4, r=nmatsakisbors-11/+18
Follow up to #8619 (step 3 of 5). (See #8527, which was step 1 of 5, for the full outline.) Part of #7081.
2013-08-19Add externfn macro and correctly label fixed_stack_segmentsNiko Matsakis-0/+2
2013-08-15Ported rusti::utils from oldvisit to <V:Visitor> trait API.Felix S. Klock II-11/+18
2013-08-13Remove unused automatic cfg bindings Fixes #7169Nick Desaulniers-7/+6
2013-08-10std: Transform.find_ -> .findErick Tryzelaar-1/+1
2013-08-10std: Rename Iterator.transform -> .mapErick Tryzelaar-1/+1
cc #5898
2013-08-10Mass rename of .consume{,_iter}() to .move_iter()Erick Tryzelaar-3/+3
cc #7887
2013-08-07rusti: Disable testsBrian Anderson-0/+15
Segfaulted on one of the bots. Maybe out of stack?
2013-08-07auto merge of #8294 : erickt/rust/map-move, r=bblumbors-1/+1
According to #7887, we've decided to use the syntax of `fn map<U>(f: &fn(&T) -> U) -> U`, which passes a reference to the closure, and to `fn map_move<U>(f: &fn(T) -> U) -> U` which moves the value into the closure. This PR adds these `.map_move()` functions to `Option` and `Result`. In addition, it has these other minor features: * Replaces a couple uses of `option.get()`, `result.get()`, and `result.get_err()` with `option.unwrap()`, `result.unwrap()`, and `result.unwrap_err()`. (See #8268 and #8288 for a more thorough adaptation of this functionality. * Removes `option.take_map()` and `option.take_map_default()`. These two functions can be easily written as `.take().map_move(...)`. * Adds a better error message to `result.unwrap()` and `result.unwrap_err()`.
2013-08-07core: option.map_consume -> option.map_moveErick Tryzelaar-1/+1
2013-08-07Revert "Re-enable rusti tests"Alex Crichton-8/+9
This reverts commit d5de801cc1b4a3147dfd5a29a3d0e129ee0fe783.
2013-08-06auto merge of #8321 : alexcrichton/rust/enable-rusti, r=cmrbors-9/+8
Now that LLVM has been upgraded, I think that we can try again to re-enable the rusti tests.
2013-08-05Re-enable rusti testsAlex Crichton-9/+8
2013-08-05Updated std::Option, std::Either and std::ResultMarvin Löbel-5/+5
- Made naming schemes consistent between Option, Result and Either - Changed Options Add implementation to work like the maybe monad (return None if any of the inputs is None) - Removed duplicate Option::get and renamed all related functions to use the term `unwrap` instead
2013-08-03remove obsolete `foreach` keywordDaniel Micay-18/+18
this has been replaced by `for`
2013-08-03replace all remaining `for` with `foreach` or `do`Daniel Micay-2/+2
2013-08-02librustc: Introduce a new visitor type based on traits and port syntax to it.Patrick Walton-4/+4
This is preparation for removing `@fn`. This does *not* use default methods yet, because I don't know whether they work. If they do, a forthcoming PR will use them. This also changes the precedence of `as`.
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-16/+16
2013-08-01make `in` and `foreach` get treated as keywordsDaniel Micay-5/+5
2013-07-29New naming convention for ast::{node_id, local_crate, crate_node_id, ↵Michael Woerister-1/+1
blk_check_mode, ty_field, ty_method}
2013-07-27rustc: reorganize driver, replace compile_upto with multiple more-obvious ↵Graydon Hoare-14/+20
functions.
2013-07-24Change 'print(fmt!(...))' to printf!/printfln! in src/lib*Birunthan Mohanathas-3/+2
2013-07-22Ast spanned<T> refactoring, renaming: crate, local, blk, crate_num, crate_cfg.Michael Woerister-11/+11
`crate => Crate` `local => Local` `blk => Block` `crate_num => CrateNum` `crate_cfg => CrateConfig` Also, Crate and Local are not wrapped in spanned<T> anymore.
2013-07-18auto merge of #7857 : blake2-ppc/rust/fix-test-warnings, r=alexcrichtonbors-1/+0
Fix warnings that only show up when compiling the tests for libstd, libextra and one in librusti. Only trivial changes.
2013-07-18hashmap: Remove .consume() has rename .consume_iter() to .consume()blake2-ppc-3/+7
Updated all users of HashMap, HashSet old .consume() to use .consume() with a for loop. Since .consume() takes the map or set by value, it needs awkward extra code to in librusti's use of @mut HashMap, where the map value can not be directly moved out.
2013-07-18Fix warnings in libstd and librusti testsblake2-ppc-1/+0
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-17/+19
2013-07-17Made ast::blk not use spanned<T> anymore.Michael Woerister-5/+5
2013-07-14Make TLS keys actually take up spaceAlex Crichton-6/+4
If the TLS key is 0-sized, then the linux linker is apparently smart enough to put everything at the same pointer. OSX on the other hand, will reserve some space for all of them. To get around this, the TLS key now actuall consumes space to ensure that it gets a unique pointer
2013-07-14Purge the last remnants of the old TLS apiAlex Crichton-16/+8
Closes #3273
2013-07-13When running rusti, consume the JIT contexts and collect them in the parent taskAlex Crichton-35/+68
2013-07-11Fix testsAlex Crichton-4/+4
2013-07-11Remove all external requirements of `@` from TLSAlex Crichton-1/+1
Closes #6004
2013-07-09Rename local_data methods/types for less keystrokesAlex Crichton-3/+3
2013-07-08Bump version numbers to 0.8-preBrian Anderson-1/+1
2013-07-08auto merge of #7568 : alexcrichton/rust/check-lite, r=huonwbors-2/+2
A lot of cross-platform issues stem from rusti/rustpkg, so include these two test suites in the 'check-lite' target which is run on the cross-compile bots. It shouldn't be much of a performance hit because these suites are pretty fast to run. Hopefully this will make snapshot/tarball creation easier in the future.
2013-07-07Add rusti/rustpkg to check-liteAlex Crichton-2/+2
Ironically also disable rusti tests for now, but mainly because they're awaiting LLVM upgrades before proceeding
2013-07-07remove some method resolve workaroundsDaniel Micay-1/+1
2013-07-07Fix rustdoc and rustiJames Miller-3/+3
2013-07-06auto merge of #7581 : alexcrichton/rust/better-rusti, r=pcwaltonbors-15/+1
This is more future-proof