Skip to content

Commit 0c0f9ae

Browse files
committed
Auto merge of #7568 - ehuss:version-bump, r=alexcrichton
Update verison to 0.42 - Update changelog - Update some tests - Fix a nightly warning - Remove `--crate-type` check for rustdoc.
2 parents 22b08c4 + 1df81ee commit 0c0f9ae

File tree

8 files changed

+82
-42
lines changed

8 files changed

+82
-42
lines changed

CHANGELOG.md

+72-2
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,78 @@
11
# Changelog
22

3+
## Cargo 1.41 (2019-01-30)
4+
[5da4b4d4...HEAD](https://github.com/rust-lang/cargo/compare/5da4b4d4...HEAD)
5+
6+
### Added
7+
### Changed
8+
### Fixed
9+
310
## Cargo 1.40 (2019-12-19)
4-
[4b105b6a...HEAD](https://github.com/rust-lang/cargo/compare/4b105b6a...HEAD)
11+
[1c6ec66d...rust-1.40.0](https://github.com/rust-lang/cargo/compare/1c6ec66d...rust-1.40.0)
512

613
### Added
714
- (Nightly only): The `mtime-on-use` feature may now be enabled via the
815
`unstable.mtime_on_use` config option.
916
[#7411](https://github.com/rust-lang/cargo/pull/7411)
17+
- Added `http.ssl-version` config option to control the version of TLS,
18+
along with min/max versions.
19+
[#7308](https://github.com/rust-lang/cargo/pull/7308)
20+
- (Nightly only): Added support for named profiles.
21+
[#6989](https://github.com/rust-lang/cargo/pull/6989)
22+
- 🔥 Compiler warnings are now cached on disk. If a build generates warnings,
23+
re-running the build will now re-display the warnings.
24+
[#7450](https://github.com/rust-lang/cargo/pull/7450)
25+
- (Nightly only): Added `-Zpanic-abort-tests` to allow building and running
26+
tests with the "abort" panic strategy.
27+
[#7460](https://github.com/rust-lang/cargo/pull/7460)
28+
- Added `--filter-platform` option to `cargo metadata` to narrow the nodes
29+
shown in the resolver graph to only packages included for the given target
30+
triple.
31+
[#7376](https://github.com/rust-lang/cargo/pull/7376)
1032

1133
### Changed
1234
- Cargo's "platform" `cfg` parsing has been extracted into a separate crate
1335
named `cargo-platform`.
1436
[#7375](https://github.com/rust-lang/cargo/pull/7375)
37+
- (Nightly only): Changed `build-std` to use `--sysroot`.
38+
[#7421](https://github.com/rust-lang/cargo/pull/7421)
39+
- (Nightly only): Various fixes and enhancements to `-Ztimings`.
40+
[#7395](https://github.com/rust-lang/cargo/pull/7395)
41+
[#7398](https://github.com/rust-lang/cargo/pull/7398)
42+
[#7397](https://github.com/rust-lang/cargo/pull/7397)
43+
[#7403](https://github.com/rust-lang/cargo/pull/7403)
44+
[#7428](https://github.com/rust-lang/cargo/pull/7428)
45+
[#7429](https://github.com/rust-lang/cargo/pull/7429)
46+
- Dependencies extracted into Cargo's cache no longer preserve mtimes to
47+
reduce syscall overhead.
48+
[#7465](https://github.com/rust-lang/cargo/pull/7465)
49+
- Windows: EXE files no longer include a metadata hash in the filename.
50+
This helps with debuggers correlating the filename with the PDB file.
51+
[#7400](https://github.com/rust-lang/cargo/pull/7400)
52+
- Wasm32: `.wasm` files are no longer treated as an "executable", allowing
53+
`cargo test` and `cargo run` to work properly with the generated `.js` file.
54+
[#7476](https://github.com/rust-lang/cargo/pull/7476)
55+
- crates.io now supports SPDX 3.6 licenses.
56+
[#7481](https://github.com/rust-lang/cargo/pull/7481)
57+
- Improved cyclic dependency error message.
58+
[#7470](https://github.com/rust-lang/cargo/pull/7470)
59+
- Bare `cargo clean` no longer locks the package cache.
60+
[#7502](https://github.com/rust-lang/cargo/pull/7502)
61+
- `cargo publish` now allows dev-dependencies without a version key to be
62+
published. A git or path-only dev-dependency will be removed from the
63+
package manifest before uploading.
64+
[#7333](https://github.com/rust-lang/cargo/pull/7333)
65+
- (Nightly only): Profile overrides have renamed the syntax to be
66+
`[profile.dev.package.NAME]`.
67+
[#7504](https://github.com/rust-lang/cargo/pull/7504)
68+
- `--features` and `--no-default-features` in the root of a virtual workspace
69+
will now generate an error instead of being ignored.
70+
[#7507](https://github.com/rust-lang/cargo/pull/7507)
71+
- Generated files (like `Cargo.toml` and `Cargo.lock`) in a package archive
72+
now have their timestamp set to the current time instead of the epoch.
73+
[#7523](https://github.com/rust-lang/cargo/pull/7523)
74+
- The `-Z` flag parser is now more strict, rejecting more invalid syntax.
75+
[#7531](https://github.com/rust-lang/cargo/pull/7531)
1576

1677
### Fixed
1778
- Fixed an issue where if a package had an `include` field, and `Cargo.lock`
@@ -21,9 +82,14 @@
2182
[#7448](https://github.com/rust-lang/cargo/pull/7448)
2283
- Fixed a panic in a particular combination of `[patch]` entries.
2384
[#7452](https://github.com/rust-lang/cargo/pull/7452)
85+
- Windows: Better error message when `cargo test` or `rustc` crashes in an
86+
abnormal way, such as a signal or seg fault.
87+
[#7535](https://github.com/rust-lang/cargo/pull/7535)
88+
- (Nightly only): Fixed warnings for unused profile overrides in a workspace.
89+
[#7536](https://github.com/rust-lang/cargo/pull/7536)
2490

2591
## Cargo 1.39 (2019-11-07)
26-
[e853aa97...4b105b6a](https://github.com/rust-lang/cargo/compare/e853aa97...4b105b6a)
92+
[e853aa97...1c6ec66d](https://github.com/rust-lang/cargo/compare/e853aa97...1c6ec66d)
2793

2894
### Added
2995
- Config files may now use the `.toml` filename extension.
@@ -90,6 +156,10 @@
90156
changed. It now chooses the crate with the greatest number of transitive
91157
crates waiting on it. Previously it used a maximum topological depth.
92158
[#7390](https://github.com/rust-lang/cargo/pull/7390)
159+
- RUSTFLAGS are no longer incorporated in the metadata and filename hash,
160+
reversing the change from 1.33 that added it. This means that any change to
161+
RUSTFLAGS will cause a recompile, and will not affect symbol munging.
162+
[#7459](https://github.com/rust-lang/cargo/pull/7459)
93163

94164
### Fixed
95165
- Git dependencies with submodules with shorthand SSH URLs (like

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo"
3-
version = "0.41.0"
3+
version = "0.42.0"
44
edition = "2018"
55
authors = ["Yehuda Katz <[email protected]>",
66
"Carl Lerche <[email protected]>",
@@ -22,7 +22,7 @@ path = "src/cargo/lib.rs"
2222
atty = "0.2"
2323
bytesize = "1.0"
2424
cargo-platform = { path = "crates/cargo-platform", version = "0.1" }
25-
crates-io = { path = "crates/crates-io", version = "0.29" }
25+
crates-io = { path = "crates/crates-io", version = "0.30" }
2626
crossbeam-utils = "0.7"
2727
crypto-hash = "0.3.1"
2828
curl = { version = "0.4.23", features = ["http2"] }

crates/cargo-test-support/src/paths.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ impl CargoPathExt for Path {
127127

128128
fn move_in_time<F>(&self, travel_amount: F)
129129
where
130-
F: Fn(i64, u32) -> ((i64, u32)),
130+
F: Fn(i64, u32) -> (i64, u32),
131131
{
132132
if self.is_file() {
133133
time_travel(self, &travel_amount);
@@ -137,7 +137,7 @@ impl CargoPathExt for Path {
137137

138138
fn recurse<F>(p: &Path, bad: &Path, travel_amount: &F)
139139
where
140-
F: Fn(i64, u32) -> ((i64, u32)),
140+
F: Fn(i64, u32) -> (i64, u32),
141141
{
142142
if p.is_file() {
143143
time_travel(p, travel_amount)
@@ -151,7 +151,7 @@ impl CargoPathExt for Path {
151151

152152
fn time_travel<F>(path: &Path, travel_amount: &F)
153153
where
154-
F: Fn(i64, u32) -> ((i64, u32)),
154+
F: Fn(i64, u32) -> (i64, u32),
155155
{
156156
let stat = t!(path.symlink_metadata());
157157

crates/crates-io/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "crates-io"
3-
version = "0.29.0"
3+
version = "0.30.0"
44
edition = "2018"
55
authors = ["Alex Crichton <[email protected]>"]
66
license = "MIT OR Apache-2.0"

src/cargo/core/compiler/compilation.rs

+3-18
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use semver::Version;
99
use super::BuildContext;
1010
use crate::core::compiler::CompileKind;
1111
use crate::core::{Edition, InternedString, Package, PackageId, Target};
12-
use crate::util::{self, join_paths, process, rustc::Rustc, CargoResult, Config, ProcessBuilder};
12+
use crate::util::{self, join_paths, process, CargoResult, Config, ProcessBuilder};
1313

1414
pub struct Doctest {
1515
/// The package being doc-tested.
@@ -75,7 +75,6 @@ pub struct Compilation<'cfg> {
7575
primary_unit_rustc_process: Option<ProcessBuilder>,
7676

7777
target_runner: Option<(PathBuf, Vec<String>)>,
78-
supports_rustdoc_crate_type: bool,
7978
}
8079

8180
impl<'cfg> Compilation<'cfg> {
@@ -115,7 +114,6 @@ impl<'cfg> Compilation<'cfg> {
115114
host: bcx.host_triple().to_string(),
116115
target: default_kind.short_name(bcx).to_string(),
117116
target_runner: target_runner(bcx, default_kind)?,
118-
supports_rustdoc_crate_type: supports_rustdoc_crate_type(bcx.config, &bcx.rustc)?,
119117
})
120118
}
121119

@@ -148,10 +146,8 @@ impl<'cfg> Compilation<'cfg> {
148146
p.arg(format!("--edition={}", target.edition()));
149147
}
150148

151-
if self.supports_rustdoc_crate_type {
152-
for crate_type in target.rustc_crate_types() {
153-
p.arg("--crate-type").arg(crate_type);
154-
}
149+
for crate_type in target.rustc_crate_types() {
150+
p.arg("--crate-type").arg(crate_type);
155151
}
156152

157153
Ok(p)
@@ -331,14 +327,3 @@ fn target_runner(
331327

332328
Ok(None)
333329
}
334-
335-
fn supports_rustdoc_crate_type(config: &Config, rustc: &Rustc) -> CargoResult<bool> {
336-
// NOTE: Unconditionally return 'true' once support for
337-
// rustdoc '--crate-type' rides to stable
338-
let mut crate_type_test = process(config.rustdoc()?);
339-
// If '--crate-type' is not supported by rustcoc, this command
340-
// will exit with an error. Otherwise, it will print a help message,
341-
// and exit successfully
342-
crate_type_test.args(&["--crate-type", "proc-macro", "--help"]);
343-
Ok(rustc.cached_output(&crate_type_test).is_ok())
344-
}

tests/testsuite/build_script.rs

-5
Original file line numberDiff line numberDiff line change
@@ -2276,11 +2276,6 @@ fn flags_go_into_tests() {
22762276

22772277
#[cargo_test]
22782278
fn diamond_passes_args_only_once() {
2279-
// FIXME: when pipelining rides to stable, enable this test on all channels.
2280-
if !cargo_test_support::is_nightly() {
2281-
return;
2282-
}
2283-
22842279
let p = project()
22852280
.file(
22862281
"Cargo.toml",

tests/testsuite/rustc_info_cache.rs

-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ use std::env;
44

55
#[cargo_test]
66
fn rustc_info_cache() {
7-
// FIXME: when pipelining rides to stable, enable this test on all channels.
8-
if !cargo_test_support::is_nightly() {
9-
return;
10-
}
11-
127
let p = project()
138
.file("src/main.rs", r#"fn main() { println!("hello"); }"#)
149
.build();

tests/testsuite/rustdoc.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use cargo_test_support::{basic_manifest, is_nightly, project};
1+
use cargo_test_support::{basic_manifest, project};
22

33
#[cargo_test]
44
fn rustdoc_simple() {
@@ -163,11 +163,6 @@ fn features() {
163163

164164
#[cargo_test]
165165
fn proc_macro_crate_type() {
166-
// NOTE - Remove this once 'rustdoc --crate-type'
167-
// rides to stable
168-
if !is_nightly() {
169-
return;
170-
}
171166
let p = project()
172167
.file(
173168
"Cargo.toml",

0 commit comments

Comments
 (0)