Skip to content

Commit ce9562b

Browse files
committed
Working around rust-lang#24 for now.
1 parent fb4119b commit ce9562b

File tree

3 files changed

+1327
-11
lines changed

3 files changed

+1327
-11
lines changed

tests/examples.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,18 +97,18 @@ macro_rules! test {
9797
}
9898

9999
macro_rules! full_test {
100-
($name:ident, $old_version:expr, $new_version:expr) => {
100+
($name:ident, $crate_name:expr, $old_version:expr, $new_version:expr) => {
101101
#[test]
102102
fn $name() {
103103
let mut success = true;
104104

105-
let old_version = concat!(stringify!($name), "-", $old_version);
106-
let new_version = concat!(stringify!($name), "-", $new_version);
105+
let old_version = concat!($crate_name, "-", $old_version);
106+
let new_version = concat!($crate_name, "-", $new_version);
107107

108108
let current_dir = env::current_dir().expect("could not determine current dir");
109109
let subst = format!("s#{}#$REPO_PATH#g", current_dir.to_str().unwrap());
110110
let out_file = Path::new("tests/full_cases")
111-
.join(concat!(stringify!($name), "-", $old_version, "-", $new_version));
111+
.join(concat!($crate_name, "-", $old_version, "-", $new_version));
112112

113113
if let Some(path) = env::var_os("PATH") {
114114
let mut paths = env::split_paths(&path).collect::<Vec<_>>();
@@ -188,6 +188,6 @@ test!(traits);
188188
test!(trait_impls);
189189
test!(ty_alias);
190190

191-
full_test!(log, "0.3.4", "0.3.8");
192-
full_test!(serde, "0.7.0", "1.0.0");
193-
// full_test!(serde, "1.0.0", "1.0.8");
191+
full_test!(log, "log", "0.3.4", "0.3.8");
192+
// full_test!(serde_pre, "serde", "0.7.0", "1.0.0");
193+
// full_test!(serde_post, "serde", "1.0.0", "1.0.8");

tests/full_cases/serde-0.7.0-1.0.0

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
Blocking waiting for file lock on the registry index
2+
Blocking waiting for file lock on the registry index
13
Updating registry `https://github.com/rust-lang/crates.io-index`
24
Fresh serde v1.0.0
3-
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
5+
Finished dev [unoptimized + debuginfo] target(s) in 0.1 secs
6+
Blocking waiting for file lock on the registry index
47
Updating registry `https://github.com/rust-lang/crates.io-index`
58
Fresh serde v0.7.0
69
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
@@ -2914,7 +2917,7 @@ error: breaking changes in `old::de::impls::<impl old::Deserialize for std::mark
29142917
|
29152918
= warning: trait impl specialized or removed (breaking)
29162919

2917-
error: path changes to `VecDequeVisitor`
2920+
error: path changes to `BTreeSetVisitor`
29182921
--> /home/twk/.cargo/registry/src/git.cakeli.workers.dev-1ecc6299db9ec823/serde-0.7.0/src/de/impls.rs:356:9
29192922
|
29202923
356 | / pub struct $visitor_name<T> {
@@ -3268,7 +3271,7 @@ warning: variant with no public fields changed to a struct variant (breaking)
32683271
123 | | }
32693272
| |_^
32703273

3271-
error: breaking changes in `U8Deserializer`
3274+
error: breaking changes in `F32Deserializer`
32723275
--> /home/twk/.cargo/registry/src/git.cakeli.workers.dev-1ecc6299db9ec823/serde-1.0.0/src/de/value.rs:159:9
32733276
|
32743277
159 | / pub struct $name<E> {
@@ -4076,7 +4079,7 @@ error: path changes to `SeqIteratorVisitor`
40764079
|
40774080
= warning: removed definition (breaking)
40784081

4079-
error: path changes to `TupleVisitor10`
4082+
error: path changes to `TupleVisitor8`
40804083
--> /home/twk/.cargo/registry/src/git.cakeli.workers.dev-1ecc6299db9ec823/serde-0.7.0/src/ser/impls.rs:377:13
40814084
|
40824085
377 | / pub struct $TupleVisitor<'a, $($T: 'a),+> {

0 commit comments

Comments
 (0)