Closed hulto closed 4 months ago
Hmm, that is kinda weird. I guess it's because of the update to syn 2.x Were you able to workaround the issue? I think probably changing the attribute to something like this would probably work:
#[display(fmt = "{}", stringify(Foo))]
I did I ended up hard pinning to the older version for now. That work around also seems to work though! Thanks 🙂
I'm going wo be closing this. Even though it's a real issue, I don't think there's much I can do about this now. And there's multiple simple workarounds.
Problem
Recently ran into an issue with
derive_more::Display
and cargo's assumption of semver support. When building my project in CI cargo allowed the patch version forderive_more
to creep forward one patch verison0.99.17
-->0.99.18
. This resulted in the build failing when#[display(fmt = stringify!(Foo))]
stopped supporting the standard librariesstringify!()
macro.Below is a minimal example and error to reproduce the error.
Working Example
cargo.toml
main.rs
Output:
Failing Example
cargo.toml
main.rs
Error: