]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoDisable solaris target since toolchain no longer builds
Alex Crichton [Tue, 21 May 2019 22:34:56 +0000 (15:34 -0700)]
Disable solaris target since toolchain no longer builds

5 years agoUse xcode 9.3 on all osx builders
Alex Crichton [Tue, 21 May 2019 22:14:20 +0000 (15:14 -0700)]
Use xcode 9.3 on all osx builders

5 years agoExecute everything!
Alex Crichton [Tue, 21 May 2019 20:32:53 +0000 (13:32 -0700)]
Execute everything!

5 years agoci: switch to xcode 9.3 on azure
Pietro Albini [Tue, 21 May 2019 19:24:34 +0000 (21:24 +0200)]
ci: switch to xcode 9.3 on azure

5 years agoUse new-style s3 urls in docker download script
Alex Crichton [Tue, 21 May 2019 19:20:50 +0000 (12:20 -0700)]
Use new-style s3 urls in docker download script

5 years agoGo back to fewer builders to test on `try`
Alex Crichton [Tue, 21 May 2019 19:09:44 +0000 (12:09 -0700)]
Go back to fewer builders to test on `try`

5 years agoPlace timeouts at the job level
Alex Crichton [Tue, 21 May 2019 19:06:47 +0000 (12:06 -0700)]
Place timeouts at the job level

5 years agoOnly run Window script on Windows
Alex Crichton [Tue, 21 May 2019 18:01:39 +0000 (11:01 -0700)]
Only run Window script on Windows

5 years agoTypos
Alex Crichton [Tue, 21 May 2019 17:46:41 +0000 (10:46 -0700)]
Typos

5 years agoRun a full build on `try` temporarily
Alex Crichton [Tue, 21 May 2019 17:45:13 +0000 (10:45 -0700)]
Run a full build on `try` temporarily

5 years agoRe-enable hack for Windows builds to see if it works
Alex Crichton [Tue, 21 May 2019 17:39:37 +0000 (10:39 -0700)]
Re-enable hack for Windows builds to see if it works

5 years agoUpdate upload logic to upload right directory
Alex Crichton [Tue, 21 May 2019 17:38:05 +0000 (10:38 -0700)]
Update upload logic to upload right directory

5 years agoAttempt to enable IPv6 for Linux
Alex Crichton [Tue, 21 May 2019 17:33:19 +0000 (10:33 -0700)]
Attempt to enable IPv6 for Linux

5 years agoFix typo in key configuration
Alex Crichton [Tue, 21 May 2019 17:28:56 +0000 (10:28 -0700)]
Fix typo in key configuration

5 years agoci: increase timeout, take 2
Pietro Albini [Tue, 21 May 2019 10:05:57 +0000 (12:05 +0200)]
ci: increase timeout, take 2

5 years agoci: fix tidy
Pietro Albini [Tue, 21 May 2019 08:51:37 +0000 (10:51 +0200)]
ci: fix tidy

5 years agoci: temp increase of the timeout to 10 hours
Pietro Albini [Tue, 21 May 2019 08:27:41 +0000 (10:27 +0200)]
ci: temp increase of the timeout to 10 hours

Let's see how long a full build takes.

5 years agoMerge pull request #2 from alexcrichton/azure-pipelines
Pietro Albini [Tue, 21 May 2019 08:20:36 +0000 (10:20 +0200)]
Merge pull request #2 from alexcrichton/azure-pipelines

Some review feedback and other misc tweaks

5 years agoFinalize AWS install
Alex Crichton [Mon, 20 May 2019 21:37:24 +0000 (14:37 -0700)]
Finalize AWS install

5 years agoOnly execute conditional steps on success
Alex Crichton [Mon, 20 May 2019 21:21:12 +0000 (14:21 -0700)]
Only execute conditional steps on success

Make sure `succeeded()` is in all the conditionals

5 years agoManually install AWS CLI
Alex Crichton [Mon, 20 May 2019 20:16:16 +0000 (13:16 -0700)]
Manually install AWS CLI

5 years agoCheck out rustfmt submodule through tarballs
Alex Crichton [Mon, 20 May 2019 19:58:53 +0000 (12:58 -0700)]
Check out rustfmt submodule through tarballs

This takes 30+ seconds to check out on Windows, so let's speed it up
through a tarball like we do other big git repositories.

5 years agoMake sure sccache not present doesn't kill the build
Alex Crichton [Mon, 20 May 2019 19:55:01 +0000 (12:55 -0700)]
Make sure sccache not present doesn't kill the build

5 years agoFix a typo in the run script
Alex Crichton [Mon, 20 May 2019 19:46:10 +0000 (12:46 -0700)]
Fix a typo in the run script

5 years agoExecute `docker/run.sh` on Linux
Alex Crichton [Mon, 20 May 2019 19:39:25 +0000 (12:39 -0700)]
Execute `docker/run.sh` on Linux

5 years agoFix a typo in clang install
Alex Crichton [Mon, 20 May 2019 19:38:17 +0000 (12:38 -0700)]
Fix a typo in clang install

5 years agoJob name config works for all platforms
Alex Crichton [Mon, 20 May 2019 19:37:18 +0000 (12:37 -0700)]
Job name config works for all platforms

5 years agoRemove a now stray file
Alex Crichton [Mon, 20 May 2019 19:35:21 +0000 (12:35 -0700)]
Remove a now stray file

5 years agoConfigure a few more builders on `try` temporarily
Alex Crichton [Mon, 20 May 2019 19:29:30 +0000 (12:29 -0700)]
Configure a few more builders on `try` temporarily

Make sure there's one dist and one test builder for each of the three
main platforms

5 years agoRefactor azure pipelines configuration
Alex Crichton [Mon, 20 May 2019 19:21:14 +0000 (12:21 -0700)]
Refactor azure pipelines configuration

This commit is intended to go through and review/refactor the azure
pipelines configuration we have. The major changes are:

* The separate `{windows,macos,linux}.yml` files are now all merged into
  one `run.yml`. This allows a shared "master flow" for all platforms
  with divergence only where necessary.

* Some install steps have been separated as `install-*.yml` scripts,
  where each script internally matches on the appropriate OS and then
  delegates accordingly.

* Some various bits and pieces of cruft have been removed which were
  artifacts of Travis's setup or similar.

5 years agoDon't bother with `stamp` utility
Alex Crichton [Mon, 20 May 2019 18:27:18 +0000 (11:27 -0700)]
Don't bother with `stamp` utility

That was just used because Travis doesn't have time stamps on all log
lines, but Azure does, so no need to add our own.

5 years agoci: deploy artifacts on azure
Pietro Albini [Mon, 20 May 2019 08:07:17 +0000 (10:07 +0200)]
ci: deploy artifacts on azure

5 years agoci: add an image for dist-x86_64-linux try on azure
Pietro Albini [Mon, 20 May 2019 07:38:11 +0000 (09:38 +0200)]
ci: add an image for dist-x86_64-linux try on azure

5 years agoci: use ##vso[task.prependpath] on azure
Pietro Albini [Mon, 20 May 2019 07:22:47 +0000 (09:22 +0200)]
ci: use ##vso[task.prependpath] on azure

5 years agoci: remove yet another outdated comment
Pietro Albini [Mon, 20 May 2019 07:21:26 +0000 (09:21 +0200)]
ci: remove yet another outdated comment

5 years agoci: remove outdated comment
Pietro Albini [Wed, 15 May 2019 17:38:26 +0000 (19:38 +0200)]
ci: remove outdated comment

5 years agoci: remove stray echo
Pietro Albini [Wed, 15 May 2019 17:37:02 +0000 (19:37 +0200)]
ci: remove stray echo

5 years agoci: update azure variable groups
Pietro Albini [Wed, 15 May 2019 12:44:25 +0000 (14:44 +0200)]
ci: update azure variable groups

5 years agoUpdate src/bootstrap/util.rs
Pietro Albini [Mon, 13 May 2019 13:19:29 +0000 (15:19 +0200)]
Update src/bootstrap/util.rs

Co-Authored-By: Jake Goulding <shepmaster@mac.com>
5 years agoci: disable builders not useful during the evaluation
Pietro Albini [Mon, 13 May 2019 08:13:23 +0000 (10:13 +0200)]
ci: disable builders not useful during the evaluation

5 years agoci: remove links to johnterickson repo
Pietro Albini [Mon, 13 May 2019 08:09:51 +0000 (10:09 +0200)]
ci: remove links to johnterickson repo

5 years agoci: remove trailing whitespaces from azure config
Pietro Albini [Mon, 13 May 2019 07:55:12 +0000 (09:55 +0200)]
ci: remove trailing whitespaces from azure config

5 years agoci: disable toolstate commits on azure
Pietro Albini [Sun, 12 May 2019 16:19:10 +0000 (18:19 +0200)]
ci: disable toolstate commits on azure

5 years agoci: remove test configuration
Pietro Albini [Sun, 12 May 2019 16:17:42 +0000 (18:17 +0200)]
ci: remove test configuration

5 years agoci: re-enable fds-are-cloexec test on macOS
Pietro Albini [Sun, 12 May 2019 16:16:42 +0000 (18:16 +0200)]
ci: re-enable fds-are-cloexec test on macOS

5 years agoci: merge the i1686-gnu images
Pietro Albini [Sun, 12 May 2019 16:00:38 +0000 (18:00 +0200)]
ci: merge the i1686-gnu images

5 years agoci: remove fanout from the azure pipelines config
Pietro Albini [Sun, 12 May 2019 15:55:48 +0000 (17:55 +0200)]
ci: remove fanout from the azure pipelines config

5 years agoci: still use aws for caches
Pietro Albini [Fri, 10 May 2019 08:17:52 +0000 (10:17 +0200)]
ci: still use aws for caches

5 years agoci: remove travis ipv6 docker hack on azure
Pietro Albini [Fri, 10 May 2019 08:04:34 +0000 (10:04 +0200)]
ci: remove travis ipv6 docker hack on azure

5 years agoci: reduce all azure timeouts to 3 hours
Pietro Albini [Fri, 10 May 2019 07:56:46 +0000 (09:56 +0200)]
ci: reduce all azure timeouts to 3 hours

As the infra team we decided to have an hard timeout of 3 hours on all
the jobs: while this sometimes causes spurious timeout errors it's a
great limit to prevent CI time to grow even more.

5 years agoDisable 32-bit OSX
John Erickson [Mon, 6 May 2019 16:53:20 +0000 (09:53 -0700)]
Disable 32-bit OSX

5 years agoAdd Azure Pipelines
John Erickson [Mon, 6 May 2019 18:15:52 +0000 (11:15 -0700)]
Add Azure Pipelines

5 years agoAuto merge of #60451 - rasendubi:binaryheap-min-heap, r=scottmcm
bors [Fri, 10 May 2019 04:10:36 +0000 (04:10 +0000)]
Auto merge of #60451 - rasendubi:binaryheap-min-heap, r=scottmcm

BinaryHeap: add min-heap example

Fixes #58174.

5 years agoAuto merge of #60683 - Centril:rollup-p05qh5d, r=Centril
bors [Fri, 10 May 2019 00:51:14 +0000 (00:51 +0000)]
Auto merge of #60683 - Centril:rollup-p05qh5d, r=Centril

Rollup of 8 pull requests

Successful merges:

 - #59348 (Clean up and add tests for slice drop shims)
 - #60188 (Identify when a stmt could have been parsed as an expr)
 - #60234 (std: Derive `Default` for `io::Cursor`)
 - #60618 (Comment ext::tt::transcribe)
 - #60648 (Skip codegen for one UI test with long file path)
 - #60671 (remove unneeded `extern crate`s from build tools)
 - #60675 (Remove the old await! macro)
 - #60676 (Fix async desugaring providing wrong input to procedural macros.)

Failed merges:

r? @ghost

5 years agoRollup merge of #60676 - davidtwco:issue-60674, r=cramertj
Mazdak Farrokhzad [Thu, 9 May 2019 21:56:18 +0000 (23:56 +0200)]
Rollup merge of #60676 - davidtwco:issue-60674, r=cramertj

Fix async desugaring providing wrong input to procedural macros.

Fixes #60674.

This PR fixes a minor oversight introduced by #60535 where unused `mut` binding modes were removed from the arguments to an `async fn` (as they were added to the statement that we insert into the closure body). However, this meant that the input to procedural macros was incorrect. This removes that and instead fixes the `unused_mut` error that it avoided.

r? @cramertj
cc @taiki-e

5 years agoRollup merge of #60675 - cramertj:no-await-macro, r=nikomatsakis,Centril
Mazdak Farrokhzad [Thu, 9 May 2019 21:56:17 +0000 (23:56 +0200)]
Rollup merge of #60675 - cramertj:no-await-macro, r=nikomatsakis,Centril

Remove the old await! macro

This doesn't work anymore, and its continued presence is cause for confusion. `yield` can no longer be used to return `Pending` from an `async` body.

cc https://github.com/rust-lang/rust/issues/60660
cc @taiki-e
cc https://github.com/tokio-rs/tokio/pull/1080

5 years agoRollup merge of #60671 - euclio:extern-crate, r=Centril
Mazdak Farrokhzad [Thu, 9 May 2019 21:56:16 +0000 (23:56 +0200)]
Rollup merge of #60671 - euclio:extern-crate, r=Centril

remove unneeded `extern crate`s from build tools

5 years agoRollup merge of #60648 - petrochenkov:shorten2, r=Dylan-DPC
Mazdak Farrokhzad [Thu, 9 May 2019 21:56:14 +0000 (23:56 +0200)]
Rollup merge of #60648 - petrochenkov:shorten2, r=Dylan-DPC

Skip codegen for one UI test with long file path

The path to this test is so long that object files produced by it hit some path length limit on Windows and linker cannot find them.
The workaround here is to skip codegen and avoid producing object files, this test doesn't need them anyway.

5 years agoRollup merge of #60618 - mark-i-m:transcribe, r=petrochenkov
Mazdak Farrokhzad [Thu, 9 May 2019 21:56:13 +0000 (23:56 +0200)]
Rollup merge of #60618 - mark-i-m:transcribe, r=petrochenkov

Comment ext::tt::transcribe

Also did a bit of minor cleanup (remove unidiomatic use of `Add` and an unneeded `clone`). No functionality changes.

r? @petrochenkov

5 years agoRollup merge of #60234 - tesaguri:cursor-default, r=Amanieu
Mazdak Farrokhzad [Thu, 9 May 2019 21:56:11 +0000 (23:56 +0200)]
Rollup merge of #60234 - tesaguri:cursor-default, r=Amanieu

std: Derive `Default` for `io::Cursor`

I think this change is quite obvious, so made it insta-stable, but I won't insist on that.

5 years agoRollup merge of #60188 - estebank:recover-block, r=varkor
Mazdak Farrokhzad [Thu, 9 May 2019 21:56:09 +0000 (23:56 +0200)]
Rollup merge of #60188 - estebank:recover-block, r=varkor

Identify when a stmt could have been parsed as an expr

There are some expressions that can be parsed as a statement without
a trailing semicolon depending on the context, which can lead to
confusing errors due to the same looking code being accepted in some
places and not others. Identify these cases and suggest enclosing in
parenthesis making the parse non-ambiguous without changing the
accepted grammar.

Fix #54186, cc #54482, fix #59975, fix #47287.

5 years agoRollup merge of #59348 - matthewjasper:cleanup-drop-shims, r=arielb1
Mazdak Farrokhzad [Thu, 9 May 2019 21:56:08 +0000 (23:56 +0200)]
Rollup merge of #59348 - matthewjasper:cleanup-drop-shims, r=arielb1

Clean up and add tests for slice drop shims

Adds a test for the MIR generated by `real_drop_in_place::<[T]>`. Also slightly reduces the number of statements and locals used in the shim.

r? @RalfJung

5 years agoAuto merge of #60665 - pietroalbini:upgrade-ci-images, r=alexcrichton
bors [Thu, 9 May 2019 21:50:46 +0000 (21:50 +0000)]
Auto merge of #60665 - pietroalbini:upgrade-ci-images, r=alexcrichton

Upgrade non-LTS Ubuntu images in CI

This PR bumps `dist-various-2` to 18.04 LTS and both `x86_64-gnu` and `x86_64-gnu-debug` to 19.04.

Another change is the switch to [rust-lang/mirror-google-fuchsia-zircon](https://github.com/rust-lang/mirror-google-fuchsia-zircon) as the Zircon repository, used during Fuchsia tests: the original repository ([fuchsia.googlesource.com/zircon](https://fuchsia.googlesource.com/zircon)) is now behind a login wall and it doesn't contain anything at all.

r? @alexcrichton
cc @cramertj -- what's happening on the Fuchsia side?

5 years agoAuto merge of #60672 - Centril:rollup-fhcx463, r=Centril
bors [Thu, 9 May 2019 18:43:00 +0000 (18:43 +0000)]
Auto merge of #60672 - Centril:rollup-fhcx463, r=Centril

Rollup of 5 pull requests

Successful merges:

 - #60601 (Add a `cast` method to raw pointers.)
 - #60638 (pin: make the to-module link more visible)
 - #60647 (cleanup: Remove `DefIndexAddressSpace`)
 - #60656 (Inline some Cursor calls for slices)
 - #60657 (Stabilize and re-export core::array in std)

Failed merges:

r? @ghost

5 years agoAdd FIXME about `construct_async_arguments`.
David Wood [Thu, 9 May 2019 18:14:39 +0000 (19:14 +0100)]
Add FIXME about `construct_async_arguments`.

This is unrelated to the rest of this PR but it made sense to add a
FIXME explaining that the function shouldn't really be in the parser.

5 years agoDo not modify mutability of simple bindings.
David Wood [Thu, 9 May 2019 18:10:27 +0000 (19:10 +0100)]
Do not modify mutability of simple bindings.

This commit removes the modification of the mutability of simple
bindings. While the mutability isn't used, it is important that it is
kept so that the input to procedural macros matches what the user wrote.
This commit also modifies the span of the binding mode so that it is
considered a compiler desugaring and won't be linted against for being
unused..

5 years agoRemove the old await! macro
Taylor Cramer [Thu, 9 May 2019 17:49:39 +0000 (10:49 -0700)]
Remove the old await! macro

This doesn't work anymore, and its continued
presence is cause for confusion.

5 years agoAdd regression test for #60674.
David Wood [Thu, 9 May 2019 17:13:21 +0000 (18:13 +0100)]
Add regression test for #60674.

This commit adds a regression test (with current broken behaviour) that
tests that `mut` patterns are not lost when provided as input to a proc macro.

5 years agoRollup merge of #60657 - JohnTitor:stabilize-array, r=SimonSapin
Mazdak Farrokhzad [Thu, 9 May 2019 16:34:58 +0000 (18:34 +0200)]
Rollup merge of #60657 - JohnTitor:stabilize-array, r=SimonSapin

Stabilize and re-export core::array in std

Fixes #60014

5 years agoRollup merge of #60656 - petertodd:2019-inline-cursor-over-slice, r=sfackler
Mazdak Farrokhzad [Thu, 9 May 2019 16:34:56 +0000 (18:34 +0200)]
Rollup merge of #60656 - petertodd:2019-inline-cursor-over-slice, r=sfackler

Inline some Cursor calls for slices

(Partially) brings back https://github.com/rust-lang/rust/pull/33921

I've noticed in some serialization code I was writing that writes to slices produce much, much, worse code than you'd expect even with optimizations turned on. For example, you'd expect something like this to be zero cost:

```
use std::io::{self, Cursor, Write};

pub fn serialize((a, b): (u64, u64)) -> [u8;8+8] {
    let mut r = [0u8;16];
    {
        let mut w = Cursor::new(&mut r[..]);

        w.write(&a.to_le_bytes()).unwrap();
        w.write(&b.to_le_bytes()).unwrap();
    }
    r
}
```

...but it compiles down to [dozens of instructions](https://rust.godbolt.org/z/bdwDzb) because the `slice_write()` calls aren't inlined, which in turn means `unwrap()` can't be optimized away, and so on.

To be clear, this pull-req isn't sufficient by itself: if we want to go down that path we also need to add `#[inline]`'s to the default implementations for functions like `write_all()` in the `Write` trait and so on, or implement them separately in the `Cursor` impls. But I figured I'd start a conversation about what tradeoffs we're expecting here.

5 years agoRollup merge of #60647 - petrochenkov:nospace, r=michaelwoerister
Mazdak Farrokhzad [Thu, 9 May 2019 16:34:55 +0000 (18:34 +0200)]
Rollup merge of #60647 - petrochenkov:nospace, r=michaelwoerister

cleanup: Remove `DefIndexAddressSpace`

The scheme with two address spaces for `DefIndex` was needed in the past, but apparently not needed anymore (after removing `DefId`s from locals and `HirId`-ification).

5 years agoRollup merge of #60638 - RalfJung:pin, r=sanxiyn
Mazdak Farrokhzad [Thu, 9 May 2019 16:34:53 +0000 (18:34 +0200)]
Rollup merge of #60638 - RalfJung:pin, r=sanxiyn

pin: make the to-module link more visible

Cc @gnzlbg

5 years agoRollup merge of #60601 - SimonSapin:cast, r=Kimundi
Mazdak Farrokhzad [Thu, 9 May 2019 16:34:51 +0000 (18:34 +0200)]
Rollup merge of #60601 - SimonSapin:cast, r=Kimundi

Add a `cast` method to raw pointers.

This is similar to `NonNull::cast`.

Compared to the `as` operator (which has a wide range of meanings depending on the input and output types), a call to this method:

* Can only go from a raw pointer to a raw pointer
* Cannot change the pointer’s `const`ness

… even when the pointed types are inferred based on context.

5 years agoremove unneeded `extern crate`s from build tools
Andy Russell [Thu, 9 May 2019 16:03:13 +0000 (12:03 -0400)]
remove unneeded `extern crate`s from build tools

5 years agoAuto merge of #60668 - Zoxc:hir-map-vec, r=matthewjasper
bors [Thu, 9 May 2019 12:42:16 +0000 (12:42 +0000)]
Auto merge of #60668 - Zoxc:hir-map-vec, r=matthewjasper

Fix typo

5 years agoFix typo
John Kåre Alsaker [Thu, 9 May 2019 11:56:14 +0000 (13:56 +0200)]
Fix typo

5 years agoci: bump ubuntu 18.10 images to 19.04
Pietro Albini [Thu, 9 May 2019 09:51:01 +0000 (11:51 +0200)]
ci: bump ubuntu 18.10 images to 19.04

5 years agoci: use our own mirror for fuchsia's zircon repository
Pietro Albini [Thu, 9 May 2019 09:32:41 +0000 (11:32 +0200)]
ci: use our own mirror for fuchsia's zircon repository

The canonical repository on fuchsia.googlesource.com is not accessible
anymore, neither for anonymous access nor logged in access. This commit
switches our CI to fetch the repository from our own mirror.

5 years agoci: update dist-various-2 to ubuntu 18.04
Pietro Albini [Thu, 9 May 2019 09:17:03 +0000 (11:17 +0200)]
ci: update dist-various-2 to ubuntu 18.04

5 years agoStabilize and re-export core::array
Yuki OKUSHI [Thu, 9 May 2019 02:58:39 +0000 (11:58 +0900)]
Stabilize and re-export core::array

5 years agoInline some Cursor calls for slices
Peter Todd [Thu, 9 May 2019 02:38:58 +0000 (22:38 -0400)]
Inline some Cursor calls for slices

(Partially) brings back https://github.com/rust-lang/rust/pull/33921

5 years agoAuto merge of #60651 - Centril:rollup-zoamjfk, r=Centril
bors [Wed, 8 May 2019 22:59:23 +0000 (22:59 +0000)]
Auto merge of #60651 - Centril:rollup-zoamjfk, r=Centril

Rollup of 8 pull requests

Successful merges:

 - #59979 (to_xe_bytes for isize and usize returns an array of different size)
 - #60491 (std: Update compiler-builtins crate)
 - #60550 (Add tests for concrete const types)
 - #60572 (Add test for #59972)
 - #60627 (test for #50518)
 - #60634 (Document + Cleanup lang_items.rs)
 - #60641 (Instead of ICEing on incorrect pattern, use delay_span_bug)
 - #60644 (Use `delay_span_bug` for "Failed to unify obligation")

Failed merges:

r? @ghost

5 years agoRollup merge of #60644 - estebank:abolish-ice, r=varkor
Mazdak Farrokhzad [Wed, 8 May 2019 22:58:32 +0000 (00:58 +0200)]
Rollup merge of #60644 - estebank:abolish-ice, r=varkor

Use `delay_span_bug` for "Failed to unify obligation"

Fix #60283.

5 years agoRollup merge of #60641 - estebank:defer-ice, r=oli-obk
Mazdak Farrokhzad [Wed, 8 May 2019 22:58:31 +0000 (00:58 +0200)]
Rollup merge of #60641 - estebank:defer-ice, r=oli-obk

Instead of ICEing on incorrect pattern, use delay_span_bug

Fix #60635.

5 years agoRollup merge of #60634 - Centril:lang-items-docs, r=oli-obk
Mazdak Farrokhzad [Wed, 8 May 2019 22:58:29 +0000 (00:58 +0200)]
Rollup merge of #60634 - Centril:lang-items-docs, r=oli-obk

Document + Cleanup lang_items.rs

Byproduct of work on https://github.com/rust-lang/rust/issues/60607.

r? @oli-obk

5 years agoRollup merge of #60627 - matklad:test, r=estebank
Mazdak Farrokhzad [Wed, 8 May 2019 22:58:28 +0000 (00:58 +0200)]
Rollup merge of #60627 - matklad:test, r=estebank

test for #50518

It was fixed somewhere between 1.28.0 and 1.31.1

closes #50518

r? @estebank

Where's the best place to add this test? I *think* we want "compile-pass" for this test (no need to run a binary, and not running saves us a millisecond of process creation) , but there's no compile-pass anymore.

Should this be UI test with empty stdout, stderr and zero return code?

5 years agoRollup merge of #60572 - tmandry:issue-59972, r=RalfJung,oli-obk
Mazdak Farrokhzad [Wed, 8 May 2019 22:58:26 +0000 (00:58 +0200)]
Rollup merge of #60572 - tmandry:issue-59972, r=RalfJung,oli-obk

Add test for #59972

This PR adds a test for #59972, which was fixed in #59897.

Closes #59972.

r? @eddyb

5 years agoRollup merge of #60550 - skinny121:concrete_const_tests, r=varkor
Mazdak Farrokhzad [Wed, 8 May 2019 22:58:25 +0000 (00:58 +0200)]
Rollup merge of #60550 - skinny121:concrete_const_tests, r=varkor

Add tests for concrete const types

In response to the request for help in https://github.com/rust-lang/rust/issues/44580#issuecomment-488819344, I have added several ui tests around the use of concrete const types, i.e. A<2>.

r? @varkor

5 years agoRollup merge of #60491 - alexcrichton:update-cb, r=nikomatsakis
Mazdak Farrokhzad [Wed, 8 May 2019 22:58:23 +0000 (00:58 +0200)]
Rollup merge of #60491 - alexcrichton:update-cb, r=nikomatsakis

std: Update compiler-builtins crate

Pulls in a fix for ensuring that wasm targets have code in
compiler-builtins for `ldexp` which LLVM can generate references to.

5 years agoRollup merge of #59979 - stepancheg:num-size, r=ehuss
Mazdak Farrokhzad [Wed, 8 May 2019 22:58:22 +0000 (00:58 +0200)]
Rollup merge of #59979 - stepancheg:num-size, r=ehuss

to_xe_bytes for isize and usize returns an array of different size

... on different platforms.

Official rustdoc of
[`usize::to_le_bytes`](https://doc.rust-lang.org/std/primitive.usize.html#method.to_le_bytes)
displays signature

```
pub fn to_ne_bytes(self) -> [u8; 8]
```

which might be misleading: this function returns 4 bytes on 32-bit
systems.

With this commit applied rustdoc for `isize` and `usize` is this:
<img width="740" alt="2019-04-15_0020" src="https://user-images.githubusercontent.com/28969/56100765-9f69b380-5f14-11e9-974c-daa25edaa881.png">

5 years agoSkip codegen for one UI test with long file path
Vadim Petrochenkov [Wed, 8 May 2019 22:06:03 +0000 (01:06 +0300)]
Skip codegen for one UI test with long file path

5 years agocleanup: Remove `DefIndexAddressSpace`
Vadim Petrochenkov [Wed, 8 May 2019 19:07:12 +0000 (22:07 +0300)]
cleanup: Remove `DefIndexAddressSpace`

5 years agoUse `delay_span_bug` for "Failed to unify obligation"
Esteban Küber [Wed, 8 May 2019 18:42:47 +0000 (11:42 -0700)]
Use `delay_span_bug` for "Failed to unify obligation"

5 years agoAuto merge of #60402 - michaelwoerister:update-profiler-rt-build, r=alexcrichton
bors [Wed, 8 May 2019 18:38:14 +0000 (18:38 +0000)]
Auto merge of #60402 - michaelwoerister:update-profiler-rt-build, r=alexcrichton

libprofiler_builtins: Set compilation flags more correctly for C code.

In particular, set `COMPILER_RT_HAS_FCNTL_LCK` and `COMPILER_RT_HAS_ATOMICS` as appropriate. This should get rid of the various runtime warnings when executing instrumented binaries.

The build script is using a heuristic here that hopefully is sufficient for the time being.

r? @alexcrichton

Fixes #59531.

5 years agofix incorrect assert
Mark Mansi [Wed, 8 May 2019 18:34:23 +0000 (13:34 -0500)]
fix incorrect assert

5 years agoInstead of ICEing on incorrect pattern, use delay_span_bug
Esteban Küber [Wed, 8 May 2019 17:23:55 +0000 (10:23 -0700)]
Instead of ICEing on incorrect pattern, use delay_span_bug

5 years agoAuto merge of #60626 - matthiaskrgr:submodule_upd, r=oli-obk
bors [Wed, 8 May 2019 15:28:14 +0000 (15:28 +0000)]
Auto merge of #60626 - matthiaskrgr:submodule_upd, r=oli-obk

submodules: update clippy from fc96aa03 to 341c96af

Fixes clippy toolstate

Fixes https://github.com/rust-lang/rust/issues/60623

Changes:
````
rustup https://github.com/rust-lang/rust/pull/60586
Add test for #771.
Clean up while_loop tests
````

r? @Manishearth

5 years agopin: make the to-module link more visible
Ralf Jung [Wed, 8 May 2019 15:20:43 +0000 (17:20 +0200)]
pin: make the to-module link more visible

5 years agoAppVeyor: Update clang-cl from 7.0.0 to 8.0.0
Michael Woerister [Wed, 8 May 2019 15:05:02 +0000 (17:05 +0200)]
AppVeyor: Update clang-cl from 7.0.0 to 8.0.0

5 years agolibprofiler_builtins: Set compilation flags more correctly for C code.
Michael Woerister [Tue, 30 Apr 2019 08:46:21 +0000 (10:46 +0200)]
libprofiler_builtins: Set compilation flags more correctly for C code.

In particular, set COMPILER_RT_HAS_FCNTL_LCK and COMPILER_RT_HAS_ATOMICS
as appropriate.