Skip to content

Commit

Permalink
Working around rust-lang#24 for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibabushkin committed Aug 9, 2017
1 parent fb4119b commit ce9562b
Show file tree
Hide file tree
Showing 3 changed files with 1,327 additions and 11 deletions.
14 changes: 7 additions & 7 deletions tests/examples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,18 @@ macro_rules! test {
}

macro_rules! full_test {
($name:ident, $old_version:expr, $new_version:expr) => {
($name:ident, $crate_name:expr, $old_version:expr, $new_version:expr) => {
#[test]
fn $name() {
let mut success = true;

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

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

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

full_test!(log, "0.3.4", "0.3.8");
full_test!(serde, "0.7.0", "1.0.0");
// full_test!(serde, "1.0.0", "1.0.8");
full_test!(log, "log", "0.3.4", "0.3.8");
// full_test!(serde_pre, "serde", "0.7.0", "1.0.0");
// full_test!(serde_post, "serde", "1.0.0", "1.0.8");
11 changes: 7 additions & 4 deletions tests/full_cases/serde-0.7.0-1.0.0
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Blocking waiting for file lock on the registry index
Blocking waiting for file lock on the registry index
Updating registry `https://github.com/rust-lang/crates.io-index`
Fresh serde v1.0.0
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
Finished dev [unoptimized + debuginfo] target(s) in 0.1 secs
Blocking waiting for file lock on the registry index
Updating registry `https://github.com/rust-lang/crates.io-index`
Fresh serde v0.7.0
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
Expand Down Expand Up @@ -2914,7 +2917,7 @@ error: breaking changes in `old::de::impls::<impl old::Deserialize for std::mark
|
= warning: trait impl specialized or removed (breaking)

error: path changes to `VecDequeVisitor`
error: path changes to `BTreeSetVisitor`
--> /home/twk/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-0.7.0/src/de/impls.rs:356:9
|
356 | / pub struct $visitor_name<T> {
Expand Down Expand Up @@ -3268,7 +3271,7 @@ warning: variant with no public fields changed to a struct variant (breaking)
123 | | }
| |_^

error: breaking changes in `U8Deserializer`
error: breaking changes in `F32Deserializer`
--> /home/twk/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.0/src/de/value.rs:159:9
|
159 | / pub struct $name<E> {
Expand Down Expand Up @@ -4076,7 +4079,7 @@ error: path changes to `SeqIteratorVisitor`
|
= warning: removed definition (breaking)

error: path changes to `TupleVisitor10`
error: path changes to `TupleVisitor8`
--> /home/twk/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-0.7.0/src/ser/impls.rs:377:13
|
377 | / pub struct $TupleVisitor<'a, $($T: 'a),+> {
Expand Down
Loading

0 comments on commit ce9562b

Please sign in to comment.