7241 Commits

Author SHA1 Message Date
Eric Huss
080f0b34c4 Restrict registry names to same style as package names. 2018-12-19 20:36:13 -08:00
bors
0d1f1bbeab Auto merge of #6463 - dwijnand:rip-stale-bot, r=alexcrichton
Remove Stale bot's configuration

We couldn't get stale bot to operate as we'd like (poke up N
older-then-X-period tickets a day) and therefore we're tearing it down.

We've chosen to keep the "stale" label, so tickets closed by the bot
may be found with that label.

Closes #6035
2018-12-19 14:45:14 +00:00
bors
2a9f16da7f Auto merge of #6464 - dwijnand:add-labels-to-issue-templates, r=Eh2406
Add labels to issue templates

Make use of https://blog.github.com/changelog/2018-12-05-issue-template-automation-improvements/
2018-12-19 13:02:52 +00:00
Dale Wijnand
d52b3f8faf
Add labels to issue templates
Make use of https://blog.github.com/changelog/2018-12-05-issue-template-automation-improvements/
2018-12-19 12:03:32 +00:00
Dale Wijnand
047f8ab3a2
Remove Stale bot's configuration
We couldn't get stale bot to operate as we'd like (poke up N
older-then-X-period tickets a day) and therefore we're tearing it down.

We've chosen to keep the "stale" label, so tickets closed by the bot
may be found with that label.
2018-12-19 11:48:33 +00:00
bors
451f97ea0e Auto merge of #6459 - ehuss:fix-man-checks, r=alexcrichton
Fix new man page links.

The rustc link checker found some problems:
- The raw generated HTML files were being included when they shouldn't.
  Fixed by moving them out of the mdbook directory.
- The `print.html` file concatenates all the pages together, causing duplicate
  `id`'s.  Fix by giving each page a unique set of IDs.
2018-12-18 20:40:52 +00:00
Eric Huss
4338d34006 Fix new man page links.
The rustc link checker found some problems:
- The raw generated HTML files were being included when they shouldn't.
  Fixed by moving them out of the mdbook directory.
- The `print.html` file concatenates all the pages together, causing duplicate
  `id`'s.  Fix by giving each page a unique set of IDs.
2018-12-18 12:06:58 -08:00
bors
8ffc9606aa Auto merge of #6432 - ehuss:fix-metabuild-json, r=alexcrichton
Fix metabuild compile errors with --message-format=json.

If an error occurs while compiling a metabuild target with `--message-format=json`, it would panic because it was unable to serialize `Target`. This change makes it so that it places a fake "metabuild.rs" string in the `src_path` in this situation.

I'm very unhappy with this solution, but I'm unable to think of something better. Changing `src_path` to an `Option` (or something) would break existing tools (this might break, but maybe not catastrophically?). I tried implementing something that resets the `src_path` to the correct path in the target dir after the workspace is configured, but it felt very brittle – you have to fix up after all dependencies are downloaded, and there's not a good place to ensure that happens correctly. Any alternate ideas?

This adds a `with_json_contains_unordered` to help with tests.
2018-12-18 15:49:51 +00:00
bors
c684d0259a Auto merge of #6456 - ehuss:patch-alt-reg, r=alexcrichton
Support alt-registry names in [patch] table.

Closes #5149
2018-12-18 05:14:47 +00:00
Eric Huss
7eaa1cf70a Support alt-registry names in [patch] table. 2018-12-17 20:50:42 -08:00
Eric Huss
48d56a44cd Update metabuild test to 2018. 2018-12-17 19:58:32 -08:00
Eric Huss
2a0bb65a6f Switch SerializedTarget::src_path to None instead of using fake path. 2018-12-17 19:55:16 -08:00
Eric Huss
9a7fadf6bd Fix metabuild compile errors with --message-format=json.
If an error occurs while compiling a metabuild target with
`--message-format=json`, it would panic because it was unable to serialize
`Target`. This change makes it so that it places a fake "metabuild.rs" string in
the `src_path` in this situation.

I'm very unhappy with this solution, but I'm unable to think of something
better. Changing `src_path` to an `Option` (or something) would break existing
tools. I tried implementing something that resets the `src_path` to the correct
path in the target dir after the workspace is configured, but it felt very
brittle – you have to fix up after all dependencies are downloaded, and there's
not a good way to ensure that happens correctly.

This adds a `with_json_contains_unordered` to help with tests.
2018-12-17 19:55:16 -08:00
bors
9cb9eaedef Auto merge of #6455 - wezm:patch-1, r=dwijnand
Update the rustup URL

Yesterday at the Melbourne Rust meetup I helped someone install Rust on their Mac. They were following the instructions from the cargo book and I was surprised to see `rustup` and all the tools being installed globally in `/usr/local/bin`. Eventually we worked out that the URL in the cargo book was different from the one on the Rust website and on rustup.rs. After using the other URL the install proceeded as expected, installing into the user's home directory. It appears the old link is an old version of rustup/rust-init.

This PR updates the install command to match the Rust home page.
2018-12-17 23:53:39 +00:00
Wesley Moore
41b943a302
Update the rustup URL 2018-12-18 10:41:30 +11:00
bors
bd5b21e997 Auto merge of #6405 - ehuss:new-man, r=alexcrichton
New man pages.

This is a rewrite and update of the man pages. This also adds them to the website documentation. They are now in Asciidoc format to make it easy to output multiple formats and have decent formatting. There is a Makefile with instructions on how to rebuild the man pages.

Closes #5729.
2018-12-17 18:13:06 +00:00
bors
d8ff8ed8b5 Auto merge of #6451 - dwijnand:reify-DepFingerprint, r=alexcrichton
Reify the DepFingerprint type

I'm very slightly concerned I might've incompatibly changed the serialise/deserialise code with respect to existing serialised data, so please double-check my work.
2018-12-17 17:13:53 +00:00
Dale Wijnand
14f0f89b64
Reify the DepFingerprint type 2018-12-17 16:49:14 +00:00
bors
adf047d627 Auto merge of #6449 - dwijnand:extract-Fingerprint-new, r=alexcrichton
Extract Fingerprint::new

None
2018-12-17 16:42:56 +00:00
bors
db0bb7f7cd Auto merge of #6448 - dwijnand:upgrade-the-metabuild-to-rust-2018, r=ehuss
Upgrade the metabuild to Rust 2018

Just happened across the code that @ehuss mentioned in https://github.com/rust-lang/cargo/pull/6423#issuecomment-446807216 and thought of reviving that effort.

@ehuss says there's no reason to.  Let's see if it passes CI and we should land this change or not.
2018-12-17 15:42:58 +00:00
bors
b15d11aa63 Auto merge of #6450 - dwijnand:make-edition-comparing-code-consistent, r=Eh2406
Make edition comparing code consistent

Rather than sometimes comparing equality, sometimes using ordering and
sometimes pattern matching, consistently compare by equalty to 2015.
2018-12-17 13:32:59 +00:00
Dale Wijnand
37956e8c39
Extract Fingerprint::new 2018-12-17 08:56:16 +00:00
Dale Wijnand
b765fad1ed
Make edition comparing code consistent
Rather than sometimes comparing equality, sometimes using ordering and
sometimes pattern matching, consistently compare by equalty to 2015.
2018-12-17 08:12:24 +00:00
Dale Wijnand
e881e3ba98
Upgrade the metabuild to Rust 2018 2018-12-17 07:37:09 +00:00
bors
ff7f2bcb62 Auto merge of #6447 - ehuss:doc-name-authors, r=alexcrichton
Document `name` and `authors` in [package]

I don't think we need to take a principled stand on the exact meaning of
"authors", so I left it somewhat vague. Also, it was made optional in #3682 so
the existing docs were a little wrong.

Closes #5934
2018-12-17 03:28:16 +00:00
Eric Huss
e2074dfb41 Document name and authors in [package] 2018-12-16 10:05:52 -08:00
bors
5c3b8f2d9c Auto merge of #6443 - ehuss:ci-install-mdbook, r=alexcrichton
Travis: only use mdbook 0.1.7.

The latest mdbook does not build (https://github.com/rust-lang-nursery/mdBook/issues/852). Cargo uses 0.1.7, so force install only that version.
2018-12-14 23:14:58 +00:00
Eric Huss
0615d9102f On CI only use mdbook 0.1.7. 2018-12-14 14:11:24 -08:00
bors
8c2dd6e4a3 Auto merge of #6439 - rust-lang:dependabot/cargo/git2-curl-0.9.0, r=alexcrichton
Update git2-curl requirement from 0.8.1 to 0.9.0

Updates the requirements on [git2-curl](https://github.com/alexcrichton/git2-rs) to permit the latest version.
<details>
<summary>Commits</summary>

- See full diff in [compare view](https://github.com/alexcrichton/git2-rs/commits)
</details>
<br />

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

</details>
2018-12-14 16:56:14 +00:00
dependabot[bot]
ed66cbc700
Update git2-curl requirement from 0.8.1 to 0.9.0
Updates the requirements on [git2-curl](https://github.com/alexcrichton/git2-rs) to permit the latest version.
- [Release notes](https://github.com/alexcrichton/git2-rs/releases)
- [Commits](https://github.com/alexcrichton/git2-rs/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-14 16:30:00 +00:00
bors
9ff47f6d51 Auto merge of #6438 - rust-lang:dependabot/cargo/git2-0.8.0, r=alexcrichton
Update git2 requirement from 0.7.5 to 0.8.0

Updates the requirements on [git2](https://github.com/alexcrichton/git2-rs) to permit the latest version.
<details>
<summary>Commits</summary>

- See full diff in [compare view](https://github.com/alexcrichton/git2-rs/commits/git2-curl-0.8.0)
</details>
<br />

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

</details>
2018-12-14 15:50:31 +00:00
dependabot[bot]
56dffe70cd
Update git2 requirement from 0.7.5 to 0.8.0
Updates the requirements on [git2](https://github.com/alexcrichton/git2-rs) to permit the latest version.
- [Release notes](https://github.com/alexcrichton/git2-rs/releases)
- [Commits](https://github.com/alexcrichton/git2-rs/commits/git2-curl-0.8.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-14 05:51:03 +00:00
bors
a3a3c254bd Auto merge of #6419 - ehuss:fix-show-errors, r=alexcrichton
Display errors when `cargo fix` fails.

It can be difficult to figure out what's wrong when a user reports that `cargo fix` fails. It can be hard to figure out which suggestion caused a compile error, especially if the error is in another file/location.
2018-12-14 00:11:15 +00:00
bors
45f12b158e Auto merge of #6434 - ehuss:fix-fix-concurrent, r=dwijnand
cargo fix: fix targets with shared sources.

If `cargo fix` attempts to fix multiple targets concurrently that have shared
source files, it would apply fixes multiple times causing corruption of the
source code. Fix this by locking on the package path instead of the target
filename, essentially serializing all targets within a package.

Fixes #6415.
2018-12-13 23:31:39 +00:00
Eric Huss
41519fbf10 cargo fix: fix targets with shared sources.
If `cargo fix` attempts to fix multiple targets concurrently that have shared
source files, it would apply fixes multiple times causing corruption of the
source code. Fix this by locking on the package path instead of the target
filename, essentially serializing all targets within a package.
2018-12-13 14:29:26 -08:00
Eric Huss
502ab6505c Update rustfix to 0.4.4. 2018-12-13 14:01:44 -08:00
Eric Huss
fffb05d8fc Display errors when cargo fix fails.
It can be difficult to figure out what's wrong when a user reports that
`cargo fix` fails. There's often a large list of warnings, and it can
be hard to figure out which one caused a compile error.
2018-12-13 13:59:06 -08:00
bors
79f962f8c9 Auto merge of #6431 - ehuss:panic-in-panic, r=nrc
Fix panic-in-panic in tests.

There are some very rare circumstances that can cause a double panic during
development. For example, `.with_json("")` (or any invalid JSON) will panic, and then the drop
will also panic.  This can cause a confusing SIGILL.
2018-12-13 20:12:04 +00:00
Eric Huss
fa94e8aab4 Fix panic-in-panic in tests.
There are some very rare circumstances that can cause a double panic during
development. For example, `.with_json("")` will panic, and then the drop
will also panic.
2018-12-13 11:55:38 -08:00
bors
5bb302352a Auto merge of #6422 - dwijnand:more-rust-2018, r=alexcrichton
More Rust 2018 edition cleanups

None
2018-12-13 19:10:10 +00:00
bors
9725a51037 Auto merge of #6429 - dwijnand:cleanup-SourceId-trait-impls, r=alexcrichton
Cleanup some trait impls for SourceId

None
2018-12-13 16:26:17 +00:00
Dale Wijnand
1795a03d4b
Cleanup some trait impls for SourceId 2018-12-13 15:24:31 +00:00
Dale Wijnand
54c4214251
Remove trailing extern crate usage 2018-12-13 15:21:32 +00:00
Dale Wijnand
ec197891e8
Remove trailing cfg_attr feature = "cargo-clippy" usage 2018-12-13 15:21:31 +00:00
bors
6459852b67 Auto merge of #6427 - phansch:remove_nightly_check_in_test, r=dwijnand
Remove a nightly check from doc tests

None
2018-12-13 07:40:41 +00:00
Philipp Hansch
5e62437eb9
Remove a nightly check from doc tests 2018-12-13 07:55:08 +01:00
bors
e92df21b07 Auto merge of #6425 - dwijnand:promote-failure-error, r=alexcrichton
Replace CargoError with failure::Error

None
2018-12-13 06:10:04 +00:00
bors
eb38ad03fb Auto merge of #6426 - dwijnand:allow-testsuite-warnings-in-dev, r=nrc
Allow testsuite warnings in dev

This makes the deny(warnings) in the testsuite conditional on a new
"deny-warnings" feature, that is then enabled in CI.

Ideally I could use the (reasonably well established) CI env var (like
we do for proptests), but I don't know how to get the attribute to be
defined in terms of an env var.
2018-12-13 01:10:43 +00:00
Dale Wijnand
0e031b5a96
Allow testsuite warnings in dev
This makes the deny(warnings) in the testsuite conditional on a new
"deny-warnings" feature, that is then enabled in CI.

Ideally I could use the (reasonably well established) CI env var (like
we do for proptests), but I don't know how to get the attribute to be
defined in terms of an env var.
2018-12-13 01:03:08 +00:00
Dale Wijnand
920d552750
Replace CargoError with failure::Error 2018-12-12 23:25:08 +00:00