]> git.proxmox.com Git - cargo.git/log
cargo.git
7 years agocargo 0.15.0~dev-1
Luca Bruno [Fri, 25 Nov 2016 23:59:51 +0000 (23:59 +0000)]
cargo 0.15.0~dev-1

7 years agorules: use new link-arg option (rustc >= 1.13)
Luca Bruno [Fri, 25 Nov 2016 23:53:28 +0000 (23:53 +0000)]
rules: use new link-arg option (rustc >= 1.13)

7 years agoquilt: update patches for 0.15.0~dev
Luca Bruno [Fri, 25 Nov 2016 23:50:10 +0000 (23:50 +0000)]
quilt: update patches for 0.15.0~dev

7 years agodeps: update vendoring for 0.15.0~dev
Luca Bruno [Fri, 25 Nov 2016 23:29:06 +0000 (23:29 +0000)]
deps: update vendoring for 0.15.0~dev

7 years agoupstream: update for 0.15.0~dev
Luca Bruno [Fri, 25 Nov 2016 23:32:57 +0000 (23:32 +0000)]
upstream: update for 0.15.0~dev

7 years agopatches: prepare deps for 0.15.0~dev
Luca Bruno [Fri, 25 Nov 2016 23:27:58 +0000 (23:27 +0000)]
patches: prepare deps for 0.15.0~dev

7 years agoMerge branch 'upstream' into debian/sid
Luca Bruno [Fri, 25 Nov 2016 23:12:01 +0000 (23:12 +0000)]
Merge branch 'upstream' into debian/sid

7 years agoMerge commit '1877f59d6b2cb057f7ef6c6b34b926fd96a683c1' into upstream
Luca Bruno [Fri, 25 Nov 2016 23:11:34 +0000 (23:11 +0000)]
Merge commit '1877f59d6b2cb057f7ef6c6b34b926fd96a683c1' into upstream

7 years agoAuto merge of #3102 - nipunn1313:attempt, r=alexcrichton
bors [Wed, 16 Nov 2016 15:02:22 +0000 (07:02 -0800)]
Auto merge of #3102 - nipunn1313:attempt, r=alexcrichton

Mix feature flags into fingerprint/metadata shorthash

Since building dependencies results in different libraries
depending on the feature flags, I added the feature flags into
the short_hash.

This solves an issue when multiple crates share a target directory
or multiple targets share a common library with divergent feature
flag choice.

I'm not sure if this architecturally the best way to solve this problem, but I did confirm that this fixes the issue I was seeing. I can also add a test for this case if this code is taking the right approach (or if it would help illustrate the issue).

7 years agoTarget_env -> Target_os
Nipunn Koorapati [Wed, 16 Nov 2016 07:46:57 +0000 (23:46 -0800)]
Target_env -> Target_os

7 years agoIgnore killing_cargo_releases_the_lock on windows
Nipunn Koorapati [Wed, 16 Nov 2016 06:48:21 +0000 (22:48 -0800)]
Ignore killing_cargo_releases_the_lock on windows

7 years agoMerge branch 'master' into attempt
Nipunn Koorapati [Tue, 15 Nov 2016 19:53:24 +0000 (11:53 -0800)]
Merge branch 'master' into attempt

- Fix instances of try! converting to ? syntax

7 years agoAuto merge of #3286 - rjgoldsborough:build-script-docs-mistake-336, r=alexcrichton
bors [Tue, 15 Nov 2016 18:44:46 +0000 (10:44 -0800)]
Auto merge of #3286 - rjgoldsborough:build-script-docs-mistake-336, r=alexcrichton

fixing build script docs mistakes

Fixes https://github.com/rust-lang/crates.io/issues/336

7 years agoIgnore the flaky lock test on older windows
Nipunn Koorapati [Tue, 15 Nov 2016 17:51:12 +0000 (09:51 -0800)]
Ignore the flaky lock test on older windows

7 years agoAuto merge of #3283 - saschagrunert:master, r=alexcrichton
bors [Tue, 15 Nov 2016 17:03:49 +0000 (09:03 -0800)]
Auto merge of #3283 - saschagrunert:master, r=alexcrichton

Changed try! macros to ? operator

Since the stabilization of the ? operator (release 1.13.0)
the ? operator should be used to use idiomatic Rust.

7 years agoAuto merge of #3294 - sanxiyn:unused-type-alias, r=alexcrichton
bors [Tue, 15 Nov 2016 15:07:57 +0000 (07:07 -0800)]
Auto merge of #3294 - sanxiyn:unused-type-alias, r=alexcrichton

Remove unused type aliases

Found by rust-lang/rust#37631 and necessary to land because of cargotest.

7 years agoRemove unused type aliases
Seo Sanghyeon [Tue, 15 Nov 2016 12:49:41 +0000 (21:49 +0900)]
Remove unused type aliases

7 years agoChanged rustversion to the last successful nightly
Sascha Grunert [Tue, 15 Nov 2016 06:44:13 +0000 (07:44 +0100)]
Changed rustversion to the last successful nightly

7 years agoAuto merge of #3272 - cuviper:openssl-1.1.0, r=alexcrichton
bors [Mon, 14 Nov 2016 21:56:07 +0000 (13:56 -0800)]
Auto merge of #3272 - cuviper:openssl-1.1.0, r=alexcrichton

Update dependencies for OpenSSL 1.1.0 compatibility

The primary targets here are openssl and openssl-sys crates 0.9,
bringing support for OpenSSL 1.1.0.  This requires updating the curl
and git2 related dependencies as well.

A small change is required in cargo itself for the new Hasher API.
Results from the hasher are simply unwrapped for now, matching the
Windows behavior that already panics on error.

7 years agoMore updates for OpenSSL 1.1.0
Alex Crichton [Wed, 9 Nov 2016 15:11:16 +0000 (07:11 -0800)]
More updates for OpenSSL 1.1.0

7 years agoChanged rustversion to 2016-11-05
Sascha Grunert [Mon, 14 Nov 2016 17:02:41 +0000 (18:02 +0100)]
Changed rustversion to 2016-11-05

7 years agoFix one more [/] in env-var test for windows
Nipunn Koorapati [Sun, 13 Nov 2016 06:16:56 +0000 (22:16 -0800)]
Fix one more [/] in env-var test for windows

7 years agoFix dll prefix/suffix test for windows
Nipunn Koorapati [Sun, 13 Nov 2016 05:49:44 +0000 (21:49 -0800)]
Fix dll prefix/suffix test for windows

7 years agoFix [/] for windows on env_metadata test
Nipunn Koorapati [Sun, 13 Nov 2016 03:27:09 +0000 (19:27 -0800)]
Fix [/] for windows on env_metadata test

7 years agoAdded back __CARGO_DEFAULT_LIB_METADATA handling with comment + test
Nipunn Koorapati [Sun, 13 Nov 2016 02:55:07 +0000 (18:55 -0800)]
Added back __CARGO_DEFAULT_LIB_METADATA handling with comment + test

7 years agofixing build script docs mistakes
Jake Goldsborough [Sat, 12 Nov 2016 17:04:02 +0000 (09:04 -0800)]
fixing build script docs mistakes

7 years agoFixed too long lines
Sascha Grunert [Sat, 12 Nov 2016 09:33:59 +0000 (10:33 +0100)]
Fixed too long lines

7 years agoChanged rustversion to latest nightly release
Sascha Grunert [Sat, 12 Nov 2016 09:19:10 +0000 (10:19 +0100)]
Changed rustversion to latest nightly release

7 years agoLink targets in the FRESH step as well
Nipunn Koorapati [Sat, 12 Nov 2016 08:26:39 +0000 (00:26 -0800)]
Link targets in the FRESH step as well

7 years agoSet OPENSSL_DIR for CI
Josh Stone [Wed, 9 Nov 2016 01:32:21 +0000 (17:32 -0800)]
Set OPENSSL_DIR for CI

7 years agoUpdate dependencies for OpenSSL 1.1.0 compatibility
Josh Stone [Tue, 8 Nov 2016 09:36:44 +0000 (01:36 -0800)]
Update dependencies for OpenSSL 1.1.0 compatibility

The primary targets here are openssl and openssl-sys crates 0.9,
bringing support for OpenSSL 1.1.0.  This requires updating the curl
and git2 related dependencies as well.

A small change is required in cargo itself for the new Hasher API.
Results from the hasher are simply unwrapped for now, matching the
Windows behavior that already panics on error.

7 years agoUpdated indent and rustversion.txt
Sascha Grunert [Fri, 11 Nov 2016 18:16:59 +0000 (19:16 +0100)]
Updated indent and rustversion.txt

7 years agoAuto merge of #3284 - alexcrichton:fix-uploads, r=alexcrichton
bors [Fri, 11 Nov 2016 15:28:07 +0000 (07:28 -0800)]
Auto merge of #3284 - alexcrichton:fix-uploads, r=alexcrichton

Publish builds from the auto-cargo branch

Cargo doesn't use auto, it uses auto-cargo

7 years agoPublish builds from the auto-cargo branch
Alex Crichton [Fri, 11 Nov 2016 15:27:31 +0000 (07:27 -0800)]
Publish builds from the auto-cargo branch

Cargo doesn't use auto, it uses auto-cargo

7 years agoChanged try! macros to ? operator
Sascha Grunert [Fri, 11 Nov 2016 13:25:20 +0000 (14:25 +0100)]
Changed try! macros to ? operator

Since the stabilization of the ? operator (release 1.13.0)
the ? operator should be used to use idiomatic Rust.

7 years agoAuto merge of #3280 - alexcrichton:test-features, r=brson
bors [Fri, 11 Nov 2016 00:20:48 +0000 (16:20 -0800)]
Auto merge of #3280 - alexcrichton:test-features, r=brson

Fix passing --features when testing multiple packages

The wrong method was being passed to resolution accidentally. Features specified
via `--features` and `--no-default-features` are spec'd as only applying to the
*current* package, not all packages.

Closes #3279

7 years agoFix passing --features when testing multiple packages
Alex Crichton [Thu, 10 Nov 2016 23:44:39 +0000 (15:44 -0800)]
Fix passing --features when testing multiple packages

The wrong method was being passed to resolution accidentally. Features specified
via `--features` and `--no-default-features` are spec'd as only applying to the
*current* package, not all packages.

Closes #3279

7 years agoAuto merge of #3278 - alexcrichton:bump, r=alexcrichton
bors [Thu, 10 Nov 2016 20:18:08 +0000 (12:18 -0800)]
Auto merge of #3278 - alexcrichton:bump, r=alexcrichton

Bump to 0.15.0

7 years agoBump to 0.15.0
Alex Crichton [Thu, 10 Nov 2016 20:17:45 +0000 (12:17 -0800)]
Bump to 0.15.0

7 years agoAuto merge of #3274 - alexcrichton:more-travis-again, r=alexcrichton
bors [Tue, 8 Nov 2016 16:30:24 +0000 (08:30 -0800)]
Auto merge of #3274 - alexcrichton:more-travis-again, r=alexcrichton

More travis again

Landing this again hopefully with the doc fix

7 years agoDon't use travis-cargo to upload docs
Alex Crichton [Tue, 8 Nov 2016 15:07:49 +0000 (07:07 -0800)]
Don't use travis-cargo to upload docs

7 years agoRevert "Revert "Continuously publish Cargo builds""
Alex Crichton [Tue, 8 Nov 2016 15:04:09 +0000 (07:04 -0800)]
Revert "Revert "Continuously publish Cargo builds""

This reverts commit b008422e92295c2e4de5b7de2284d963b55a6f8c.

7 years agoAuto merge of #3259 - alexcrichton:more-ro, r=brson
bors [Tue, 8 Nov 2016 14:47:48 +0000 (06:47 -0800)]
Auto merge of #3259 - alexcrichton:more-ro, r=brson

Open crate files readonly first

This allows Cargo to work with read-only `CARGO_HOME` directories where the
cache was prepared ahead of time.

Closes #3256

7 years agoAuto merge of #3270 - brson:cargo-docs, r=alexcrichton
bors [Tue, 8 Nov 2016 13:01:19 +0000 (05:01 -0800)]
Auto merge of #3270 - brson:cargo-docs, r=alexcrichton

Revert "Continuously publish Cargo builds"

This reverts commit 7799014dc7330445f62e2f925573ca15dd8e8e03.

Fixes https://github.com/rust-lang/cargo/issues/3269.

The reason doc.crates.io doesn't display correctly is that travis-cargo writes its own index.html that is just a meta-redirect to the api docs, overwriting cargo's own docs.

r? @alexcrichton

7 years agoRevert "Continuously publish Cargo builds"
Brian Anderson [Tue, 8 Nov 2016 02:09:22 +0000 (02:09 +0000)]
Revert "Continuously publish Cargo builds"

This reverts commit 7799014dc7330445f62e2f925573ca15dd8e8e03.

7 years agoMix feature flags into fingerprint/metadata shorthash
Nipunn Koorapati [Tue, 4 Oct 2016 23:16:30 +0000 (16:16 -0700)]
Mix feature flags into fingerprint/metadata shorthash

Since building dependencies results in different libraries
depending on the feature flags, I added the feature flags
into the short_hash. This solves an issue when multiple crates
share a target directory or multiple targets share a common
library with divergent feature flag choice.

- Only link binaries, build scripts, and top level deps
- Handle dylibs differently (no metadata filename / linking)
- Fingerprint based on link_dst rather than file_stem.

This (sadly) limits the effects of dep caching to things
which don't produce a hard-link. Currently, this is only dependent
library crates. Stil a big win.

7 years agoAdd tests for feature freshness
Nipunn Koorapati [Tue, 4 Oct 2016 22:21:16 +0000 (15:21 -0700)]
Add tests for feature freshness

7 years agoAuto merge of #3239 - alexcrichton:travis, r=brson
bors [Mon, 7 Nov 2016 06:45:50 +0000 (22:45 -0800)]
Auto merge of #3239 - alexcrichton:travis, r=brson

Continuously publish Cargo builds

This commit tweaks Cargo's automation to continuously publish builds on Travis
an AppVeyor. Once this is merged we can hopefully turn off all buildbot
automation related to Cargo and purely rely on Travis and AppVeyor for this
repository. All CI matrices are ported over to Travis and AppVeyor and a new
musl build of Cargo is even added just to test out adding that for a spin.

Currently Cargo will upload the final artifact for each target to a directory
keyed by the commit hash to a new bucket on S3, rust-lang-cargo-dev. Once we're
happy with the builds then we can change this to `rust-lang-cargo` or anything
else at that point.

7 years agoContinuously publish Cargo builds
Alex Crichton [Tue, 25 Oct 2016 06:48:39 +0000 (23:48 -0700)]
Continuously publish Cargo builds

This commit tweaks Cargo's automation to continuously publish builds on Travis
an AppVeyor. Once this is merged we can hopefully turn off all buildbot
automation related to Cargo and purely rely on Travis and AppVeyor for this
repository. All CI matrices are ported over to Travis and AppVeyor and a new
musl build of Cargo is even added just to test out adding that for a spin.

Currently Cargo will upload the final artifact for each target to a directory
keyed by the commit hash to a new bucket on S3, rust-lang-cargo-dev. Once we're
happy with the builds then we can change this to `rust-lang-cargo` or anything
else at that point.

7 years agoAuto merge of #3257 - nipunn1313:slash, r=alexcrichton
bors [Mon, 7 Nov 2016 04:38:31 +0000 (20:38 -0800)]
Auto merge of #3257 - nipunn1313:slash, r=alexcrichton

Add a [/] macro expansion for tests

Converts to backslash on windows. Currently, we're using [..],
so this will tighten up the tests.

7 years agoRevert tests/read-manifest.rs
Nipunn Koorapati [Sun, 6 Nov 2016 22:27:49 +0000 (09:27 +1100)]
Revert tests/read-manifest.rs

7 years agoOpen crate files readonly first
Alex Crichton [Sun, 6 Nov 2016 17:06:55 +0000 (09:06 -0800)]
Open crate files readonly first

This allows Cargo to work with read-only `CARGO_HOME` directories where the
cache was prepared ahead of time.

Closes #3256

7 years agoReplace instances of src[..]*.rs with [/]
Nipunn Koorapati [Sun, 6 Nov 2016 12:33:49 +0000 (23:33 +1100)]
Replace instances of src[..]*.rs with [/]

7 years agoReplace {sep} with [/] as well
Nipunn Koorapati [Sun, 6 Nov 2016 04:53:21 +0000 (15:53 +1100)]
Replace {sep} with [/] as well

7 years agoFix error in build-script
Nipunn Koorapati [Sun, 6 Nov 2016 04:05:10 +0000 (15:05 +1100)]
Fix error in build-script

7 years agoAdd a [/] macro expansion for tests
Nipunn Koorapati [Sun, 6 Nov 2016 02:14:16 +0000 (13:14 +1100)]
Add a [/] macro expansion for tests

Converts to backslash on windows. Currently, we're using [..],
so this will tighten up the tests.

7 years agoAuto merge of #3255 - alexcrichton:bump, r=alexcrichton
bors [Sat, 5 Nov 2016 00:24:51 +0000 (17:24 -0700)]
Auto merge of #3255 - alexcrichton:bump, r=alexcrichton

Update makefile to 0.14.0

7 years agoUpdate makefile to 0.14.0
Alex Crichton [Fri, 4 Nov 2016 22:44:46 +0000 (15:44 -0700)]
Update makefile to 0.14.0

7 years agoAuto merge of #3254 - alexcrichton:unignore, r=alexcrichton
bors [Fri, 4 Nov 2016 22:34:14 +0000 (15:34 -0700)]
Auto merge of #3254 - alexcrichton:unignore, r=alexcrichton

Un-ignore proc-macro tests

7 years agoAuto merge of #3249 - matklad:workspace-profiles, r=alexcrichton
bors [Fri, 4 Nov 2016 20:42:09 +0000 (13:42 -0700)]
Auto merge of #3249 - matklad:workspace-profiles, r=alexcrichton

Use a single profile set per workspace

This aims to close #3206.

I have not figured out how to do this 100% backward compatibly, that's why I want to discuss this separately, although a related PR (#3221) is already in flight.

The problem is this: suppose that you have a workspace with two members, A and B and that A includes a profiles section and B does not. Now, mentally `cd` inside B and run `cargo build`. Today, Cargo will use a default profile. We want it to use a profile from A. So here the silent behavior switch will inevitably occur :( Looks like we can't detect this situation.

So this PR just switches the behavior to always use root profiles, and to print a warning if a non-root package specifies profiles. Feel free to reuse it in any form for #3221 if that's convenient!

7 years agoUn-ignore proc-macro tests
Alex Crichton [Fri, 4 Nov 2016 20:16:28 +0000 (13:16 -0700)]
Un-ignore proc-macro tests

7 years agoAuto merge of #3253 - nipunn1313:exe, r=alexcrichton
bors [Fri, 4 Nov 2016 18:35:23 +0000 (11:35 -0700)]
Auto merge of #3253 - nipunn1313:exe, r=alexcrichton

Add an [EXE] hamcrest substitution for file extension

This should make the testing a bit more precise as to whether
we expect targets of the form foo.exe vs foo-abc123.exe. I
was also considering adding a [/] substitution for the fwd
slash vs backslash [..], but thought I would leave that to another PR
if we thought that was a good idea.

7 years agoBackticks to tests/build-script.rs
Nipunn Koorapati [Fri, 4 Nov 2016 08:00:09 +0000 (19:00 +1100)]
Backticks to tests/build-script.rs

7 years agoBuild scripts don't have .exe appended
Nipunn Koorapati [Fri, 4 Nov 2016 07:37:02 +0000 (18:37 +1100)]
Build scripts don't have .exe appended

7 years agoFix bench_dylib for win
Nipunn Koorapati [Fri, 4 Nov 2016 06:29:05 +0000 (17:29 +1100)]
Fix bench_dylib for win

7 years agoAdd an [EXE] hamcrest substitution for file extension
Nipunn Koorapati [Fri, 4 Nov 2016 05:21:43 +0000 (16:21 +1100)]
Add an [EXE] hamcrest substitution for file extension

This should make the testing a bit more precise as to whether
we expect targets of the form foo.exe vs foo-abc123.exe. I
was also considering adding a [/] substitution for the fwd
slash vs backslash [..], but thought I would leave that to another PR
if we thought that was a good idea.

7 years agoAuto merge of #3248 - alexcrichton:bad2, r=brson
bors [Thu, 3 Nov 2016 16:02:30 +0000 (09:02 -0700)]
Auto merge of #3248 - alexcrichton:bad2, r=brson

Default urls in [replace] to crates.io

The intention was to do this, and it mistakenly didn't happen!

Closes #3235

7 years agoDefault urls in [replace] to crates.io
Alex Crichton [Wed, 2 Nov 2016 17:32:35 +0000 (10:32 -0700)]
Default urls in [replace] to crates.io

The intention was to do this, and it mistakenly didn't happen!

Closes #3235

7 years agoUse a single profile set per workspace
Aleksey Kladov [Wed, 2 Nov 2016 15:16:44 +0000 (18:16 +0300)]
Use a single profile set per workspace

7 years agoAuto merge of #3243 - alexcrichton:target-feature, r=brson
bors [Thu, 3 Nov 2016 04:26:37 +0000 (21:26 -0700)]
Auto merge of #3243 - alexcrichton:target-feature, r=brson

Expose rustc cfg values to build scripts

This commit is Cargo's portion of the implementation of [RFC 1721] where it will
expose values printed by `rustc --print cfg` to build scripts.

[RFC 1721]: https://github.com/rust-lang/rfcs/blob/master/text/1721-crt-static.md

This will in turn be used to communicate features like `-C
target-feature=+crt-static` which can be used to compile objects for statically
linking against the msvcrt on MSVC.

7 years agoAuto merge of #3220 - alexcrichton:bad, r=brson
bors [Thu, 3 Nov 2016 02:12:37 +0000 (19:12 -0700)]
Auto merge of #3220 - alexcrichton:bad, r=brson

Load [replace] sections from lock files

This commit fixes a bug in Cargo where path-based [replace] dependencies were
accidentally not loaded from lock files. This meant that even with a lock
file some compilations could accidentally become nondeterministic. The fix here
is to just look at all path dependencies, even those specified through [replace]

Closes #3216

7 years agoAuto merge of #3175 - alexcrichton:bench-abort, r=brson
bors [Thu, 3 Nov 2016 00:21:23 +0000 (17:21 -0700)]
Auto merge of #3175 - alexcrichton:bench-abort, r=brson

Ignore `panic` configuration for test/bench profiles

Both of these profiles link to libtest, so it's invalid to configure them with
`panic="abort"`. To prevent confusing errors just ignore the configuration for
now.

Closes #3166

7 years agoExpose rustc cfg values to build scripts
Alex Crichton [Mon, 31 Oct 2016 23:20:38 +0000 (16:20 -0700)]
Expose rustc cfg values to build scripts

This commit is Cargo's portion of the implementation of [RFC 1721] where it will
expose values printed by `rustc --print cfg` to build scripts.

[RFC 1721]: https://github.com/rust-lang/rfcs/blob/master/text/1721-crt-static.md

This will in turn be used to communicate features like `-C
target-feature=+crt-static` which can be used to compile objects for statically
linking against the msvcrt on MSVC.

7 years agoAuto merge of #3246 - alexcrichton:mtimes-in-the-past, r=alexcrichton
bors [Wed, 2 Nov 2016 17:55:33 +0000 (10:55 -0700)]
Auto merge of #3246 - alexcrichton:mtimes-in-the-past, r=alexcrichton

Continuation of #2880

Just applied a patch to help fix the tests.

7 years agoAuto merge of #3247 - alexcrichton:doc-plugin, r=alexcrichton
bors [Wed, 2 Nov 2016 16:37:00 +0000 (09:37 -0700)]
Auto merge of #3247 - alexcrichton:doc-plugin, r=alexcrichton

Continuation of #3114

Added a test

7 years agoAdd a test for the previous PR
Alex Crichton [Wed, 2 Nov 2016 16:36:23 +0000 (09:36 -0700)]
Add a test for the previous PR

7 years agoMerge branch 'issue3107-doc-and-targets' of https://github.com/Phaiax/cargo into...
Alex Crichton [Wed, 2 Nov 2016 16:36:18 +0000 (09:36 -0700)]
Merge branch 'issue3107-doc-and-targets' of https://github.com/Phaiax/cargo into doc-plugin

7 years agoFix some tests from the previous merge
Alex Crichton [Wed, 2 Nov 2016 16:18:30 +0000 (09:18 -0700)]
Fix some tests from the previous merge

7 years agoMerge branch 'mtimes-in-the-past' of https://github.com/integer32llc/cargo into mtime...
Alex Crichton [Wed, 2 Nov 2016 16:14:25 +0000 (09:14 -0700)]
Merge branch 'mtimes-in-the-past' of https://github.com/integer32llc/cargo into mtimes-in-the-past

7 years agoIgnore `panic` configuration for test/bench profiles
Alex Crichton [Thu, 6 Oct 2016 22:32:15 +0000 (15:32 -0700)]
Ignore `panic` configuration for test/bench profiles

Both of these profiles link to libtest, so it's invalid to configure them with
`panic="abort"`. To prevent confusing errors just ignore the configuration for
now.

Closes #3166

7 years agoAuto merge of #3242 - jhbabon:cfgs-flags-per-package, r=alexcrichton
bors [Tue, 1 Nov 2016 23:06:35 +0000 (16:06 -0700)]
Auto merge of #3242 - jhbabon:cfgs-flags-per-package, r=alexcrichton

FIX: Call rustdoc test with the correct cfg flags of a package.

There was a situation in which if you you had a lib that depends on a package with features, whenever you ran the tests for the package the `rustdoc test` call was failing because it was called with the root `cfg` flags, not the package `cfg` flags.

This fix solves the issue by keeping track of the `cfg` flags per package, so the `rustdoc` command will be generated with the correct `cfg` flags.

Closes #3172

7 years agoAdd text language to code bloks in machine-readable-output.md
Juan Hernández [Tue, 1 Nov 2016 17:16:55 +0000 (18:16 +0100)]
Add text language to code bloks in machine-readable-output.md

Travis fails when running `make doc` because of this file.
This should fix the issue.

7 years agoRelax conditions in rustdoc test cfg flags tests.
Juan Hernández [Tue, 1 Nov 2016 17:14:41 +0000 (18:14 +0100)]
Relax conditions in rustdoc test cfg flags tests.

In Windows the rustdoc test output sets more double quotes, so
the test doesn't pass. We need to relax the test so it pass in
*NIX and Windows environments.

7 years agoUse better iter() semantics to collect cfg flags.
Juan Hernández [Mon, 31 Oct 2016 22:54:04 +0000 (23:54 +0100)]
Use better iter() semantics to collect cfg flags.

7 years agoFIX: Call rustdoc test with the correct cfg flags of a package.
Juan Hernández [Mon, 31 Oct 2016 18:15:03 +0000 (19:15 +0100)]
FIX: Call rustdoc test with the correct cfg flags of a package.

There was a situation in which if you you had a lib that depends
on a package with features, whenever you ran the tests for the
package the `rustdoc test` call was failing because rustdoc
was called with the root cfg flags, not the package cfg flags.

This fix solves the issue by keeping track of the cfg flags
per package, so the rustdoc command will be generated with
the correct cfg flags.

7 years agoAuto merge of #3241 - alexcrichton:curl-update, r=alexcrichton
bors [Mon, 31 Oct 2016 18:28:31 +0000 (11:28 -0700)]
Auto merge of #3241 - alexcrichton:curl-update, r=alexcrichton

Update curl and curl-sys

Pick up a few security related fixes in libcurl

7 years agoUpdate curl and curl-sys
Alex Crichton [Mon, 31 Oct 2016 18:27:31 +0000 (11:27 -0700)]
Update curl and curl-sys

Pick up a few security related fixes in libcurl

7 years agoAuto merge of #3213 - matklad:simler-locks, r=alexcrichton
bors [Mon, 31 Oct 2016 04:15:00 +0000 (21:15 -0700)]
Auto merge of #3213 - matklad:simler-locks, r=alexcrichton

Append only git checkouts

Ok, so this should fix #3209 by using a full git revision as the name of the checkout path.

I don't fully understand the code here, and I haven't thought about backwards/forwards compatibility hard, but the approach should be viable, and maybe even the implementation here is OK?

7 years agoAuto merge of #3238 - alexcrichton:fix-dox, r=alexcrichton
bors [Mon, 31 Oct 2016 02:06:06 +0000 (19:06 -0700)]
Auto merge of #3238 - alexcrichton:fix-dox, r=alexcrichton

Render machine-readable-output docs

Closes #3237

7 years agoRender machine-readable-output docs
Alex Crichton [Mon, 31 Oct 2016 02:05:39 +0000 (19:05 -0700)]
Render machine-readable-output docs

Closes #3237

7 years agoAuto merge of #3231 - TimNN:patch-1, r=alexcrichton
bors [Wed, 26 Oct 2016 17:02:31 +0000 (10:02 -0700)]
Auto merge of #3231 - TimNN:patch-1, r=alexcrichton

Fix rust-lang/rust#35203 warning/error

rust-lang/rust#35203 made patterns in functions without body into a warn by default lint (which is being `deny`ed here).

cc rust-lang/rust#37378, rust-lang/rust#37416

7 years agoAuto merge of #3179 - alexcrichton:fix-features-mulitple, r=matklad
bors [Wed, 26 Oct 2016 15:45:29 +0000 (08:45 -0700)]
Auto merge of #3179 - alexcrichton:fix-features-mulitple, r=matklad

Parse --features in `cargo metadata` the same

This accidentally didn't accept space-separated features passed through
`--features` as the logic for doing the splitting wasn't shared. Let's share it!

7 years agoFix rust-lang/rust#35203 warning/error
Tim Neumann [Wed, 26 Oct 2016 15:25:15 +0000 (17:25 +0200)]
Fix rust-lang/rust#35203 warning/error

rust-lang/rust#35203 made patterns in functions without body into a warn by default lint (which is being `deny`ed here).

7 years agoAuto merge of #3230 - alexcrichton:better-download, r=alexcrichton
bors [Wed, 26 Oct 2016 02:46:42 +0000 (19:46 -0700)]
Auto merge of #3230 - alexcrichton:better-download, r=alexcrichton

Download mingw from more reliable location

Use the same "mirror" the rust repo uses

7 years agoDownload mingw from more reliable location
Alex Crichton [Wed, 26 Oct 2016 02:46:09 +0000 (19:46 -0700)]
Download mingw from more reliable location

Use the same "mirror" the rust repo uses

7 years agoAuto merge of #3217 - alexcrichton:fix-regression, r=brson
bors [Wed, 26 Oct 2016 00:00:14 +0000 (17:00 -0700)]
Auto merge of #3217 - alexcrichton:fix-regression, r=brson

Ignore summaries in downloaded crates

Unfortunately historical Cargo bugs have made it such that the index sometimes
differs from the actual crate we download. Let's respect the index, however,
which should be our source of truth.

Closes #3214

7 years agoIgnore summaries in downloaded crates
Alex Crichton [Thu, 20 Oct 2016 22:07:18 +0000 (15:07 -0700)]
Ignore summaries in downloaded crates

Unfortunately historical Cargo bugs have made it such that the index sometimes
differs from the actual crate we download. Let's respect the index, however,
which should be our source of truth.

Closes #3214

7 years agoAuto merge of #3229 - martinhath:master, r=alexcrichton
bors [Tue, 25 Oct 2016 21:18:01 +0000 (14:18 -0700)]
Auto merge of #3229 - martinhath:master, r=alexcrichton

Add fix and test for #3224

This commit fixes #3224, and adds a test for it.
First time contributor to Cargo here, so I'm sorry if I put stuff the wrong places :)

7 years agoAdd fix and test for #3224
Martin Hafskjold Thoresen [Tue, 25 Oct 2016 18:52:47 +0000 (20:52 +0200)]
Add fix and test for #3224

7 years agoAuto merge of #3226 - alexcrichton:more-cross, r=alexcrichton
bors [Tue, 25 Oct 2016 05:31:40 +0000 (22:31 -0700)]
Auto merge of #3226 - alexcrichton:more-cross, r=alexcrichton

Download more cross builds