mcarton / rust-derivative

A set of alternative `derive` attributes for Rust
Apache License 2.0
420 stars 46 forks source link

derive-debug-generics test fails with Rust 1.66+ #106

Open decathorpe opened 1 year ago

decathorpe commented 1 year ago

I'm not sure if this indicative of a problem with the generated code, or if the assumptions in the test code are now just wrong as of Rust 1.66. Either way, I wanted to report it here.

     Running `/builddir/build/BUILD/derivative-2.2.0/target/release/deps/derive_debug_generics-8b29494a2be13c56`
running 1 test
test main ... FAILED
failures:
---- main stdout ----
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `"PhantomField { foo: PhantomData<derive_debug_generics::NoDebug> }"`,
 right: `"PhantomField { foo: PhantomData }"`', tests/derive-debug-generics.rs:91:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
    main
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
error: test failed, to rerun pass `--test derive-debug-generics`