Commit graph

76149 commits

Author SHA1 Message Date
kennytm 50850c62c5
Rollup merge of #49069 - wesleywiser:incr_soa, r=michaelwoerister
Convert SerializedDepGraph to be a struct-of-arrays

Fixes #47326

I did not try the "`mem::swap()` to avoid copying the arrays" idea because that would leave the DepGraph in an incorrect state and that doesn't seem like a good idea for me.

r? @michaelwoerister
2018-03-22 22:43:33 +08:00
kennytm ca54ff22f2
Rollup merge of #49029 - GuillaumeGomez:atomic-docs, r=QuietMisdreavus
Make Atomic doc examples specific to each type

Fixes #49018.

r? @QuietMisdreavus
2018-03-22 22:43:31 +08:00
kennytm b7ee149c47
Rollup merge of #48939 - wesleywiser:incr_query_wf_checking, r=michaelwoerister
Querify WF-checking so it can be cached

r? @michaelwoerister
2018-03-22 22:43:30 +08:00
Oliver Schneider 9839e5fa10
Remove slow HashSet during miri stack frame creation 2018-03-22 15:05:12 +01:00
Michael Woerister a1a3bf2b31 Fix DefKey lookup for proc-macro crates. 2018-03-22 14:40:15 +01:00
Sébastien Marie de1c929ada Use GNU version of fgrep/egrep tool if available
It is mostly for BSD system. Some tests (run-make/issue-35164 and
run-make/cat-and-grep-sanity-check) are failing with BSD
fgrep, whereas they pass with gnu version (gfgrep).
2018-03-22 14:38:05 +01:00
Oliver Schneider b272749197
Fix the conversion between bit representations and i128 representations 2018-03-22 12:38:40 +01:00
kennytm d67084215d
Rollup merge of #48759 - QuietMisdreavus:simd-feature-docs, r=GuillaumeGomez
rustdoc: expose #[target_feature] attributes as doc(cfg) flags

This change exposes `#[target_feature(enable = "feat")]` attributes on an item as if they were also `#[doc(cfg(target_feature = "feat"))]` attributes. This gives them a banner on their documentation listing which feature is required to use the item. It also modifies the rendering code for doc(cfg) tags to handle `target_feature` tags. I made it print just the feature name on "short" printings (as in the function listing on a module page), and use "target feature `feat`" in the full banner on the item page itself.

This way, the function listing in `std::arch` shows which feature is required for each function:

![image](https://user-images.githubusercontent.com/5217170/37003222-f41b9d66-2091-11e8-9656-8719e5b34832.png)

![image](https://user-images.githubusercontent.com/5217170/37003234-feb1a7a2-2091-11e8-94de-6d1d76a2d3ee.png)
2018-03-22 17:51:16 +08:00
kennytm a848336a31
Rollup merge of #48596 - GuillaumeGomez:invalid-code-block-start, r=QuietMisdreavus
Add warning for invalid start of code blocks in rustdoc

Follow up of #48382.

Still two things to consider:
 1. Adding test for rustdoc output (but where? In UI or in rustdoc tests?).
 2. Try to fix the span issue.

r? @QuietMisdreavus
2018-03-22 17:51:15 +08:00
kennytm d313700014
Rollup merge of #48374 - Aaronepower:master, r=Mark-Simulacrum
Update RELEASES.md for 1.25.0

[rendered](https://github.com/Aaronepower/rust/blob/master/RELEASES.md)
2018-03-22 17:51:13 +08:00
bors b176285ba7 Auto merge of #49094 - alexcrichton:print-step-duration, r=kennytm
ci: Print out how long each step takes on CI

This commit updates CI configuration to inform rustbuild that it should print
out how long each step takes on CI. This'll hopefully allow us to track the
duration of steps over time and follow regressions a bit more closesly (as well
as have closer analysis of differences between two builds).

cc #48829
2018-03-22 09:46:06 +00:00
Mazdak Farrokhzad 613fb8bc2c document format_args! - fix trailing whitespace 2018-03-22 10:06:17 +01:00
Oliver Schneider b48a26cdd1
Produce nice array lengths on a best effort basis 2018-03-22 09:56:04 +01:00
bors e575773141 Auto merge of #49041 - nikomatsakis:issue-46541-impl-trait-hidden-lifetimes, r=cramertj
Detect illegal hidden lifetimes in `impl Trait`

This branch fixes #46541 -- however, it presently doesn't build because it also *breaks* a number of existing usages of impl Trait. I'm opening it as a WIP for now, just because we want to move on impl Trait, but I'll try to fix the problem in a bit.

~~(The problem is due to the fact that we apparently infer stricter lifetimes in closures that we need to; for example, if you capture a variable of type `&'a &'b u32`, we will put *precisely* those lifetimes into the closure, even if the closure would be happy with `&'a &'a u32`. This causes the present chance to affect things that are not invariant.)~~ fixed

r? @cramertj
2018-03-22 06:56:16 +00:00
Tyler Mandry 2b13d95da0 termination_trait: Make error message more helpful 2018-03-21 23:28:48 -05:00
bors eb8d08d904 Auto merge of #49246 - kennytm:download-gcc-stuff-from-https, r=alexcrichton
Download the GCC artifacts from the HTTP server instead of FTP server.

Try to bring back the `dist-i686-linux` and `dist-x86_64-linux alt` builders which has mysteriously lost their cache 14 hours ago and stuck forever unable to download `mpfr-2.4.2.tar.bz2` since it keeps getting

```
==> PASV ... couldn't connect to 209.132.180.131 port 10058: Connection timed out
```
2018-03-22 01:54:51 +00:00
kennytm 9f792e199b
Temporarily disable dist-ing RLS, Rustfmt and Clippy.
Unfortunately we don't have sufficient time to rebuild the cache *and*
distribute everything in `dist-x86_64-linux alt`, the debug assertions are
really slow.

We will re-enable them after the PR has been successfully merged, thus
successfully updating the cache (freeing up 40 minutes), giving us enough
time to build these tools.
2018-03-22 09:45:48 +08:00
Maxwell Borden c116b0e829 Fixed clockwise/counter-clockwise in atan2 documentation in f32 and f64
and included that it returns radians
2018-03-21 18:11:57 -07:00
QuietMisdreavus b3fb0d10f0 add target_feature items to doc_cfg rustdoc test 2018-03-21 19:57:10 -05:00
Niko Matsakis 2e8a1abc2d also fix the Fixed code 2018-03-21 19:23:29 -04:00
Niko Matsakis 48c4e352d3 WIP do not use in-band lifetimes 2018-03-21 19:22:41 -04:00
Mrowqa 99b49b532c Now it compiles 2018-03-21 23:11:27 +01:00
kennytm 56a19a9eec
Handle redirects correctly. 2018-03-22 05:28:11 +08:00
kennytm 78bcbb0f96
Download the GCC artifacts from the HTTP server instead of FTP server.
The former seems much more stable, in case the cache becomes invalidated.
2018-03-22 05:28:04 +08:00
varkor 3272b63f34 Moved test to ui 2018-03-21 21:00:38 +00:00
QuietMisdreavus 2ba41e9d79 update stdsimd 2018-03-21 15:43:06 -05:00
Niko Matsakis 3955708576 WIP tweak example to include feature gate 2018-03-21 16:31:20 -04:00
David Wood 1392179cdc
Configure the dist-x86_64-linux builder to produce compiler documentation 2018-03-21 19:02:54 +00:00
David Wood 178652a298
Add support to rustbuild for a 'rustc docs' component tarball 2018-03-21 19:02:53 +00:00
Tyler Mandry b6934c91b2 termination_trait: Put examples in error help, not label 2018-03-21 13:32:46 -05:00
varkor 4b673249f8 Fix type_dependent_defs ICE on method calls 2018-03-21 18:01:51 +00:00
Simon Sapin c09b9f9372 Deprecate the AsciiExt trait in favor of inherent methods
The trait and some of its methods are stable and will remain.
Some of the newer methods are unstable and can be removed later.

Fixes https://github.com/rust-lang/rust/issues/39658
2018-03-21 17:54:33 +01:00
QuietMisdreavus b996f9d60f review comments 2018-03-21 09:52:18 -05:00
Seiichi Uchida 75dcc61d3c Cargo fmt libtest 2018-03-21 23:12:24 +09:00
kennytm c7bdd371a6
Revert "Apply a fix to travis-ci/dpl#788 manually until dpl 1.9.5 is released."
This reverts commit 20e65f11f3.
2018-03-21 22:03:24 +08:00
bjorn3 5aa29c4c82 Fix test error 2018-03-21 14:43:07 +01:00
Niko Matsakis 94eebaa325 WIP fix mir-opt-end-region-8 2018-03-21 09:24:32 -04:00
Niko Matsakis 9d5ec9ef1a work around fallout from these changes in rustc 2018-03-21 05:40:59 -04:00
Niko Matsakis f71de45b23 use subtyping when we create a closure instead of for upvar types
We used to make the upvar types in the closure `==` but that was
stronger than we needed. Subtyping suffices, since we are copying the
upvar value into the closure field. This in turn allows us to infer
smaller lifetimes in captured values in some cases (like the example
here), avoiding errors.
2018-03-21 05:40:59 -04:00
Niko Matsakis fc3c90cf8a report an error if we see an unexpected lifetime in impl Trait
But leave closure substs alone.
2018-03-21 05:40:59 -04:00
gnzlbg e0165af94b fix vector fmin/fmax non-fast/fast intrinsics NaN handling 2018-03-21 10:32:53 +01:00
Bastien Orivel 06f8103295 Bump racer and home
This removes 10 dependencies from the build 🎉
2018-03-21 10:03:49 +01:00
Mazdak Farrokhzad afff64e7a4 document format_args! further wrt. Debug & Display" 2018-03-21 07:55:09 +01:00
Mazdak Farrokhzad 5201e7cf8a document format_args! behavior wrt. Display and Debug 2018-03-21 07:31:39 +01:00
Tyler Mandry 2cdc7af413 Use NOTE instead of error-pattern directive 2018-03-21 00:26:20 -05:00
Tyler Mandry 94bdeb64f9 termination_trait: Add () example to error message 2018-03-21 00:26:00 -05:00
Niv Kaminer 66d120cd26 Revert "remove FIXME(#33435) and remove the spurious failures counter measure"
This reverts commit be73a1f963.
2018-03-21 07:25:32 +02:00
Tyler Mandry 1937661961 Revert "Stabilize termination_trait in 1.25, not 1.26"
This reverts commit e5a55e7440.
2018-03-20 22:45:35 -05:00
bors c19264fa83 Auto merge of #49200 - oli-obk:extern_static_metadata, r=michaelwoerister
Encode/decode extern statics in metadata and incremental cache

fixes #49153

cc @abonander

r? @michaelwoerister incremental ICE
2018-03-21 01:06:16 +00:00
QuietMisdreavus 6956bbf61c whitelist every target feature for rustdoc 2018-03-20 19:36:30 -05:00