Skip to content

Commit ed0255e

Browse files
committed
Auto merge of #3455 - alexcrichton:bump2, r=alexcrichton
Bump crates-io to 0.5
2 parents d55dbc4 + f8cfd4d commit ed0255e

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ path = "src/cargo/lib.rs"
1818

1919
[dependencies]
2020
advapi32-sys = "0.2"
21-
crates-io = { path = "src/crates-io", version = "0.4" }
21+
crates-io = { path = "src/crates-io", version = "0.5" }
2222
crossbeam = "0.2"
2323
curl = "0.4"
2424
docopt = "0.6"

src/crates-io/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "crates-io"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
authors = ["Alex Crichton <[email protected]>"]
55
license = "MIT/Apache-2.0"
66
repository = "https://github.com/rust-lang/cargo"

tests/check.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ use hamcrest::assert_that;
77

88
#[test]
99
fn check_success() {
10+
if !is_nightly() {
11+
return
12+
}
1013
let foo = project("foo")
1114
.file("Cargo.toml", r#"
1215
[package]
@@ -35,13 +38,15 @@ fn check_success() {
3538
"#);
3639
bar.build();
3740

38-
let expected = if is_nightly() { 0 } else { 101 };
3941
assert_that(foo.cargo_process("check"),
40-
execs().with_status(expected));
42+
execs().with_status(0));
4143
}
4244

4345
#[test]
4446
fn check_fail() {
47+
if !is_nightly() {
48+
return
49+
}
4550
let foo = project("foo")
4651
.file("Cargo.toml", r#"
4752
[package]
@@ -76,6 +81,9 @@ fn check_fail() {
7681

7782
#[test]
7883
fn custom_derive() {
84+
if !is_nightly() {
85+
return
86+
}
7987
let foo = project("foo")
8088
.file("Cargo.toml", r#"
8189
[package]
@@ -128,9 +136,8 @@ pub fn derive(_input: TokenStream) -> TokenStream {
128136
"#);
129137
bar.build();
130138

131-
let expected = if is_nightly() { 0 } else { 101 };
132139
assert_that(foo.cargo_process("check"),
133-
execs().with_status(expected));
140+
execs().with_status(0));
134141
}
135142

136143
#[test]

0 commit comments

Comments
 (0)