Commit Graph

39884 Commits

Author SHA1 Message Date
Philip Munksgaard
298d1578f0 with_attrs -> attrs
We don't need to take a closure, instead just return the list of attributes.
2015-03-10 14:18:58 +01:00
Tobias Bucher
5199a7060b Remove unneeded saturating_add 2015-03-10 14:18:24 +01:00
Liigo Zhuang
29ff77f74b rustdoc: get back 'plain summary line' in sidebar
this feature was broken by mistake some days ago: @2b11a80
2015-03-10 20:55:09 +08:00
Tobias Bucher
fb297d1027 Remove unneeded macro witchery 2015-03-10 12:57:05 +01:00
bors
5f47c0613e Auto merge of #23248 - Manishearth:rollup, r=Manishearth 2015-03-10 11:53:54 +00:00
Tobias Bucher
fcae449b39 Purge isize from core::iter 2015-03-10 11:36:11 +01:00
Manish Goregaokar
b0357ac2c2 Rollup merge of #23231 - killercup:patch-7, r=Manishearth
Fixes #23230.

I think these are the only places I need to update.

r? @steveklabnik
2015-03-10 16:04:23 +05:30
Manish Goregaokar
0a90cf9b32 Rollup merge of #23236 - dhuseby:master, r=alexcrichton
this fixes the issue the bitrig autobuilder is running into.
2015-03-10 15:00:00 +05:30
Manish Goregaokar
436a874db2 Rollup merge of #23226 - pnkfelix:add-tests-for-some-feature-gates, r=alexcrichton
Add tests checking that a number of feature gates are gating their features

Namely:

 * `quote`
 * `link_args`
 * `link_llvm_intrinsics`
 * `thread_local`
 * `unsafe_destructor`

Also updates test for `plugin_registrar` to make it clear that
it is only testing the `plugin_registrar` feature gate.

Cc #22820.  (Latter is not fixed, since there are still a bunch more feature-gates that need tests. But I wanted to stop here and move on to something else.)
2015-03-10 14:59:53 +05:30
Manish Goregaokar
3e5f3b2350 Rollup merge of #23195 - steveklabnik:gh19808, r=alexcrichton
Fixes #19808
2015-03-10 14:59:46 +05:30
Manish Goregaokar
fa8c6d94d0 Rollup merge of #23185 - steveklabnik:gh20051, r=alexcrichton
Fixes #20051
2015-03-10 14:59:39 +05:30
Manish Goregaokar
d034bc3e3a Rollup merge of #23125 - danburkert:master, r=brson 2015-03-10 14:59:31 +05:30
Manish Goregaokar
cc45572f78 Rollup merge of #22832 - anguslees:manpage-pedantry, r=brson
Use consistent markup between rust and rustdoc manpages.  Avoid use of
the troublesome unquoted '-' troff character.
2015-03-10 14:59:20 +05:30
Manish Goregaokar
7206fec9c3 Rollup merge of #23105 - alexcrichton:rand-wrapping, r=brson
There was a buildbot failure recently of an arithmetic overflow in the isaac
module of the rand crate, so I've imported the isaac implementation from
out-of-tree which makes somewhat more liberal usage of the wrapping primitives.
Hopefull this quelches any future overflow!
2015-03-10 14:59:13 +05:30
Manish Goregaokar
a49b6f8bd3 Rollup merge of #23201 - pnkfelix:fsk-struct-ooe-23112, r=nikomatsakis
For FRU, eval field exprs (into scratch temps) before base expr

Fix #23112.
2015-03-10 14:59:07 +05:30
Steven Fackler
bd6ed22fdf Switch derive(Debug) to use the debug builders 2015-03-09 23:24:34 -07:00
Steven Fackler
8121cf077c Restructure debug builders to minimize codegen
Switching from generic bounds to trait objects and having un-inlined
inner methods should cut down on the size of Debug impls, since we care
about the speed of a Debug implementation way less than binary bloat.
2015-03-09 23:24:34 -07:00
Steven Fackler
e3656bd81b Implement RFC 640 2015-03-09 23:24:34 -07:00
bors
d3c49d2140 Auto merge of #23105 - alexcrichton:rand-wrapping, r=brson
There was a buildbot failure recently of an arithmetic overflow in the isaac
module of the rand crate, so I've imported the isaac implementation from
out-of-tree which makes somewhat more liberal usage of the wrapping primitives.
Hopefull this quelches any future overflow!
2015-03-10 05:29:10 +00:00
Alex Crichton
ee7a72c608 rand: Use wrapping operations everywhere
There was a buildbot failure recently of an arithmetic overflow in the isaac
module of the rand crate, so I've imported the isaac implementation from
out-of-tree which makes somewhat more liberal usage of the wrapping primitives.
Hopefull this quelches any future overflow!
2015-03-09 22:16:46 -07:00
bors
621ccf58c4 Auto merge of #23186 - steveklabnik:gh14686, r=alexcrichton
Fixes #14686
2015-03-10 03:03:17 +00:00
Julian Orth
660b48fae5 Add support for target-cpu=native 2015-03-10 01:56:51 +01:00
bors
12b846ab80 Auto merge of #23038 - nikomatsakis:issue-22978-defaulted-coherence, r=flaper87
Fixes #22978.

r? @FlaPer87
2015-03-09 23:27:14 +00:00
Dave Huseby
d0ae7caa49 fixing configure so that it works on bitrig/openbsd 2015-03-09 16:25:50 -07:00
bors
b83b26bacb Auto merge of #22561 - richo:as_slice-as_str, r=Manishearth
This may not be quite ready to go out, I fixed some docs but suspect I missed a bunch.

I also wound up fixing a bunch of redundant `[]` suffixes, but on closer inspection I don't believe that can land until after a snapshot.
2015-03-09 21:02:50 +00:00
Steve Klabnik
7a86bfc5df Shrink table in the reference
Fixes #20051
2015-03-09 16:51:21 -04:00
Steve Klabnik
a60089903a Add note about pre/post increment to the design FAQ.
Fixes #14686
2015-03-09 16:49:19 -04:00
Steve Klabnik
bc927a69b2 Explain super in the crates guide.
Fixes #19808
2015-03-09 16:48:05 -04:00
Pascal Hertleif
c2fe7c4a03 Rustdoc: Add Headline Style for tymethod
Fixes #23230
2015-03-09 20:34:20 +01:00
Niko Matsakis
17358d1d21 Address nit by @flaper87 2015-03-09 14:39:31 -04:00
bors
638832e64c Auto merge of #21824 - sfackler:should_panic, r=alexcrichton 2015-03-09 18:32:16 +00:00
Felix S. Klock II
5c3a0b191e Add tests checking that a number of feature gates are gating their features.
Namely:

 * `quote`
 * `link_args`
 * `link_llvm_intrinsics`
 * `thread_local`
 * `unsafe_destructor`

Also updates test for `plugin_registrar` to make it clear that
it is only testing the `plugin_registrar` feature gate.

Cc #22820.
2015-03-09 19:18:43 +01:00
Steven Fackler
e2605b42c7 Rename #[should_fail] to #[should_panic] 2015-03-09 10:14:21 -07:00
bors
777f5d9599 Auto merge of #23219 - Manishearth:rollup, r=Manishearth 2015-03-09 16:02:29 +00:00
Manish Goregaokar
646830076a fix rmake 2015-03-09 21:04:13 +05:30
Richo Healey
7981aa6ac9 doc: Fix extraneous as_slice()'s in docstrings 2015-03-09 07:54:19 -07:00
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