Commit Graph

39746 Commits

Author SHA1 Message Date
Richo Healey
061d84399e remove uses of as_slice where deref coercions can be used 2015-03-09 07:54:19 -07:00
Felix S. Klock II
3dbf969103 For FRU, evaluate field expressions (into scratch temps) before base expression.
Fix #23112.
2015-03-09 14:50:36 +01:00
bors
2574009af0 Auto merge of #23209 - richo:normalize-test-names, r=alexcrichton
Motivated by the test output not lining up when it could, I normalized all of the issue-* tests.

While doing it, I found some lexer tests that could be unignored and fixed an int -> isize.
2015-03-09 13:36:13 +00:00
Manish Goregaokar
f3c427ca5c Rollup merge of #23203 - eLobato:patch-1, r=Manishearth
A minor change to avoid making the reader think 'where is this'.
2015-03-09 17:59:22 +05:30
Manish Goregaokar
894cd3961a Rollup merge of #23202 - shepmaster:intro-threads-not-concurrent, r=steveklabnik
If we end the `scoped` call with a semicolon, the `JoinGuard` will be
dropped and not returned from the `map`. The thread will start up and
we immediately block, making for a very expensive sequential loop.
2015-03-09 17:59:21 +05:30
Manish Goregaokar
094b6bc831 Rollup merge of #23187 - steveklabnik:gh17481, r=Manishearth
Fixes #17481
2015-03-09 17:59:21 +05:30
Manish Goregaokar
4733190c35 Rollup merge of #23183 - steveklabnik:gh22572, r=Manishearth
They're opt-in now.

Fixes #22572
2015-03-09 17:59:20 +05:30
Manish Goregaokar
811c575b3c Rollup merge of #23144 - FuGangqiang:doc_err, r=alexcrichton
in the [doc page](http://doc.rust-lang.org/std/num/index.html), `FromStrRadix::from_str_radix` is not quoted.
2015-03-09 17:59:20 +05:30
Manish Goregaokar
bfcf53f7ad Rollup merge of #23210 - richo:rust-o, r=alexcrichton
rustc will ICE if you specify an outfile path that is bare without a
directory. As a workaround, before this -o ./foo will work

It wasn't clear to me where I could put a test that actually invokes rustc from a shell, although I think I can add doctests to that machinery in librustc_driver that will arrange for this to be called with arguments that would trigger the ICE
2015-03-09 17:59:20 +05:30
Manish Goregaokar
43984618eb Rollup merge of #23209 - richo:normalize-test-names, r=alexcrichton
Motivated by the test output not lining up when it could, I normalized all of the issue-* tests.

While doing it, I found some lexer tests that could be unignored and fixed an int -> isize.
2015-03-09 17:59:19 +05:30
bors
14ce607d9b Auto merge of #23200 - Manishearth:rollup, r=Manishearth 2015-03-09 07:01:09 +00:00
Richo Healey
103636114d normalize the current directory as Path{""} 2015-03-08 22:21:59 -07:00
Richo Healey
0487ad9119 Add a test for a bare outfile param to rustc 2015-03-08 22:21:59 -07:00
Richo Healey
8ac528bed1 rustc: Fix an ICE when -o bare-path
rustc will ICE if you specify an outfile path that is bare without a
directory. As a workaround, before this -o ./foo will work
2015-03-08 22:21:59 -07:00
Manish Goregaokar
3797827460 Fix doctest (fixup #23188) 2015-03-09 10:16:34 +05:30
bors
36c3612f5c Auto merge of #23043 - steveklabnik:doc_default_method, r=nikomatsakis 2015-03-09 04:35:44 +00:00
bors
91bdf23f50 Auto merge of #23153 - Manishearth:snap, r=alexcrichton
Needed so that #21824 can land
2015-03-09 00:17:49 +00:00
Richo Healey
58a288d323 test: Fix depcrecated alias for int 2015-03-08 17:10:32 -07:00
Richo Healey
5b7bfc88c6 test: Test the lexer now that #15879 is closed 2015-03-08 17:10:32 -07:00
bors
d71239f628 Auto merge of #23179 - steveklabnik:mini_rollup, r=steveklabnik
I had to fix up some PRs:

* https://github.com/rust-lang/rust/pull/22976
* https://github.com/rust-lang/rust/pull/22945
* https://github.com/rust-lang/rust/pull/22845
2015-03-08 21:51:59 +00:00
Daniel Lobato García
13d5e5712a Link README to license & copyright files
A minor change to avoid making the reader think 'where is this'.
2015-03-08 23:37:23 +02:00
Jake Goulding
b426a242e3 Make concurrent examples actually run concurrently
If we end the `scoped` call with a semicolon, the `JoinGuard` will be
dropped and not returned from the `map`. The thread will start up and
we immediately block, making for a very expensive sequential loop.
2015-03-08 16:12:07 -04:00
Jake Goulding
a6ebd26208 Update example that uses deprecated Thread::scoped 2015-03-08 16:12:07 -04:00
Manish Goregaokar
684cd77222 Rollup merge of #23182 - steveklabnik:gh22610, r=Manishearth
Fixes #22610
2015-03-09 00:35:38 +05:30
Manish Goregaokar
9f851a734b Rollup merge of #23190 - steveklabnik:fix_as_slice, r=alexcrichton 2015-03-09 00:13:33 +05:30
Manish Goregaokar
10960d3043 Rollup merge of #23188 - steveklabnik:gh18787, r=alexcrichton
Fixes #18787
2015-03-09 00:11:48 +05:30
Manish Goregaokar
b515b4e28a Rollup merge of #23184 - steveklabnik:gh22553, r=alexcrichton
Fixes #22553
2015-03-09 00:10:06 +05:30
Manish Goregaokar
c7d5354567 Rollup merge of #23181 - steveklabnik:gh22637, r=alexcrichton
Fixes #22637
2015-03-09 00:09:56 +05:30
Manish Goregaokar
d1ac69ce72 Rollup merge of #23180 - steveklabnik:gh23052, r=alexcrichton
Fixes #23052
2015-03-09 00:08:03 +05:30
Manish Goregaokar
ea8434f7ee Rollup merge of #23043 - steveklabnik:doc_default_method, r=nikomatsakis 2015-03-09 00:06:20 +05:30
Manish Goregaokar
1149b4d08d Rollup merge of #22917 - randfur:master, r=steveklabnik
The docs currently define `array_expr`s as:

    array_expr : '[' \"mut\" ? vec_elems? ']' ;
    array_elems : [expr [',' expr]*] | [expr ',' \"..\" expr] ;

`vec_elems` is not defined anywhere else so it is probably a typo for `array_elems`.
2015-03-09 00:06:03 +05:30
Manish Goregaokar
f7c1fce144 Rollup merge of #23153 - Manishearth:snap, r=alexcrichton
Needed so that #21824 can land
2015-03-09 00:04:20 +05:30
Manish Goregaokar
0e0bb8a128 Rollup merge of #23179 - steveklabnik:mini_rollup, r=steveklabnik
I had to fix up some PRs:

* https://github.com/rust-lang/rust/pull/22976
* https://github.com/rust-lang/rust/pull/22945
* https://github.com/rust-lang/rust/pull/22845
2015-03-09 00:02:37 +05:30
Manish Goregaokar
509c6fc9c1 Rollup merge of #22984 - carols10cents:tests-for-float, r=huonw
Building on #22076, I've added some tests for stable methods in f32 and f64 that didn't have any before.

Please let me know if there are any improvements I can make, and I am happy to make them! 📬
2015-03-09 00:02:28 +05:30
bors
b775541aaf Auto merge of #22984 - carols10cents:tests-for-float, r=huonw
Building on #22076, I've added some tests for stable methods in f32 and f64 that didn't have any before.

Please let me know if there are any improvements I can make, and I am happy to make them! 📬
2015-03-08 17:59:20 +00:00
Steve Klabnik
6c6c23f9df Small fixes to example to be more idiomatic 2015-03-08 12:07:58 -04:00
Steve Klabnik
044b3bf2d7 Add examples of all three syntaxes in method syntax chapter of trpl
Fixes #18787
2015-03-08 10:49:13 -04:00
Steve Klabnik
1014b22b31 remove confusing language about casting types
Fixes #17481
2015-03-08 10:35:58 -04:00
Steve Klabnik
d65064da34 Move 'more strings' after ownership
Fixes #22553
2015-03-08 09:34:03 -04:00
Steve Klabnik
9653a521b5 Clean up references to opt-out traits
They're opt-in now.

Fixes #22572
2015-03-08 09:32:18 -04:00
Steve Klabnik
5b0acb5846 remove 'generally' to reduce confusion
Fixes #22610
2015-03-08 09:29:47 -04:00
Steve Klabnik
ce223a62f1 Mention deref coercions in the String guide.
Fixes #22637
2015-03-08 09:25:50 -04:00
Steve Klabnik
e56fcbcd99 Remove reference to NoSend in concurrency chapter of the book
Fixes #23052
2015-03-08 09:15:06 -04:00
Steve Klabnik
de44baac8b Add default methods to trait documentation 2015-03-08 08:55:17 -04:00
Amol Mundayoor
45c397d738 Fix array syntax in comment.
Fixes #22721.
2015-03-08 08:39:47 -04:00
Łukasz Niemier
3ad1c83540 Add description of fold function arguments. 2015-03-08 08:38:27 -04:00
Pyry Kontio
6dcc0e5631 Adds an example for PhantomData<T>. 2015-03-08 08:38:10 -04:00
bors
ead9ab84b8 Auto merge of #23167 - rprichard:fix-plugin-rustbook, r=steveklabnik
* "let mut text" was previously of &String type.  Now it is of &str type.

 * Update the slicing syntax.  Both &text[] and text.slice_from() evaluate
   to a &str.

 * We were passing a u32 to expr_usize.  Call expr_u32 instead.

r? @steveklabnik
Fixes #23166
2015-03-08 12:10:42 +00:00
bors
b2f09c1165 Auto merge of #23127 - alexcrichton:bench-wrapping, r=brson
Right now the rust upgrade in cargo is blocked on fixing this overflow. If a
this benchmark is run it will trigger an overflow error today:

    #[bench]
    fn foo(b: &mut test::Bencher) {}

This commit adds a check on each iteration of the loop that the maximum
multiplier (10) doesn't overflow, and if it does just return the results so far.
2015-03-08 08:34:56 +00:00
Ryan Prichard
52124d7c80 Fix #23166. Get the Compiler Plugins example compiling again.
* "let met text" was previously of &String type.  Now it is of &str type.

 * Update the slicing syntax.  Both &text[] and text.slice_from() evaluate
   to a &str.

 * We were passing a u32 to expr_usize.  Call expr_u32 instead.
2015-03-07 22:58:28 -08:00