about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2013-04-18auto merge of #5418 : luqmana/rust/stack-float, r=brsonbors-19/+3
Like I commented in #2043, I can't reproduce the weirdness from #1388 on either mac or linux (x84_64) and pushing to try gives all green. That's 128 less bytes to have to keep in the stack for every call to __morestack.
2013-04-18auto merge of #5798 : recrack/rust/multiple-errors, r=brsonbors-13/+147
Fix #4569.
2013-04-18auto merge of #5939 : brson/rust/xfail, r=brsonbors-1/+9
Disabling them because they are failing on incoming. Looking into a fix now.
2013-04-18test: xfail-macos some tests that don't work on mac i686Brian Anderson-0/+6
2013-04-18test: Add more comments about why extern-pass-TwoU64s is xfailedBrian Anderson-1/+3
2013-04-18add dropwhile and takewhile iteratorsDaniel Micay-9/+99
2013-04-18auto merge of #5935 : bjz/rust/master, r=thestingerbors-255/+367
2013-04-19Use assert_eq! instead of assert! and remove extraneous parenthesesBrendan Zabarauskas-267/+260
2013-04-18auto merge of #5933 : huonw/rust/core-read-until-byte, r=thestingerbors-6/+6
`read_until` is just doing a bytewise comparison. This means the following program prints `xyå12`, not `xy`, which it should if it was actually checking chars. ```rust fn main() { do io::with_str_reader("xyå12") |r| { io::println(r.read_until('å', false)); } } ``` This patch makes the type of read_until match what it is actually doing.
2013-04-18auto merge of #5932 : huonw/rust/core-str-iterator, r=thestingerbors-0/+56
2013-04-18core: io: the read_until function checks bytes not chars, so type should ↵Huon Wilson-6/+6
reflect that.
2013-04-18Add #[inline(always)] to each operator methodBrendan Zabarauskas-0/+50
2013-04-18auto merge of #5930 : osaut/rust/master, r=thestingerbors-6/+7
Just small typos I found during my study of rust sources. I have added the fbuild URL for reader's convenience.
2013-04-18core: add a str iteratorHuon Wilson-0/+56
2013-04-18auto merge of #5929 : intgr/rust/sketch_output, r=thestingerbors-2/+2
The last line of any command output should always have a newline. Also fixed typo, "on on" summary of 25 test runs: 4563 passed; 0 failed; 344 ignored
2013-04-18auto merge of #5928 : huonw/rust/core-task-spawn-supervised-doc, r=thestingerbors-2/+3
The doc-comment didn't reflect the [tasks tutorial](http://static.rust-lang.org/doc/tutorial-tasks.html#failure-modes), or how it works in practice.
2013-04-18Implement bitwise operator traits for ints and uintsBrendan Zabarauskas-0/+69
2013-04-18libcore: make spawn_supervised documentation reflect its behaviour.Huon Wilson-2/+3
2013-04-18auto merge of #5927 : huonw/rust/core-enumerate-iterator, r=thestingerbors-0/+35
2013-04-18libcore: add an EnumerateIterator, like Python's `enumerate`.Huon Wilson-0/+35
2013-04-18Small typos, year date and URL of the fbuild system for reference.Olivier Saut-6/+7
2013-04-18sketch: Make rust sketch barf output prettierMarti Raudsepp-2/+2
2013-04-18auto merge of #5923 : thestinger/rust/iterator, r=graydonbors-1/+54
2013-04-18Errors with the same span print the span onceYoungmin Yoo-13/+147
2013-04-18auto merge of #5919 : catamorphism/rust/gitignore, r=catamorphismbors-0/+1
2013-04-17auto merge of #5918 : catamorphism/rust/Warnings, r=catamorphismbors-2/+2
2013-04-17auto merge of #5916 : danluu/rust/debug_tutorial, r=catamorphismbors-0/+3
debug! is used in the tutorial without any explanation of how to get the output. This adds a blurb on how to see the output from debug!
2013-04-17auto merge of #5912 : Dretch/rust/issue-2626, r=graydonbors-1/+1
which does currently seem to work on win32 (and linux). Just mentioning issue #2626 again to make sure github picks it up.
2013-04-17auto merge of #5909 : brson/rust/rt4, r=graydonbors-449/+457
This is just a bunch of minor changes and simplifications to the structure of core::rt. It makes ownership of the ~Scheduler more strict (though it is still mutably aliased sometimes), turns the scheduler cleanup_jobs vector into just a single job, shunts the thread-local scheduler code off to its own file.
2013-04-17auto merge of #5908 : jbclements/rust/add-hygiene-machinery, r=graydonbors-114/+541
This pull request changes the representation of identifiers by adding an integer to the side of each one. This integer will eventually be a reference to a side-table of syntax contexts, presumably stored in TLS. This pull request also adds a bunch of utility functions required for hygiene, and associated tests, but doesn't actually deploy those functions. Finally, it also has a number of small cleanup items.
2013-04-17rustpkg: Add more testsTim Chevalier-0/+93
These are examples of what *should* work, and probably don't work yet.
2013-04-17rustpkg: Add a list of rustpkg commands that should passTim Chevalier-0/+35
This is a test file containing examples of commands that should succeed. When we write the test runner, we will have to figure out how to automate them.
2013-04-17rustpkg: Don't execute the standard build logic if there is a pkg.rsTim Chevalier-4/+5
2013-04-17rustpkg: Change this example to show how to do a custom buildTim Chevalier-0/+6
2013-04-17rustpkg: Remove bogus .rc fileTim Chevalier-25/+1
2013-04-17vec: add an external iteratorDaniel Micay-1/+54
2013-04-17auto merge of #5726 : brson/rust/struct-return, r=brsonbors-158/+484
r? @nikomatsakis This doesn't completely fix the x86 ABI for structs, but it does fix some cases. On linux, structs appear to be returned correctly now. On windows, structs are only returned by pointer when they are greater than 8 bytes. That scenario works now. In the case where the struct is less than 8 bytes our generated code looks peculiar. When returning a pair of u16, C packs both variables into %eax to return them. Our generated code though expects to find one of the pair in %ax and the other in %dx. Similar for u8. I haven't looked into it yet. There appears to also be struct passing problems on linux, where my `extern-pass-TwoU8s` and `extern-pass-TwoU16s` tests are failing.
2013-04-17auto merge of #5725 : jdm/rust/muttrait, r=nikomatsakisbors-65/+162
2013-04-17rustpkg: Implement clean; replace boolean result flags with fail!()Tim Chevalier-159/+67
1. Implemented the `clean` command 2. The methods implementing rustpkg commands all returned `bool`. Since most of not all of the error situations seem unrecoverable, I changed the methods to return unit (and also stubbed out several more methods that were assuming a package script existed, to be re-implemented in the future)
2013-04-17rustc: Use an out pointer to return structs in x86 C ABI. #5347Brian Anderson-91/+397
This Adds a bunch of tests for passing and returning structs of various sizes to C. It fixes the struct return rules on unix, and on windows for structs of size > 8 bytes. Struct passing on unix for structs under a certain size appears to still be broken.
2013-04-17rustpkg: Add a few testsTim Chevalier-0/+161
There's no test runner for rustpkg yet; just sketching out a few basic test scenarios. pass/ contains packages that should compile successfully, whereas fail/ contains packages that should fail to build.
2013-04-17rustpkg: Fail when crate inference fails; inject link attributesTim Chevalier-85/+142
1. Fail when there's no package script and no crates named main.rs, lib.rs, bench.rs, or test.rs. 2. Inject the crate link_meta "name" and "vers" attributes, so that the output file gets named correctly in the library case. 3. Normalize '-' to '_' in package names.
2013-04-17gitignore: Add build/ subdirectoryTim Chevalier-0/+1
2013-04-17Warning policeTim Chevalier-2/+2
2013-04-17Explain use of debug\! in tutorialDan Luu-0/+3
2013-04-17Allow casting to mutable trait objects.Josh Matthews-65/+162
2013-04-16auto merge of #5913 : brson/rust/valgrind, r=brsonbors-0/+8
2013-04-16More valgrind suppressionsBrian Anderson-0/+8
2013-04-16Fix issue 2626 by un-ignoring the mysterious test_leaks, gareth-1/+1
which does currently seem to work on win32 (and linux).
2013-04-16auto merge of #5890 : youknowone/rust/const-eval, r=catamorphismbors-25/+24
This will help not to meet confusing errors. In issue #5873, the error was "expected constant expr for vector length: Can't cast str to int". It was originally "expected constant expr for vector length: Non-constant path in constant expr" (though still invalid error). This patch make the original error to be printed.