nrc / derive-new

derive simple constructor functions for Rust structs
MIT License
525 stars 35 forks source link

Update `syn`, `quote` and `proc-macro2` #37

Closed hcpl closed 6 years ago

nrc commented 6 years ago

Looks like nightly tests are failing. Do you know what is happening there?

hcpl commented 6 years ago

This is because each of these commands: https://github.com/nrc/derive-new/blob/f944f104c64cc4104c6c47c0c3baca9363c7f0c3/.travis.yml#L6-L9 creates its own target/debug/deps/libderive_new-${hash}.so with a unique hash which confuses compiletest_rs since it doesn't know how to tell which one is the right one.

nrc commented 6 years ago

Thanks for the PR!

hcpl commented 6 years ago

I just tried the script below which resolved this problem for me:

#!/bin/sh
cargo +nightly test
rm target/debug/deps/libderive_new-*.so
cargo +nightly test --manifest-path testcrate/Cargo.toml

I'll try to adapt this for .travis.yml in the next PR.