about summary refs log tree commit diff
path: root/src/librust
AgeCommit message (Collapse)AuthorLines
2013-10-10rust / build: Remove the `rust` toolTim Chevalier-256/+0
Sadly, there's a lack of resources for maintaining the `rust` tool, and we decided in the 2013-10-08 Rust team meeting that it's better to remove it altogether than to leave it in a broken state. This deletion is without prejudice. If a person or people appear who would like to maintain the tool, we will probably be happy to resurrect it! Closes #9775
2013-10-09option: rewrite the API to use compositionDaniel Micay-1/+1
2013-10-01Migrate users of 'loop' to 'continue'Alex Crichton-1/+1
Closes #9467
2013-09-27auto merge of #9552 : brson/rust/0.9-pre, r=alexcrichtonbors-1/+1
2013-09-26Update version numbers to 0.9-preBrian Anderson-1/+1
2013-09-26Update the compiler to not use printf/printflnAlex Crichton-4/+4
2013-09-24auto merge of #9480 : brson/rust/noexit, r=thestingerbors-5/+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-24Don't use libc::exit. #9473Brian Anderson-5/+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-24rust: Don't call libc::exitBrian Anderson-4/+6
This appears to eliminate the common errors with assertions failures in rust_initialize_rt_tls_key.
2013-09-22rustdoc: Out with the old, in with the newAlex Crichton-1/+5
Removes old rustdoc, moves rustdoc_ng into its place instead (plus drops the _ng suffix). Also shreds all reference to rustdoc_ng from the Makefile rules.
2013-09-21Update version numbers to 0.8Brian Anderson-1/+1
2013-09-15rust test: pass the remaining arguments throughDavid Creswick-3/+4
The arguments after `rust test filename.rs` should be passed through to the test binary. This allows the `rust` command to be used to run a subset of tests, to run ignored tests, and to run benchmarks.
2013-09-12librust: Remove unnecessary workaround. Closes #7617Luqman Aden-14/+8
2013-09-04Update clients of path.rs to use new API.Felix S. Klock II-2/+4
In most cases this involved removing a ~str allocations or clones (yay), or coercing a ~str to a slice. In a few places, I had to bind an intermediate Path (e.g. path.pop() return values), so that it would live long enough to support the borrowed &str. And in a few places, where the code was actively using the property that the old API returned ~str's, I had to put in to_owned() or clone(); but in those cases, we're trading an allocation within the path.rs code for one in the client code, so they neutralize each other.
2013-08-23removed os::set_args, closing #8325Do Nhat Minh-10/+9
removed pub on real_args, changed test to use args
2013-08-19Add externfn macro and correctly label fixed_stack_segmentsNiko Matsakis-0/+2
2013-08-10std: Transform.find_ -> .findErick Tryzelaar-1/+1
2013-08-07core: option.map_consume -> option.map_moveErick Tryzelaar-1/+1
2013-08-03remove obsolete `foreach` keywordDaniel Micay-2/+2
this has been replaced by `for`
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-2/+2
2013-07-28librust: Stop rust tool from crashing on macos.Luqman Aden-1/+7
2013-07-24Change 'print(fmt!(...))' to printf!/printfln! in src/lib*Birunthan Mohanathas-5/+4
2013-07-17librustc: Remove all uses of the `Copy` bound.Patrick Walton-5/+5
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-2/+2
2013-07-17librustc: Add a lint mode for unnecessary `copy` and remove a bunch of them.Patrick Walton-1/+1
2013-07-08Bump version numbers to 0.8-preBrian Anderson-1/+1
2013-07-01rustc: add a lint to enforce uppercase statics.Huon Wilson-5/+5
2013-06-30Bump version from 0.7-pre to 0.7Brian Anderson-1/+1
2013-06-30auto merge of #7468 : cmr/rust/great_renaming, r=pcwaltonbors-17/+4
2013-06-29Add -v/--version support to rust binaryJordi Boggiano-0/+6
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-17/+4
2013-06-29Make librust satisfy noncopyable stack closuresBen Blum-3/+3
2013-06-25Rename all files with the 'rc' extensionAlex Crichton-0/+0
2013-06-23vec: remove BaseIter implementationDaniel Micay-1/+1
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-21vec: rm old_iter implementations, except BaseIterDaniel Micay-2/+2
The removed test for issue #2611 is well covered by the `std::iterator` module itself. This adds the `count` method to `IteratorUtil` to replace `EqIter`.
2013-06-14add IteratorUtil to the preludeDaniel Micay-1/+0
2013-06-12Silence some warnings.Huon Wilson-1/+0
2013-06-12std: convert str::repeat to a method.Huon Wilson-1/+1
2013-06-11option: remove redundant old_iter implsDaniel Micay-1/+3
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-0/+10
2013-05-28Move checking for moves and initialization of local variables and patterns intoNiko Matsakis-6/+6
borrow checker and generalize what moves are allowed. Fixes a nasty bug or two in the pattern move checking code. Unifies dataflow code used for initialization and other things. First step towards once fns. Everybody wins. Fixes #4384. Fixes #4715. cc once fns (#2202), optimizing local moves (#5016).
2013-05-27Refactor core::run in order to address many of the issuesgareth-2/+2
mentioned in #2625. This change makes the module more oriented around Process values instead of having to deal with process ids directly. Apart from issues mentioned in #2625, other changes include: - Changing the naming to be more consistent - Process/process is now used instead of a mixture of Program/program and Process/process. - More docs/tests. Some io/scheduler related issues remain (mentioned in #2625).
2013-05-24Make rust {test, run} exit with appropriate code.Herman J. Radtke III-10/+14
Scripts need to know if the tests pass or the program ran correctly.
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-0/+6
to libextra
2013-05-19reduce the usage of explicit version markersDaniel Micay-4/+4
2013-05-12Don't create subprocesses for the `rust` commandAlex Crichton-54/+45
Instead link against the built libraries and directly invoke those.
2013-05-10renamed vec::from_slice to vec::to_ownedYoungsoo Son-1/+1
2013-04-27only use #[no_core] in libcoreDaniel Micay-2/+0
2013-04-13librust: make `rust run file.rs` past any extra arguments to the compiled ↵Huon Wilson-4/+4
program.
2013-04-10Bump version to 0.7-preBrian Anderson-2/+2