]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoFixed issues with incremental tests.
David Wood [Fri, 23 Mar 2018 14:04:08 +0000 (14:04 +0000)]
Fixed issues with incremental tests.

6 years agoSimplify local accessors
Oliver Schneider [Fri, 23 Mar 2018 11:44:33 +0000 (12:44 +0100)]
Simplify local accessors

6 years agoUpdated MIR with UserAssertTy in mir-opt tests.
David Wood [Fri, 23 Mar 2018 10:07:18 +0000 (10:07 +0000)]
Updated MIR with UserAssertTy in mir-opt tests.

6 years agoStabilize the copy_closures and clone_closures features
Simon Sapin [Fri, 23 Mar 2018 09:57:28 +0000 (10:57 +0100)]
Stabilize the copy_closures and clone_closures features

In addition to the `Fn*` family of traits, closures now implement `Copy` (and similarly `Clone`) if all of the captures do.

6 years agoadd test for issue-48238
csmoe [Fri, 23 Mar 2018 06:40:56 +0000 (14:40 +0800)]
add test for issue-48238

6 years agoDon't allocate a local array at all if there are no locals
Oliver Schneider [Fri, 23 Mar 2018 09:47:55 +0000 (10:47 +0100)]
Don't allocate a local array at all if there are no locals

6 years agoReplace uses of `Hash(Map|Set)` with `FxHash(Map|Set)` in miri
Oliver Schneider [Fri, 23 Mar 2018 09:32:27 +0000 (10:32 +0100)]
Replace uses of `Hash(Map|Set)` with `FxHash(Map|Set)` in miri

6 years agoIntroduce unsafe offset_from on pointers
Scott McMurray [Fri, 23 Mar 2018 08:30:23 +0000 (01:30 -0700)]
Introduce unsafe offset_from on pointers

Adds intrinsics::exact_div to take advantage of the unsafe, which reduces the implementation from
```asm
    sub rcx, rdx
    mov rax, rcx
    sar rax, 63
    shr rax, 62
    lea rax, [rax + rcx]
    sar rax, 2
    ret
```
down to
```asm
    sub rcx, rdx
    sar rcx, 2
    mov rax, rcx
    ret
```
(for `*const i32`)

6 years agoVec<_> -> IndexVec<Local, _>
Oliver Schneider [Fri, 23 Mar 2018 07:31:13 +0000 (08:31 +0100)]
Vec<_> -> IndexVec<Local, _>

6 years agoAuto merge of #49285 - nrc:update, r=alexcrichton
bors [Fri, 23 Mar 2018 05:43:00 +0000 (05:43 +0000)]
Auto merge of #49285 - nrc:update, r=alexcrichton

Update RLS and Rustfmt

Fixes broken RLS tests/build

r? @alexcrichton

6 years agoci: Don't use Travis caches for docker images
Alex Crichton [Thu, 22 Mar 2018 20:39:52 +0000 (13:39 -0700)]
ci: Don't use Travis caches for docker images

This commit moves away from caching on Travis to our own caching on S3 for
caching docker layers between builds. Unfortunately the Travis caches have over
time had a few critical pain points:

* Caches are only updated for successful builds, meaning that if a build times
  out or fails in a different location the sucessfully-created docker images
  isn't always cached. While this makes sense as a general rule of caches it
  hurts our use cases.

* Caches are per-branch and builder which means that we don't have a separate
  cache on each release channel. All our merges go through the `auto` branch
  which means that they're all sharing the same cache, even those for merging to
  master/beta. This means that PRs which switch between master/beta will keep
  rebuilting and having cache misses.

* Caches have historically been invaliated somewhat regularly a little more
  aggressively than we'd want (I think).

* We don't always need to update the contents of the cache if the Docker image
  didn't change at all, and saving off the docker layers can sometimes be quite
  expensive.

For all these reasons this commit drops the usage of Travis's built-in caching
support. Instead our own caching is used by storing blobs to S3. Normally this
would be a very risky endeavour but we're basically priming a cache for a cache
(docker) so if we get this wrong the failure mode is longer builds, not stale
caches. We'll notice that pretty quickly and hopefully fix it!

The logic here is inserted directly into the `src/ci/docker/run.sh` script to
download an image based on a shasum of the `Dockerfile` and other assorted files.
This blob, if found, is loaded into docker and we record what layers were
inserted. After docker finishes the build (hopefully quickly with lots of cache
hits) we then see the sha of the final image. If it's one of the layers we
loaded then there's no need to update the cache. Otherwise we upload our layers
to the global cache, possibly overwriting what we previously just downloaded.

This is hopefully a step towards mitigating #49278 although it doesn't
completely fix it as it means we'll still probably have to retry builds that
bust the cache.

6 years agoAllow installing rustfmt without config.extended
Josh Stone [Fri, 23 Mar 2018 01:31:32 +0000 (18:31 -0700)]
Allow installing rustfmt without config.extended

This assertion was preventing `./x.py install rustfmt` if attempted
without an "extended" build configuration, but it actually builds and
installs just fine.

6 years agoAdded flag to disable user type assertion.
David Wood [Thu, 22 Mar 2018 22:48:39 +0000 (22:48 +0000)]
Added flag to disable user type assertion.

6 years agoDebug logs for replace_bound_regions_with_nll_infer_vars
Niko Matsakis [Thu, 22 Mar 2018 18:50:42 +0000 (14:50 -0400)]
Debug logs for replace_bound_regions_with_nll_infer_vars

6 years agoUpdate RLS and Rustfmt
Nick Cameron [Thu, 22 Mar 2018 21:07:49 +0000 (10:07 +1300)]
Update RLS and Rustfmt

Fixes broken RLS tests/build

6 years agoTemporarily only adding UserAssertTy on binding patterns.
David Wood [Wed, 21 Mar 2018 19:47:08 +0000 (19:47 +0000)]
Temporarily only adding UserAssertTy on binding patterns.

6 years agoSwitched from canonicalize_query to canonicalize_response
David Wood [Tue, 20 Mar 2018 01:59:52 +0000 (01:59 +0000)]
Switched from canonicalize_query to canonicalize_response

6 years agoUserAssertTy can handle inference variables.
David Wood [Thu, 15 Mar 2018 18:49:10 +0000 (18:49 +0000)]
UserAssertTy can handle inference variables.

This commit modifies the UserAssertTy statement to take a canonicalized
type rather than a regular type so that we can handle the case where the
user provided type contains a inference variable.

6 years agoNo longer visiting user_assert_ty statements in constraint generation.
David Wood [Tue, 13 Mar 2018 14:52:23 +0000 (14:52 +0000)]
No longer visiting user_assert_ty statements in constraint generation.

6 years agoAdded comment in renumberer about UserAssertTy.
David Wood [Tue, 13 Mar 2018 14:16:53 +0000 (14:16 +0000)]
Added comment in renumberer about UserAssertTy.

6 years agoUpdated test with expected error message.
David Wood [Tue, 13 Mar 2018 14:16:14 +0000 (14:16 +0000)]
Updated test with expected error message.

6 years agoAdded override in renumberer for UserAssertTy.
David Wood [Sat, 10 Mar 2018 23:07:13 +0000 (23:07 +0000)]
Added override in renumberer for UserAssertTy.

6 years agoChanged location to at_self from at_successor.
David Wood [Fri, 2 Mar 2018 14:33:21 +0000 (14:33 +0000)]
Changed location to at_self from at_successor.

6 years agoAdded initial processing of UserAssertTy statements.
David Wood [Thu, 1 Mar 2018 14:31:14 +0000 (14:31 +0000)]
Added initial processing of UserAssertTy statements.

6 years agoKilling UserAssertTy in CleanupPostBorrowck pass.
David Wood [Fri, 23 Feb 2018 20:54:18 +0000 (20:54 +0000)]
Killing UserAssertTy in CleanupPostBorrowck pass.

6 years agoAdded UserAssertTy statement.
David Wood [Fri, 23 Feb 2018 20:52:05 +0000 (20:52 +0000)]
Added UserAssertTy statement.

6 years agoAdded initial test for #47184
David Wood [Fri, 23 Feb 2018 17:28:34 +0000 (17:28 +0000)]
Added initial test for #47184

6 years agopermit `'_` and `&T` in impl headers
Niko Matsakis [Wed, 21 Mar 2018 21:12:39 +0000 (17:12 -0400)]
permit `'_` and `&T` in impl headers

Deprecated forms of elision are not supported.

6 years agodistinguish the three cases where elision occurs
Niko Matsakis [Wed, 21 Mar 2018 20:59:28 +0000 (16:59 -0400)]
distinguish the three cases where elision occurs

6 years agochange in-band array to store hir::LifetimeName
Niko Matsakis [Wed, 21 Mar 2018 20:30:09 +0000 (16:30 -0400)]
change in-band array to store hir::LifetimeName

6 years agoadd new test for `dyn<Trait + '_>` used in a struct
Niko Matsakis [Wed, 21 Mar 2018 10:31:39 +0000 (06:31 -0400)]
add new test for `dyn<Trait + '_>` used in a struct

`'_` is illegal in structs; this currently gets a duplicate error

6 years agoadd a helper function `maybe_collect_in_band_lifetime`
Niko Matsakis [Wed, 21 Mar 2018 08:57:57 +0000 (04:57 -0400)]
add a helper function `maybe_collect_in_band_lifetime`

6 years agomake `parent_id` not optional
Niko Matsakis [Wed, 21 Mar 2018 08:45:21 +0000 (04:45 -0400)]
make `parent_id` not optional

It'd be pretty buggy if `None` were supplied anyway; we'd skip over
in-band lifetimes completely!

6 years agochange `with_in_scope_lifetime_defs` to take an iterator
Niko Matsakis [Wed, 21 Mar 2018 08:27:35 +0000 (04:27 -0400)]
change `with_in_scope_lifetime_defs` to take an iterator

6 years agorustfmt lowering.rs
Niko Matsakis [Wed, 21 Mar 2018 08:24:27 +0000 (04:24 -0400)]
rustfmt lowering.rs

6 years agoRemove std/test documentation from compiler docs.
David Wood [Thu, 22 Mar 2018 20:49:05 +0000 (20:49 +0000)]
Remove std/test documentation from compiler docs.

6 years agorustc: Add a `#[wasm_import_module]` attribute
Alex Crichton [Sat, 10 Feb 2018 22:28:17 +0000 (14:28 -0800)]
rustc: Add a `#[wasm_import_module]` attribute

This commit adds a new attribute to the Rust compiler specific to the wasm
target (and no other targets). The `#[wasm_import_module]` attribute is used to
specify the module that a name is imported from, and is used like so:

    #[wasm_import_module = "./foo.js"]
    extern {
        fn some_js_function();
    }

Here the import of the symbol `some_js_function` is tagged with the `./foo.js`
module in the wasm output file. Wasm-the-format includes two fields on all
imports, a module and a field. The field is the symbol name (`some_js_function`
above) and the module has historically unconditionally been `"env"`. I'm not
sure if this `"env"` convention has asm.js or LLVM roots, but regardless we'd
like the ability to configure it!

The proposed ES module integration with wasm (aka a wasm module is "just another
ES module") requires that the import module of wasm imports is interpreted as an
ES module import, meaning that you'll need to encode paths, NPM packages, etc.
As a result, we'll need this to be something other than `"env"`!

Unfortunately neither our version of LLVM nor LLD supports custom import modules
(aka anything not `"env"`). My hope is that by the time LLVM 7 is released both
will have support, but in the meantime this commit adds some primitive
encoding/decoding of wasm files to the compiler. This way rustc postprocesses
the wasm module that LLVM emits to ensure it's got all the imports we'd like to
have in it.

Eventually I'd ideally like to unconditionally require this attribute to be
placed on all `extern { ... }` blocks. For now though it seemed prudent to add
it as an unstable attribute, so for now it's not required (as that'd force usage
of a feature gate). Hopefully it doesn't take too long to "stabilize" this!

cc rust-lang-nursery/rust-wasm#29

6 years agorustc: Add a `#[wasm_custom_section]` attribute
Alex Crichton [Fri, 9 Mar 2018 17:26:15 +0000 (09:26 -0800)]
rustc: Add a `#[wasm_custom_section]` attribute

This commit is an implementation of adding custom sections to wasm artifacts in
rustc. The intention here is to expose the ability of the wasm binary format to
contain custom sections with arbitrary user-defined data. Currently neither our
version of LLVM nor LLD supports this so the implementation is currently custom
to rustc itself.

The implementation here is to attach a `#[wasm_custom_section = "foo"]`
attribute to any `const` which has a type like `[u8; N]`. Other types of
constants aren't supported yet but may be added one day! This should hopefully
be enough to get off the ground with *some* custom section support.

The current semantics are that any constant tagged with `#[wasm_custom_section]`
section will be *appended* to the corresponding section in the final output wasm
artifact (and this affects dependencies linked in as well, not just the final
crate). This means that whatever is interpreting the contents must be able to
interpret binary-concatenated sections (or each constant needs to be in its own
custom section).

To test this change the existing `run-make` test suite was moved to a
`run-make-fulldeps` folder and a new `run-make` test suite was added which
applies to all targets by default. This test suite currently only has one test
which only runs for the wasm target (using a node.js script to use `WebAssembly`
in JS to parse the wasm output).

6 years agoAuto merge of #49210 - oli-obk:pango_crash, r=eddyb
bors [Thu, 22 Mar 2018 20:02:14 +0000 (20:02 +0000)]
Auto merge of #49210 - oli-obk:pango_crash, r=eddyb

Fix the conversion between bit representations and i128 representations

fixes #49181

the `Discr` type now encodes the bit representation instead of `i128` or `u128` casted to `u128`.

r? @eddyb

6 years agoOnly generate documentation for local rustc crates.
David Wood [Thu, 22 Mar 2018 14:57:28 +0000 (14:57 +0000)]
Only generate documentation for local rustc crates.

6 years agoAuto merge of #49264 - kennytm:rollup, r=kennytm
bors [Thu, 22 Mar 2018 16:58:57 +0000 (16:58 +0000)]
Auto merge of #49264 - kennytm:rollup, r=kennytm

Rollup of 23 pull requests

- Successful merges: #48374, #48596, #48759, #48939, #49029, #49069, #49093, #49109, #49117, #49140, #49158, #49188, #49189, #49209, #49211, #49216, #49225, #49231, #49234, #49242, #49244, #49105, #49038
- Failed merges:

6 years agoCommand::env_saw_path() may be unused on platforms not using posix_spawn()
Bryan Drewery [Thu, 22 Mar 2018 16:49:20 +0000 (09:49 -0700)]
Command::env_saw_path() may be unused on platforms not using posix_spawn()

6 years agoSkip checking for Storage* statements in constants/statics
Oliver Schneider [Thu, 22 Mar 2018 15:59:02 +0000 (16:59 +0100)]
Skip checking for Storage* statements in constants/statics

6 years agoClarify description of raw_identifiers feature flag.
Lymia Aluysia [Thu, 22 Mar 2018 15:35:49 +0000 (10:35 -0500)]
Clarify description of raw_identifiers feature flag.

6 years agoClean up raw identifier handling when recovering tokens from AST.
Lymia Aluysia [Thu, 22 Mar 2018 15:34:51 +0000 (10:34 -0500)]
Clean up raw identifier handling when recovering tokens from AST.

6 years agoRollup merge of #49038 - canndrew:replace-infallible-with-never, r=SimonSapin
kennytm [Thu, 22 Mar 2018 15:22:38 +0000 (23:22 +0800)]
Rollup merge of #49038 - canndrew:replace-infallible-with-never, r=SimonSapin

replace `convert::Infallible` with `!`

6 years agoRollup merge of #49105 - SimonSapin:from_utf8_lossy_example, r=alexcrichton
kennytm [Thu, 22 Mar 2018 15:20:11 +0000 (23:20 +0800)]
Rollup merge of #49105 - SimonSapin:from_utf8_lossy_example, r=alexcrichton

Add an example of lossy decoding to str::Utf8Error docs

CC https://github.com/rust-lang/rust/issues/33906

6 years agoRevert "Temporarily disable dist-ing RLS, Rustfmt and Clippy."
kennytm [Thu, 22 Mar 2018 09:52:57 +0000 (17:52 +0800)]
Revert "Temporarily disable dist-ing RLS, Rustfmt and Clippy."

This reverts commit 9f792e199bc53a75afdad72547a151a0bc86ec5d.

6 years agoRollup merge of #49244 - varkor:type_dependent_defs_ExprMethodCall, r=estebank
kennytm [Thu, 22 Mar 2018 09:51:41 +0000 (17:51 +0800)]
Rollup merge of #49244 - varkor:type_dependent_defs_ExprMethodCall, r=estebank

Fix type_dependent_defs ICE on method calls

Fixes #49241.

6 years agoRollup merge of #49242 - Mrowqa:typaram-attrs, r=petrochenkov
kennytm [Thu, 22 Mar 2018 09:51:40 +0000 (17:51 +0800)]
Rollup merge of #49242 - Mrowqa:typaram-attrs, r=petrochenkov

Pass attributes to hir::TyParam

Required by https://github.com/servo/servo/pull/20264
Discussed here: https://gitter.im/servo/servo?at=5aafdcd1012ff2bf681da97a

CC @nikomatsakis

6 years agoRollup merge of #49234 - kennytm:revert-fix-dpl-788, r=alexcrichton
kennytm [Thu, 22 Mar 2018 09:51:38 +0000 (17:51 +0800)]
Rollup merge of #49234 - kennytm:revert-fix-dpl-788, r=alexcrichton

dpl 1.9.5 has been released, revert #49217.

dpl 1.9.5 has been released which includes travis-ci/dpl#789, so we could move back to the standard Travis settings before that `s3-eager-autoload` branch is removed.

6 years agoRollup merge of #49231 - gnzlbg:fix_vec_fminmax, r=rkruppe
kennytm [Thu, 22 Mar 2018 09:51:37 +0000 (17:51 +0800)]
Rollup merge of #49231 - gnzlbg:fix_vec_fminmax, r=rkruppe

fix vector fmin/fmax non-fast/fast intrinsics NaN handling

This bugs shows up in release mode tests of `stdsimd`: https://github.com/rust-lang-nursery/stdsimd/pull/391 . The intrinsics are thoroughly tested there for roundoff errors, NaN, and overflow behavior.

The problem was that the non-fast intrinsics where specifying `NoNaNs == true`, which meant that they don't support NaNs. This is incorrect, the non-fast intrinsics should handle NaNs properly.

Also, the "fast" intrinsics where specifying `NoNaNs == false` which meant that they support NaNs and then fast-math, which probably disables this support. This was not intended either.

I've added a comment specifying what the boolean flags do.

6 years agoRollup merge of #49225 - QuietMisdreavus:all-the-features-all-the-time, r=alexcrichton
kennytm [Thu, 22 Mar 2018 09:51:36 +0000 (17:51 +0800)]
Rollup merge of #49225 - QuietMisdreavus:all-the-features-all-the-time, r=alexcrichton

whitelist every target feature for rustdoc

When https://github.com/rust-lang-nursery/stdsimd/pull/367 was attempted to be upstreamed, it failed to document on non-x86 targets because it made every intrinsic visible, even the ones on foreign arches. This change makes it so that whenever rustdoc asks for the target feature whitelist, it gets a list of every feature known to every arch in `rustc_trans/llvm_util.rs`.

Before pushing, i temporarily updated the `stdsimd` submodule to include the `doc(cfg)` change, generated documentation for `aarch64-unknown-linux-gnu`, and it completed without a problem. The generated `core::arch` docs contained complete submodules for all main arches.

6 years agoRollup merge of #49216 - bjorn3:patch-1, r=estebank
kennytm [Thu, 22 Mar 2018 09:51:35 +0000 (17:51 +0800)]
Rollup merge of #49216 - bjorn3:patch-1, r=estebank

Don't check interpret_interner when accessing a static to fix miri mutable statics

Mutable statics don't work in my PR to fix the standalone [miri](https://github.com/solson/miri), as init_static didn't get called when the interpret_interner already contained a entry for the static, which is always immutable.

cc solson/miri#364

6 years agoRollup merge of #49211 - varkor:chalk-lowering-Implemented-From-Env, r=nikomatsakis
kennytm [Thu, 22 Mar 2018 09:51:34 +0000 (17:51 +0800)]
Rollup merge of #49211 - varkor:chalk-lowering-Implemented-From-Env, r=nikomatsakis

Implement Chalk lowering rule "Implemented-From-Env"

This extends the Chalk lowering pass with the "Implemented-From-Env" rule for generating program clauses from a trait definition as part of #49177.

r? @nikomatsakis

6 years agoRollup merge of #49209 - Zoxc:run-make-last, r=Mark-Simulacrum
kennytm [Thu, 22 Mar 2018 09:51:32 +0000 (17:51 +0800)]
Rollup merge of #49209 - Zoxc:run-make-last, r=Mark-Simulacrum

Run the `run-make` tests last, so more tests run on Windows when `make` is unavailable

Just https://github.com/rust-lang/rust/pull/47996 again.

r? @Mark-Simulacrum

6 years agoRollup merge of #49189 - GuillaumeGomez:fix-implied-shortcut-links, r=QuietMisdreavus
kennytm [Thu, 22 Mar 2018 09:51:30 +0000 (17:51 +0800)]
Rollup merge of #49189 - GuillaumeGomez:fix-implied-shortcut-links, r=QuietMisdreavus

Fix automatic urls with backticks

Fixes #49164.

r? @QuietMisdreavus

6 years agoRollup merge of #49188 - memoryleak47:macro_use_doctest, r=QuietMisdreavus
kennytm [Thu, 22 Mar 2018 09:51:29 +0000 (17:51 +0800)]
Rollup merge of #49188 - memoryleak47:macro_use_doctest, r=QuietMisdreavus

Put `#[macro_use] extern crate <crate>` before fn main() in doctests

Closes #49174.

6 years agoRollup merge of #49158 - varkor:compiletest-triples, r=rkruppe
kennytm [Thu, 22 Mar 2018 09:51:27 +0000 (17:51 +0800)]
Rollup merge of #49158 - varkor:compiletest-triples, r=rkruppe

Make compiletest do exact matching on triples

This avoids the issues of the previous substring matching, ensuring `ARCH_TABLE` and `OS_TABLE` will no longer contain redundant entries. Fixes #48893.

r? @rkruppe

6 years agoRollup merge of #49140 - semarie:rustdoc-test-path, r=alexcrichton
kennytm [Thu, 22 Mar 2018 09:51:26 +0000 (17:51 +0800)]
Rollup merge of #49140 - semarie:rustdoc-test-path, r=alexcrichton

Allow test target to pass without installing

explicitly pass -L target-lib to rustdoc

on OpenBSD, without it, it fails on several tests with:
```
error[E0463]: can't find crate for `std`
```

6 years agoRollup merge of #49117 - nivkner:fixme_fixup3, r=estebank
kennytm [Thu, 22 Mar 2018 09:51:25 +0000 (17:51 +0800)]
Rollup merge of #49117 - nivkner:fixme_fixup3, r=estebank

address some FIXME whose associated issues were marked as closed

part of #44366

6 years agoRollup merge of #49109 - SimonSapin:deprecate-asciiext, r=alexcrichton
kennytm [Thu, 22 Mar 2018 09:51:24 +0000 (17:51 +0800)]
Rollup merge of #49109 - SimonSapin:deprecate-asciiext, r=alexcrichton

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

6 years agoRollup merge of #49093 - Zoxc:speedup, r=aidanhs
kennytm [Thu, 22 Mar 2018 09:51:22 +0000 (17:51 +0800)]
Rollup merge of #49093 - Zoxc:speedup, r=aidanhs

Update submodules in parallel

6 years agoRollup merge of #49069 - wesleywiser:incr_soa, r=michaelwoerister
kennytm [Thu, 22 Mar 2018 09:51:21 +0000 (17:51 +0800)]
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

6 years agoRollup merge of #49029 - GuillaumeGomez:atomic-docs, r=QuietMisdreavus
kennytm [Thu, 22 Mar 2018 09:51:20 +0000 (17:51 +0800)]
Rollup merge of #49029 - GuillaumeGomez:atomic-docs, r=QuietMisdreavus

Make Atomic doc examples specific to each type

Fixes #49018.

r? @QuietMisdreavus

6 years agoRollup merge of #48939 - wesleywiser:incr_query_wf_checking, r=michaelwoerister
kennytm [Thu, 22 Mar 2018 09:51:19 +0000 (17:51 +0800)]
Rollup merge of #48939 - wesleywiser:incr_query_wf_checking, r=michaelwoerister

Querify WF-checking so it can be cached

r? @michaelwoerister

6 years agoRemove slow HashSet during miri stack frame creation
Oliver Schneider [Thu, 22 Mar 2018 14:05:12 +0000 (15:05 +0100)]
Remove slow HashSet during miri stack frame creation

6 years agoFix DefKey lookup for proc-macro crates.
Michael Woerister [Thu, 22 Mar 2018 13:38:37 +0000 (14:38 +0100)]
Fix DefKey lookup for proc-macro crates.

6 years agoUse GNU version of fgrep/egrep tool if available
Sébastien Marie [Thu, 22 Mar 2018 10:27:59 +0000 (11:27 +0100)]
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).

6 years agoFix the conversion between bit representations and i128 representations
Oliver Schneider [Thu, 22 Mar 2018 11:38:40 +0000 (12:38 +0100)]
Fix the conversion between bit representations and i128 representations

6 years agoRollup merge of #48759 - QuietMisdreavus:simd-feature-docs, r=GuillaumeGomez
kennytm [Thu, 22 Mar 2018 09:51:16 +0000 (17:51 +0800)]
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)

6 years agoRollup merge of #48596 - GuillaumeGomez:invalid-code-block-start, r=QuietMisdreavus
kennytm [Thu, 22 Mar 2018 09:51:15 +0000 (17:51 +0800)]
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

6 years agoRollup merge of #48374 - Aaronepower:master, r=Mark-Simulacrum
kennytm [Thu, 22 Mar 2018 09:51:13 +0000 (17:51 +0800)]
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)

6 years agoAuto merge of #49094 - alexcrichton:print-step-duration, r=kennytm
bors [Thu, 22 Mar 2018 09:46:06 +0000 (09:46 +0000)]
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

6 years agodocument format_args! - fix trailing whitespace
Mazdak Farrokhzad [Thu, 22 Mar 2018 09:06:17 +0000 (10:06 +0100)]
document format_args! - fix trailing whitespace

6 years agoProduce nice array lengths on a best effort basis
Oliver Schneider [Thu, 22 Mar 2018 08:56:04 +0000 (09:56 +0100)]
Produce nice array lengths on a best effort basis

6 years agoAuto merge of #49041 - nikomatsakis:issue-46541-impl-trait-hidden-lifetimes, r=cramertj
bors [Thu, 22 Mar 2018 06:56:16 +0000 (06:56 +0000)]
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

6 years agotermination_trait: Make error message more helpful
Tyler Mandry [Thu, 22 Mar 2018 04:28:48 +0000 (23:28 -0500)]
termination_trait: Make error message more helpful

6 years agoAuto merge of #49246 - kennytm:download-gcc-stuff-from-https, r=alexcrichton
bors [Thu, 22 Mar 2018 01:54:51 +0000 (01:54 +0000)]
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
```

6 years agoTemporarily disable dist-ing RLS, Rustfmt and Clippy.
kennytm [Thu, 22 Mar 2018 01:02:51 +0000 (09:02 +0800)]
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.

6 years agoFixed clockwise/counter-clockwise in atan2 documentation in f32 and f64
Maxwell Borden [Thu, 22 Mar 2018 01:11:57 +0000 (18:11 -0700)]
Fixed clockwise/counter-clockwise in atan2 documentation in f32 and f64
and included that it returns radians

6 years agoadd target_feature items to doc_cfg rustdoc test
QuietMisdreavus [Thu, 22 Mar 2018 00:57:10 +0000 (19:57 -0500)]
add target_feature items to doc_cfg rustdoc test

6 years agoalso fix the Fixed code
Niko Matsakis [Wed, 21 Mar 2018 23:23:29 +0000 (19:23 -0400)]
also fix the Fixed code

6 years agoWIP do not use in-band lifetimes
Niko Matsakis [Wed, 21 Mar 2018 23:22:41 +0000 (19:22 -0400)]
WIP do not use in-band lifetimes

6 years agoNow it compiles
Mrowqa [Wed, 21 Mar 2018 22:11:27 +0000 (23:11 +0100)]
Now it compiles

6 years agoHandle redirects correctly.
kennytm [Wed, 21 Mar 2018 20:07:29 +0000 (04:07 +0800)]
Handle redirects correctly.

6 years agoDownload the GCC artifacts from the HTTP server instead of FTP server.
kennytm [Wed, 21 Mar 2018 18:29:01 +0000 (02:29 +0800)]
Download the GCC artifacts from the HTTP server instead of FTP server.

The former seems much more stable, in case the cache becomes invalidated.

6 years agoMoved test to ui
varkor [Wed, 21 Mar 2018 21:00:38 +0000 (21:00 +0000)]
Moved test to ui

6 years agoupdate stdsimd
QuietMisdreavus [Wed, 21 Mar 2018 20:43:06 +0000 (15:43 -0500)]
update stdsimd

6 years agoWIP tweak example to include feature gate
Niko Matsakis [Wed, 21 Mar 2018 20:31:20 +0000 (16:31 -0400)]
WIP tweak example to include feature gate

6 years agoConfigure the dist-x86_64-linux builder to produce compiler documentation
David Wood [Tue, 20 Mar 2018 02:07:16 +0000 (02:07 +0000)]
Configure the dist-x86_64-linux builder to produce compiler documentation

6 years agoAdd support to rustbuild for a 'rustc docs' component tarball
David Wood [Tue, 20 Mar 2018 02:06:38 +0000 (02:06 +0000)]
Add support to rustbuild for a 'rustc docs' component tarball

6 years agotermination_trait: Put examples in error help, not label
Tyler Mandry [Wed, 21 Mar 2018 18:32:46 +0000 (13:32 -0500)]
termination_trait: Put examples in error help, not label

6 years agoFix type_dependent_defs ICE on method calls
varkor [Wed, 21 Mar 2018 18:01:51 +0000 (18:01 +0000)]
Fix type_dependent_defs ICE on method calls

6 years agoDeprecate the AsciiExt trait in favor of inherent methods
Simon Sapin [Sat, 17 Mar 2018 11:15:24 +0000 (12:15 +0100)]
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

6 years agoreview comments
QuietMisdreavus [Wed, 21 Mar 2018 14:52:18 +0000 (09:52 -0500)]
review comments

6 years agoCargo fmt libtest
Seiichi Uchida [Wed, 21 Mar 2018 14:12:24 +0000 (23:12 +0900)]
Cargo fmt libtest

6 years agoRevert "Apply a fix to travis-ci/dpl#788 manually until dpl 1.9.5 is released."
kennytm [Wed, 21 Mar 2018 14:03:24 +0000 (22:03 +0800)]
Revert "Apply a fix to travis-ci/dpl#788 manually until dpl 1.9.5 is released."

This reverts commit 20e65f11f3bb0538c5676425e74b593676bd0f12.

6 years agoFix test error
bjorn3 [Wed, 21 Mar 2018 13:34:46 +0000 (14:34 +0100)]
Fix test error

6 years agoWIP fix mir-opt-end-region-8
Niko Matsakis [Wed, 21 Mar 2018 13:24:32 +0000 (09:24 -0400)]
WIP fix mir-opt-end-region-8