Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 12 pull requests #48077

Closed
wants to merge 27 commits into from
Closed

Rollup of 12 pull requests #48077

wants to merge 27 commits into from

Conversation

tinaun and others added 17 commits January 26, 2018 18:52
unlike the other Parse*Error types, ParseCharError didn't have these implemented for whatever reason
Currently if `--out-dir` is set to a non-existent directory, the
compiler will throw unfriendly messages like `error: could not write
output to subdir/example.crate.allocator.rcgu.o: No such file or
directory`, which, while not completely unreadable, isn’t very
user-friendly either. This change creates the directory automatically
if it does not yet exist.
Commit 7ed00ca improved our error reporting by including the target
function in our error messages when there is an argument count mismatch.
A simple example from the UI tests is:

```
error[E0593]: function is expected to take a single 2-tuple as argument, but it takes 0 arguments
  --> $DIR/closure-arg-count.rs:32:53
   |
32 |     let _it = vec![1, 2, 3].into_iter().enumerate().map(foo);
   |                                                     ^^^ expected function that takes a single 2-tuple as argument
...
44 | fn foo() {}
   | -------- takes 0 arguments
```

However, this assumed the target span was always available. This does
not hold true if the target function is in `std` or another crate. A
simple example from rust-lang#48046 is assigning `str::split` to a function type
with a different number of arguments.

Fix by removing all of the labels and suggestions related to the target
span when it's not found.

Fixes rust-lang#48046
…, r=nikomatsakis

Remove unused data structures

Cleanup; as far as I can tell the compiler no longer uses these.
Create a directory for --out-dir if it does not already exist

Currently if `--out-dir` is set to a non-existent directory, the compiler will throw unfriendly messages like `error: could not write output to subdir/example.crate.allocator.rcgu.o: No such file or
directory`, which, while not completely unreadable, isn’t very user-friendly either. This change creates the directory automatically if it does not yet exist.
…lexcrichton

Customizable extended tools

This PR adds `build.tools` option to manage installation of extended rust tools.

By default it doesn't change installation. All tools are built and `rls` and `rustfmt` allowed to fail installation.

If some set of tools chosen only those tools are built and installed without any fails allowed.

It solves some slotting issues with extended build enabled: https://bugs.gentoo.org/show_bug.cgi?id=645498
…-on-target-without-span, r=estebank

Fix ICE for mismatched args on target without span

Commit 7ed00ca improved our error reporting by including the target function in our error messages when there is an argument count mismatch. A simple example from the UI tests is:

```
error[E0593]: function is expected to take a single 2-tuple as argument, but it takes 0 arguments
  --> $DIR/closure-arg-count.rs:32:53
   |
32 |     let _it = vec![1, 2, 3].into_iter().enumerate().map(foo);
   |                                                     ^^^ expected function that takes a single 2-tuple as argument
...
44 | fn foo() {}
   | -------- takes 0 arguments
```

However, this assumed the target span was always available. This does not hold true if the target function is in `std` or another crate. A simple example from rust-lang#48046 is assigning `str::split` to a function type with a different number of arguments.

Fix by omitting all of the labels and suggestions related to the target span when it's not found.

Fixes rust-lang#48046

r? @estebank
…uietMisdreavus

rustdoc: Hide `-> ()` in cross crate inlined Fn* bounds
…Misdreavus

intra-doc-links: bail early for linky things

r? @QuietMisdreavus
@rust-highfive
Copy link
Collaborator

r? @estebank

(rust_highfive has picked a reviewer for you, use r? to override)

@kennytm
Copy link
Member Author

kennytm commented Feb 8, 2018

@bors r+ p=7

@bors
Copy link
Contributor

bors commented Feb 8, 2018

📌 Commit e4fb971 has been approved by kennytm

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Feb 8, 2018
@bors
Copy link
Contributor

bors commented Feb 8, 2018

⌛ Testing commit e4fb971 with merge 4b3e620...

bors added a commit that referenced this pull request Feb 8, 2018
Rollup of 7 pull requests

- Successful merges: #47835, #47854, #48015, #48047, #48051, #48058, #48064
- Failed merges:
alexcrichton and others added 4 commits February 8, 2018 13:38
Unfortunately left out it means that when the `#![feature(proc_macro)]` flag is
in effect it fails to find `rustc_args_required_const` for expansion. This
version, however, is verified to work with stdsimd's requirements!
This commit disallows acquiring a function pointer to functions tagged as
`#[rustc_args_required_const]`. This is intended to be used as future-proofing
for the stdsimd crate to avoid taking a function pointer to any intrinsic which
has a hard requirement that one of the arguments is a constant value.
Right now the ccache setting is only used for LLVM, but this tweaks it to also
be used for build scripts so C++ builds like `librustc_llvm` can be a bit
speedier.
@bors
Copy link
Contributor

bors commented Feb 9, 2018

💔 Test failed - status-appveyor

@kennytm kennytm changed the title Rollup of 7 pull requests Rollup of 12 pull requests Feb 9, 2018
@kennytm
Copy link
Member Author

kennytm commented Feb 9, 2018

@bors r+

Added #47790, #48059, #48078, #48083, #48080

@bors
Copy link
Contributor

bors commented Feb 9, 2018

📌 Commit bb0c206 has been approved by kennytm

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 9, 2018
@bors
Copy link
Contributor

bors commented Feb 9, 2018

⌛ Testing commit bb0c206b01845324e774e84c34ae14deeb2fd236 with merge d0910be8d37c147401d480822ceb25a93f99fe38...

@bors
Copy link
Contributor

bors commented Feb 9, 2018

💔 Test failed - status-travis

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Feb 9, 2018
@kennytm kennytm changed the title Rollup of 12 pull requests Rollup of 11 pull requests Feb 9, 2018
…=QuietMisdreavus Hide theme button under menu in mobile mode and fix top margin issue … Fixes rust-lang#48060.
@kennytm
Copy link
Member Author

kennytm commented Feb 9, 2018

@bors r+

Removed #48083

@bors
Copy link
Contributor

bors commented Feb 9, 2018

📌 Commit 434865d has been approved by kennytm

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 9, 2018
…k-Simulacrum

Update the dlmalloc submodule

A bug was recently fixed in dlmalloc which meant that released memory to the
system accidentally wasn't getting reused, causing programs to be far slower
than they should be!
@kennytm
Copy link
Member Author

kennytm commented Feb 9, 2018

@bors r+

Added #48085

@bors
Copy link
Contributor

bors commented Feb 9, 2018

📌 Commit 4a3394a has been approved by kennytm

@kennytm kennytm changed the title Rollup of 11 pull requests Rollup of 12 pull requests Feb 9, 2018
@bors
Copy link
Contributor

bors commented Feb 9, 2018

⌛ Testing commit 4a3394a with merge 68df9d6...

bors added a commit that referenced this pull request Feb 9, 2018
Rollup of 12 pull requests

- Successful merges: #47835, #47854, #48015, #48047, #48051, #48058, #48064, #47790, #48059, #48078, #48080, #48085
- Failed merges:
@bors
Copy link
Contributor

bors commented Feb 9, 2018

💔 Test failed - status-travis

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Feb 9, 2018
@kennytm
Copy link
Member Author

kennytm commented Feb 9, 2018

3 hour timeout in check x86_64-apple-darwin.

Let's make a new one.

@kennytm kennytm closed this Feb 9, 2018
@Centril Centril added the rollup A PR which is a rollup label Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR which is a rollup S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.