]> git.proxmox.com Git - cargo.git/log
cargo.git
6 years agoSome hints about feature lifecycle
Aleksey Kladov [Mon, 14 May 2018 21:23:05 +0000 (00:23 +0300)]
Some hints about feature lifecycle

6 years agoClarify the meaning of feature-related labels
Aleksey Kladov [Mon, 14 May 2018 21:11:54 +0000 (00:11 +0300)]
Clarify the meaning of feature-related labels

6 years agoAuto merge of #5563 - ehuss:cargotest-doc, r=alexcrichton
bors [Thu, 24 May 2018 05:55:01 +0000 (05:55 +0000)]
Auto merge of #5563 - ehuss:cargotest-doc, r=alexcrichton

cargotest: Add some more docs

Hopefully this isn't too wordy.  This isn't intended for rustdoc output, but generally to be read in-editor.

6 years agocargotest: Add some more docs
Eric Huss [Thu, 24 May 2018 04:09:27 +0000 (21:09 -0700)]
cargotest: Add some more docs

6 years agoAuto merge of #5559 - alexcrichton:update-core-foundation, r=alexcrichton
bors [Wed, 23 May 2018 02:47:32 +0000 (02:47 +0000)]
Auto merge of #5559 - alexcrichton:update-core-foundation, r=alexcrichton

Update version of core-foundation crate

6 years agoUpdate version of core-foundation crate
Alex Crichton [Wed, 23 May 2018 02:46:30 +0000 (19:46 -0700)]
Update version of core-foundation crate

6 years agoAuto merge of #5557 - ehuss:linux-cbfct, r=alexcrichton
bors [Tue, 22 May 2018 14:08:52 +0000 (14:08 +0000)]
Auto merge of #5557 - ehuss:linux-cbfct, r=alexcrichton

Fix test failure in changing_bin_features_caches_targets for Linux.

Fixes rust-lang/rust#50962.

My theory is that while copying the binary, another thread forked with the fd
open.  The copy finishes and attempts to exec before the other child execs (and
closes the writeable fd).

I was able to easily repro this on linux.  I ran some stress tests of this fix
locally on linux and on appveyor, and was unable to trigger it again.

6 years agoFix test failure in changing_bin_features_caches_targets for Linux.
Eric Huss [Tue, 22 May 2018 11:45:46 +0000 (04:45 -0700)]
Fix test failure in changing_bin_features_caches_targets for Linux.

Fixes rust-lang/rust#50962.

My theory is that while copying the binary, another thread forked with the fd
open.  The copy finishes and attempts to exec before the other child execs (and
closes the writeable fd).

I was able to easily repro this on linux.  I ran some stress tests of this fix
locally on linux and on appveyor, and was unable to trigger it again.

6 years agoAuto merge of #5541 - ehuss:fix-rustdoc-edition, r=alexcrichton
bors [Tue, 15 May 2018 17:53:20 +0000 (17:53 +0000)]
Auto merge of #5541 - ehuss:fix-rustdoc-edition, r=alexcrichton

Fix passing --edition to rustdoc during doctests.

Fixes #5538

6 years agoFix passing --edition to rustdoc during doctests.
Eric Huss [Tue, 15 May 2018 16:29:34 +0000 (09:29 -0700)]
Fix passing --edition to rustdoc during doctests.

Fixes #5538

6 years agoAuto merge of #5540 - ehuss:fix-build-plan-tests, r=alexcrichton
bors [Tue, 15 May 2018 14:55:06 +0000 (14:55 +0000)]
Auto merge of #5540 - ehuss:fix-build-plan-tests, r=alexcrichton

Fix tests when CARGO_TARGET_DIR is set.

Fixes #5536

6 years agoFix tests when CARGO_TARGET_DIR is set.
Eric Huss [Tue, 15 May 2018 14:52:24 +0000 (07:52 -0700)]
Fix tests when CARGO_TARGET_DIR is set.

Fixes #5536

6 years agoAuto merge of #5537 - eddyb:no-trans, r=matklad
bors [Tue, 15 May 2018 08:20:05 +0000 (08:20 +0000)]
Auto merge of #5537 - eddyb:no-trans, r=matklad

Remove -Zno-trans test.

Needed for https://github.com/rust-lang/rust/pull/50615 (where the flag is now `-Zno-codegen`) - which revealed that the test shouldn't even exist anymore, and was accidentally added back (https://github.com/rust-lang/rust/pull/50615#issuecomment-388968326).

6 years agoRemove -Zno-trans test.
Eduard-Mihai Burtescu [Tue, 15 May 2018 07:14:03 +0000 (10:14 +0300)]
Remove -Zno-trans test.

6 years agoAuto merge of #5535 - ehuss:ignore-test-tab, r=alexcrichton
bors [Tue, 15 May 2018 06:01:29 +0000 (06:01 +0000)]
Auto merge of #5535 - ehuss:ignore-test-tab, r=alexcrichton

Ignore <tab> in libtest output.

rust-lang/rust#50387 is changing the output from libtest which affected a few Cargo tests.

6 years agoIgnore <tab> in libtest output.
Eric Huss [Tue, 15 May 2018 05:02:34 +0000 (22:02 -0700)]
Ignore <tab> in libtest output.

rust-lang/rust#50387 is changing the output from libtest which affected a few Cargo tests.

6 years agoAuto merge of #5533 - dwijnand:patch-1, r=matklad
bors [Mon, 14 May 2018 20:53:12 +0000 (20:53 +0000)]
Auto merge of #5533 - dwijnand:patch-1, r=matklad

Detail how to run locally-built nightly cargo

Documenting from https://gitter.im/rust-lang/cargo?at=5af6d407862c5e33e92bf2ca.

Apologies if this is documenting too much what is effectively rustup behaviour.

Let me know if it's time to replace this with links to rustup docs instead.

6 years agoDetail how to run locally-built nightly cargo
Dale Wijnand [Mon, 14 May 2018 20:34:41 +0000 (22:34 +0200)]
Detail how to run locally-built nightly cargo

Documenting from https://gitter.im/rust-lang/cargo?at=5af6d407862c5e33e92bf2ca.

6 years agoAuto merge of #5527 - tcr:patch-1, r=alexcrichton
bors [Sun, 13 May 2018 15:25:21 +0000 (15:25 +0000)]
Auto merge of #5527 - tcr:patch-1, r=alexcrichton

Point Source Replacement to the Overriding Dependencies section

This would've saved me a minute. This mirrors a similarly helpful caveat in [the [patch] section](https://doc.rust-lang.org/cargo/reference/manifest.html#the-patch-section).

6 years agoPoint Source Replacement to the Overriding Dependencies section
Tim Ryan [Sun, 13 May 2018 05:51:54 +0000 (01:51 -0400)]
Point Source Replacement to the Overriding Dependencies section

This would've saved me a minute. This mirrors a similarly helpful caveat in [the [patch] section](https://doc.rust-lang.org/cargo/reference/manifest.html#the-patch-section).

6 years agoAuto merge of #5522 - DarkDrek:user_agent_option, r=alexcrichton
bors [Fri, 11 May 2018 23:38:48 +0000 (23:38 +0000)]
Auto merge of #5522 - DarkDrek:user_agent_option, r=alexcrichton

Add option to set user-agent

Fixes #5494

6 years agoAdd option to set user-agent
DarkDrek [Fri, 11 May 2018 22:41:15 +0000 (00:41 +0200)]
Add option to set user-agent

Fixes #5494

6 years agoAuto merge of #5520 - alexcrichton:check-with-full-proc-macro, r=matklad
bors [Fri, 11 May 2018 22:55:05 +0000 (22:55 +0000)]
Auto merge of #5520 - alexcrichton:check-with-full-proc-macro, r=matklad

Fix mode generated in `maybe_lib`

The new `mode` for the library dependency is dependent on the library target
rather than the target which is the reason for the dependency on the library!

Closes rust-lang/rust#50640

6 years agoAuto merge of #5519 - matthiaskrgr:typos, r=alexcrichton
bors [Fri, 11 May 2018 22:31:25 +0000 (22:31 +0000)]
Auto merge of #5519 - matthiaskrgr:typos, r=alexcrichton

NFC: fix a couple of typos, found by codespell.

6 years agoFix mode generated in `maybe_lib`
Alex Crichton [Fri, 11 May 2018 15:04:10 +0000 (08:04 -0700)]
Fix mode generated in `maybe_lib`

The new `mode` for the library dependency is dependent on the library target
rather than the target which is the reason for the dependency on the library!

Closes rust-lang/rust#50640

6 years agoNFC: fix a couple of typos, found by codespell.
Matthias Krüger [Fri, 11 May 2018 14:54:23 +0000 (16:54 +0200)]
NFC: fix a couple of typos, found by codespell.

6 years agoAuto merge of #5513 - ehuss:test-binary-panic, r=alexcrichton
bors [Thu, 10 May 2018 22:10:48 +0000 (22:10 +0000)]
Auto merge of #5513 - ehuss:test-binary-panic, r=alexcrichton

Fix `panic` for binaries built during tests.

Fixes #5435

Also re-enable tests now that #5460 has landed.

6 years agoFix `panic` for binaries built during tests.
Eric Huss [Thu, 10 May 2018 21:25:17 +0000 (14:25 -0700)]
Fix `panic` for binaries built during tests.

Fixes #5435

Also re-enable tests now that #5460 has landed.

6 years agoAuto merge of #5512 - Eh2406:simplify_FeatureValue, r=alexcrichton
bors [Thu, 10 May 2018 21:13:05 +0000 (21:13 +0000)]
Auto merge of #5512 - Eh2406:simplify_FeatureValue, r=alexcrichton

simplify build_requirements

use InternedString's ability to be a &'static str to appease the borrow checker

This "slight workaround" was added in #5270. So @djc does this still look correct and an improvement?

6 years agosimplify build_requirements
Eh2406 [Thu, 10 May 2018 20:55:09 +0000 (16:55 -0400)]
simplify build_requirements

use InternedString's ability to be a &'static str to appease the borrow checker

This "slight workaround" was added in #5270. So @djc dose this still look correct?

6 years agoAuto merge of #5301 - mshal:build-plan, r=matklad
bors [Thu, 10 May 2018 19:55:02 +0000 (19:55 +0000)]
Auto merge of #5301 - mshal:build-plan, r=matklad

Add --build-plan for 'cargo build'

With 'cargo build --build-plan', cargo does not actually run any
commands, but instead prints out what it would have done in the form of
a JSON data structure.

Fixes #3815

6 years agoFixup some minor review comments
Alex Crichton [Thu, 10 May 2018 19:07:02 +0000 (12:07 -0700)]
Fixup some minor review comments

6 years agoAuto merge of #5460 - ehuss:conservative-link, r=alexcrichton
bors [Thu, 10 May 2018 19:01:06 +0000 (19:01 +0000)]
Auto merge of #5460 - ehuss:conservative-link, r=alexcrichton

Be more conservative about which files are linked to the output dir.

This changes it so that only top-level targets requested on the command-line will be included in the output directory.  Dependencies are no longer included.

Fixes #5444.

6 years agoAuto merge of #5509 - Eh2406:use_the_new, r=alexcrichton
bors [Thu, 10 May 2018 18:18:09 +0000 (18:18 +0000)]
Auto merge of #5509 - Eh2406:use_the_new, r=alexcrichton

Use the new stable

The new rust release has stabilized `Box::leak` and `impl Iterator` lets use them!

6 years agouse Box::leak and clean up our string leak
Eh2406 [Wed, 9 May 2018 17:24:11 +0000 (13:24 -0400)]
use Box::leak and clean up our string leak

6 years agouse impl Trait
Eh2406 [Wed, 9 May 2018 17:20:25 +0000 (13:20 -0400)]
use impl Trait

6 years agoAddress review comment, no need to check export_dir.
Eric Huss [Thu, 10 May 2018 16:34:46 +0000 (09:34 -0700)]
Address review comment, no need to check export_dir.

6 years agoUpdate due to #5503.
Eric Huss [Thu, 10 May 2018 16:33:05 +0000 (09:33 -0700)]
Update due to #5503.

6 years agoFix broken test.
Eric Huss [Thu, 3 May 2018 00:15:11 +0000 (17:15 -0700)]
Fix broken test.

6 years agoBe more conservative about which files are linked to the output dir.
Eric Huss [Wed, 2 May 2018 18:18:37 +0000 (11:18 -0700)]
Be more conservative about which files are linked to the output dir.

This changes it so that only top-level targets requested on the command-line will be included in the output directory.  Dependencies are no longer included.

Fixes #5444.

6 years agoAuto merge of #5503 - ehuss:fix-rustc-test, r=matklad
bors [Thu, 10 May 2018 12:44:16 +0000 (12:44 +0000)]
Auto merge of #5503 - ehuss:fix-rustc-test, r=matklad

Fix `cargo rustc` for test with implicit binary.

Fixes #5502

6 years agoAuto merge of #5507 - ordovicia:no-secs-frac, r=matklad
bors [Thu, 10 May 2018 12:20:00 +0000 (12:20 +0000)]
Auto merge of #5507 - ordovicia:no-secs-frac, r=matklad

Does not print seconds fraction with minutes

As discussed in https://github.com/rust-lang/cargo/pull/5456#issuecomment-387731047,
seconds fraction seems unnecessary when the elapsed time is reported in minutes.

6 years agoRemove unnecessary computation in printing elapsed time
Hidehito Yabuuchi [Thu, 10 May 2018 09:21:27 +0000 (18:21 +0900)]
Remove unnecessary computation in printing elapsed time

6 years agoDoes not print seconds fraction with minutes
Hidehito Yabuuchi [Thu, 10 May 2018 02:52:44 +0000 (11:52 +0900)]
Does not print seconds fraction with minutes

6 years agoFix `cargo rustc` for test with implicit binary.
Eric Huss [Wed, 9 May 2018 00:23:28 +0000 (17:23 -0700)]
Fix `cargo rustc` for test with implicit binary.

Fixes #5502

6 years agoAuto merge of #5498 - alexcrichton:bump, r=alexcrichton
bors [Tue, 8 May 2018 03:00:12 +0000 (03:00 +0000)]
Auto merge of #5498 - alexcrichton:bump, r=alexcrichton

Bump to 0.29.0

6 years agoBump to 0.29.0
Alex Crichton [Tue, 8 May 2018 02:40:58 +0000 (19:40 -0700)]
Bump to 0.29.0

6 years agoAuto merge of #5497 - dwijnand:patch-1, r=alexcrichton
bors [Tue, 8 May 2018 02:37:04 +0000 (02:37 +0000)]
Auto merge of #5497 - dwijnand:patch-1, r=alexcrichton

Mention +nightly in ARCHITECTURE.md

See the conversation on Gitter: https://gitter.im/rust-lang/cargo?at=5aee83305cf0b830045d0602.

6 years agotypo
Dale Wijnand [Mon, 7 May 2018 23:21:28 +0000 (16:21 -0700)]
typo

6 years agoMention +nightly in ARCHITECTURE.md
Dale Wijnand [Mon, 7 May 2018 23:20:45 +0000 (16:20 -0700)]
Mention +nightly in ARCHITECTURE.md

6 years agoAdd --build-plan for 'cargo build'
Mike Shal [Thu, 3 Aug 2017 14:02:00 +0000 (10:02 -0400)]
Add --build-plan for 'cargo build'

With 'cargo build --build-plan', cargo does not actually run any
commands, but instead prints out what it would have done in the form of
a JSON data structure.

Fixes #3815

6 years agoAuto merge of #5493 - ehuss:fix-changing_bin_features_caches_targets, r=matklad
bors [Mon, 7 May 2018 06:55:24 +0000 (06:55 +0000)]
Auto merge of #5493 - ehuss:fix-changing_bin_features_caches_targets, r=matklad

Fix random Windows CI error for changing_bin_features_caches_targets

Fixes #5481.

6 years agoFix random Windows CI error for changing_bin_features_caches_targets
Eric Huss [Sun, 6 May 2018 15:25:44 +0000 (08:25 -0700)]
Fix random Windows CI error for changing_bin_features_caches_targets

Fixes #5481.

6 years agoAuto merge of #5491 - ehuss:profile-spec, r=alexcrichton
bors [Sun, 6 May 2018 03:56:43 +0000 (03:56 +0000)]
Auto merge of #5491 - ehuss:profile-spec, r=alexcrichton

Add package spec support to profile overrides.

Note: It errors out if multiple overrides match the same package.  This could potentially merge the overrides together with a hierarchy similar to CSS specificity.  However, that seems overkill for now.

6 years agoAdd package spec support to profile overrides.
Eric Huss [Sat, 5 May 2018 23:13:09 +0000 (16:13 -0700)]
Add package spec support to profile overrides.

Note: It errors out if multiple overrides match the same package.  This could potentially merge the overrides together with a hierarchy similar to CSS specificity.  However, that seems overkill for now.

6 years agoAuto merge of #5461 - matklad:meta-rename, r=alexcrichton
bors [Sat, 5 May 2018 21:32:18 +0000 (21:32 +0000)]
Auto merge of #5461 - matklad:meta-rename, r=alexcrichton

Support crate renames in `cargo metadata`

This adds information about (currently unstable) crate renames to metadata. Unfortunately, we already expose dependencies as a list of package ids (which are strings), so we can't easily add a `rename` field easily. For this reason, I've added a parallel `deps` key, which basically deprecates `dependencies` field.

So, the new format looks like this

```JavaScript
{
    "dependencies": [
        "bar 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
        "bar 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)"
    ],
    "deps": [
        {
            "extern_crate_name": "baz", // this one is actually renamed
            "id": "bar 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)"
        },
        {
            "extern_crate_name": "bar",
            "id": "bar 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)"
        }
    ],
    "features": [],
    "id": "foo 0.5.0 (path+file://[..])"
},
```

Questions:

* Is there a better name for `extern_crate_name`? This name is precise, but it's longer than I like, and might become opaque in meaning if we remove `extern crate` from the language :)
* Should we feature gate this (i.e, only produce `deps` if we have a feature in `Cargo.toml`)? I think the answer is yes, but that'll require threading `Features` to `Workspace`...

r? @alexcrichton

6 years agoExpand dependency info of cargo --metadata
Aleksey Kladov [Sat, 5 May 2018 15:07:18 +0000 (18:07 +0300)]
Expand dependency info of cargo --metadata

The old `dependencies` key in `resolve` is deprecated.

Instead, the new `deps` key introduced which lists dependencies kinds
(dev/build/normal) as well as `extern crate` name for the dep.

6 years agoExtract Package::lib_target method
Aleksey Kladov [Wed, 2 May 2018 17:26:52 +0000 (20:26 +0300)]
Extract Package::lib_target method

6 years agoAuto merge of #5490 - alexcrichton:fix-thrash, r=matklad
bors [Sat, 5 May 2018 20:41:12 +0000 (20:41 +0000)]
Auto merge of #5490 - alexcrichton:fix-thrash, r=matklad

Factor in `used_in_plugin` to target filenames

This prevents thrashing the cache of compiled libraries for when they're used in
a plugin or not.

6 years agoFactor in `used_in_plugin` to target filenames
Alex Crichton [Sat, 5 May 2018 19:59:50 +0000 (12:59 -0700)]
Factor in `used_in_plugin` to target filenames

This prevents thrashing the cache of compiled libraries for when they're used in
a plugin or not.

6 years agoAuto merge of #5489 - dwijnand:drop-GitSource-TODO, r=matklad
bors [Sat, 5 May 2018 19:52:25 +0000 (19:52 +0000)]
Auto merge of #5489 - dwijnand:drop-GitSource-TODO, r=matklad

Drop PathSource TODO in GitSource

This effort was started in de6944798cf2940b91c742b8d6cd4294ea28f76a,
and looks (to me) to be resolved at this point.

6 years agoAuto merge of #5488 - alexcrichton:Retry, r=matklad
bors [Sat, 5 May 2018 19:04:30 +0000 (19:04 +0000)]
Auto merge of #5488 - alexcrichton:Retry, r=matklad

Cop out on fixing a spurious test failure

This commit cops out trying to fix `rename_with_link_search_path` by simply
adding a loop on Windows to retry the operation that looks to need retrying.

6 years agoDrop PathSource TODO in GitSource
Dale Wijnand [Sat, 5 May 2018 18:55:37 +0000 (19:55 +0100)]
Drop PathSource TODO in GitSource

This effort was started in de6944798cf2940b91c742b8d6cd4294ea28f76a,
and looks (to me) to be resolved at this point.

6 years agoCop out on fixing a spurious test failure
Alex Crichton [Sat, 5 May 2018 18:47:41 +0000 (11:47 -0700)]
Cop out on fixing a spurious test failure

This commit cops out trying to fix `rename_with_link_search_path` by simply
adding a loop on Windows to retry the operation that looks to need retrying.

6 years agoAuto merge of #5358 - djc:options-build-config, r=matklad
bors [Sat, 5 May 2018 18:35:04 +0000 (18:35 +0000)]
Auto merge of #5358 - djc:options-build-config, r=matklad

Let CompileOptions create a BuildConfig directly

This puts input validation in a more central place and prevents copying/moving stuff around as separate values.

6 years agoAuto merge of #5487 - matklad:mixed-deps, r=alexcrhiton
bors [Sat, 5 May 2018 17:19:01 +0000 (17:19 +0000)]
Auto merge of #5487 - matklad:mixed-deps, r=alexcrhiton

FIx false positive warning

We warn if a feature was specified corresponding to a dependency which
is not optional. However, a dependency can be both optional and
required, and we shouldn't warn in that case.

cc https://github.com/rust-lang/cargo/pull/5480

r? @alexcrichton

6 years agoFIx false positive warning
Aleksey Kladov [Sat, 5 May 2018 16:04:54 +0000 (19:04 +0300)]
FIx false positive warning

We warn if a feature was specified corresponding to a dependency which
is not optional. However, a dependency can be both optional and
required, and we shouldn't warn in that case.

6 years agoAuto merge of #5486 - ehuss:deprecate-doc, r=matklad
bors [Sat, 5 May 2018 16:11:36 +0000 (16:11 +0000)]
Auto merge of #5486 - ehuss:deprecate-doc, r=matklad

Deprecate `doc` profile.

Fixes #5434

6 years agoDeprecate `doc` profile.
Eric Huss [Sat, 5 May 2018 15:52:19 +0000 (08:52 -0700)]
Deprecate `doc` profile.

Fixes #5434

6 years agoAuto merge of #5485 - patriksvensson:feature/GH-5474, r=matklad
bors [Sat, 5 May 2018 14:24:55 +0000 (14:24 +0000)]
Auto merge of #5485 - patriksvensson:feature/GH-5474, r=matklad

Do not allow running library examples.

This is my first contribution to anything Rust related that I haven't written myself, and I'm not a very proficient Rust programmer (yet), so would love some feedback on improvements.

I also might have solved this the wrong way... 😄

Closes #5474

(cc @matklad)

6 years agoMade adjustments based on feedback from review.
Patrik Svensson [Sat, 5 May 2018 14:17:59 +0000 (16:17 +0200)]
Made adjustments based on feedback from review.

6 years agoDo not allow running library examples.
Patrik Svensson [Sat, 5 May 2018 08:39:51 +0000 (10:39 +0200)]
Do not allow running library examples.

Closes #5474

6 years agoAuto merge of #5480 - alexcrichton:fix-regr, r=matklad
bors [Fri, 4 May 2018 21:07:15 +0000 (21:07 +0000)]
Auto merge of #5480 - alexcrichton:fix-regr, r=matklad

Fix optional deps in multiple sections

This commit fixes an issue where an optional dependency was listed multiple
times in a manifest (multiple sections). This regression was introduced by #5415
and happened because in the resolver we didn't record a `Dependency` as it was
accidentally deduplicated too soon.

The fix here was to ensure that all `Dependency` annotations make their way into
`Resolve` now that we rely on the listed `Dependency` values for correctness.

Closes #5475

6 years agoFix optional deps in multiple sections
Alex Crichton [Fri, 4 May 2018 16:19:30 +0000 (09:19 -0700)]
Fix optional deps in multiple sections

This commit fixes an issue where an optional dependency was listed multiple
times in a manifest (multiple sections). This regression was introduced by #5415
and happened because in the resolver we didn't record a `Dependency` as it was
accidentally deduplicated too soon.

The fix here was to ensure that all `Dependency` annotations make their way into
`Resolve` now that we rely on the listed `Dependency` values for correctness.

Closes #5475

6 years agoAuto merge of #5483 - ehuss:disable-panic-test, r=matklad
bors [Fri, 4 May 2018 18:00:30 +0000 (18:00 +0000)]
Auto merge of #5483 - ehuss:disable-panic-test, r=matklad

Disable --all-targets panic tests until we can land a fix.

6 years agoDisable --all-targets panic tests until we can land a fix.
Eric Huss [Fri, 4 May 2018 17:51:20 +0000 (10:51 -0700)]
Disable --all-targets panic tests until we can land a fix.

6 years agoAuto merge of #5479 - matklad:ghost-hunting, r=alexcrichton
bors [Fri, 4 May 2018 16:07:30 +0000 (16:07 +0000)]
Auto merge of #5479 - matklad:ghost-hunting, r=alexcrichton

Investigating spurious windows errors

r? @alexcrichton

6 years agoTry to diagnose/fix spurious windows error with better rm -r
Aleksey Kladov [Fri, 4 May 2018 15:02:57 +0000 (18:02 +0300)]
Try to diagnose/fix spurious windows error with better rm -r

6 years agoRevert "Attmept to fix a spurious failure on AppVeyor"
Aleksey Kladov [Fri, 4 May 2018 14:53:10 +0000 (17:53 +0300)]
Revert "Attmept to fix a spurious failure on AppVeyor"

This reverts commit db3328f8f7b96701faa62756a0d55ed71899d894.

We get spurious errors for thouse tests even with debug info disabled,
so let's reenable it back.

6 years agoAuto merge of #5476 - dwijnand:Registry-vs-Source-confusion, r=matklad
bors [Fri, 4 May 2018 14:37:41 +0000 (14:37 +0000)]
Auto merge of #5476 - dwijnand:Registry-vs-Source-confusion, r=matklad

Try & simplify Registry vs Source confusion

Refs #3006.

I tried to go further and replace references of `Registry` with `PackageRegistry`, but I ran into lifetime issue in `ops::resolve_with_previous` which I think has to do with no longer passing `PackageRegistry` as a `Registry` trait object (with a new and distinct lifetime).

6 years agoTrash RegistryBuilder, dead cfg(test) code
Dale Wijnand [Fri, 4 May 2018 14:24:08 +0000 (15:24 +0100)]
Trash RegistryBuilder, dead cfg(test) code

6 years agoRe-organise Source impls method definition order
Dale Wijnand [Fri, 4 May 2018 13:15:48 +0000 (14:15 +0100)]
Re-organise Source impls method definition order

Optimised for minimised PR diff, and thus reviewability

6 years agoRe-simplify GitSource::query
Dale Wijnand [Fri, 4 May 2018 13:10:24 +0000 (14:10 +0100)]
Re-simplify GitSource::query

6 years agoMove query definitions back into Source impls!
Dale Wijnand [Fri, 4 May 2018 13:07:51 +0000 (14:07 +0100)]
Move query definitions back into Source impls!

6 years agoRemove all "impl Registry for XSource" blocks!
Dale Wijnand [Fri, 4 May 2018 13:05:23 +0000 (14:05 +0100)]
Remove all "impl Registry for XSource" blocks!

6 years agoDrop unnecessary Registry for Box
Dale Wijnand [Fri, 4 May 2018 13:00:35 +0000 (14:00 +0100)]
Drop unnecessary Registry for Box

6 years agoDuplicate query in Source, drop Registry parent type
Dale Wijnand [Thu, 3 May 2018 22:26:42 +0000 (23:26 +0100)]
Duplicate query in Source, drop Registry parent type

.. and move query definitions to the struct impls.

6 years agoStart moving methods from Registry to Source
Dale Wijnand [Thu, 3 May 2018 22:14:21 +0000 (23:14 +0100)]
Start moving methods from Registry to Source

For now just move `supports_checksums` and `requires_precise` methods
down from `Registry` to `Source`, as they're not as entangled as
`query`.

6 years agoRename default() method that does not implement Default
Dirkjan Ochtman [Sat, 14 Apr 2018 09:58:01 +0000 (11:58 +0200)]
Rename default() method that does not implement Default

6 years agoStore BuildConfig directly in CompileOptions
Dirkjan Ochtman [Sat, 14 Apr 2018 09:06:51 +0000 (11:06 +0200)]
Store BuildConfig directly in CompileOptions

6 years agoPass full build_config to generate_targets()
Dirkjan Ochtman [Thu, 3 May 2018 09:17:38 +0000 (11:17 +0200)]
Pass full build_config to generate_targets()

6 years agoMove rustc and target configs from BuildConfig into BuildContext
Dirkjan Ochtman [Sat, 28 Apr 2018 13:14:51 +0000 (15:14 +0200)]
Move rustc and target configs from BuildConfig into BuildContext

6 years agoPass Workspace directly into Config::rustc()
Dirkjan Ochtman [Thu, 3 May 2018 08:42:45 +0000 (10:42 +0200)]
Pass Workspace directly into Config::rustc()

This means we can store the cache file name in one place.

6 years agoProxy host_triple() and target_triple() on BuildContext
Dirkjan Ochtman [Thu, 3 May 2018 08:09:54 +0000 (10:09 +0200)]
Proxy host_triple() and target_triple() on BuildContext

6 years agoInitialize Compilation fields directly from BuildContext
Dirkjan Ochtman [Thu, 3 May 2018 08:08:16 +0000 (10:08 +0200)]
Initialize Compilation fields directly from BuildContext

6 years agoPass target configs directly to BuildState::new()
Dirkjan Ochtman [Sat, 28 Apr 2018 12:50:56 +0000 (14:50 +0200)]
Pass target configs directly to BuildState::new()

6 years agoMove BuildConfig and dependencies into new module
Dirkjan Ochtman [Sat, 14 Apr 2018 09:55:26 +0000 (11:55 +0200)]
Move BuildConfig and dependencies into new module

6 years agoMove more input validation into BuildConfig::new()
Dirkjan Ochtman [Sat, 14 Apr 2018 09:44:42 +0000 (11:44 +0200)]
Move more input validation into BuildConfig::new()

6 years agoStore compile mode as enum in BuildConfig
Dirkjan Ochtman [Sat, 14 Apr 2018 08:49:15 +0000 (10:49 +0200)]
Store compile mode as enum in BuildConfig

6 years agoExpose CompileMode in command_prelude
Dirkjan Ochtman [Sat, 14 Apr 2018 08:47:58 +0000 (10:47 +0200)]
Expose CompileMode in command_prelude