CertainLach/jrsonnet

the trait `Trace` is not implemented for `Rc<anyhow::Error>`

JMLX42 opened this issue · 0 comments

How to reproduce

git checkout v0.4.2
cargo build -F "anyhow-error"
error[E0277]: the trait bound `Rc<anyhow::Error>: Trace` is not satisfied
  --> crates/jrsonnet-evaluator/src/error.rs:15:31
   |
15 | #[derive(Error, Debug, Clone, Trace)]
   |                               ^^^^^ the trait `Trace` is not implemented for `Rc<anyhow::Error>`
   |
   = help: the following other types implement trait `Trace`:
             Rc<Path>
             Rc<str>
note: required by a bound in `_DERIVE_jrsonnet_gc_Trace_FOR_Error::<impl Trace for error::Error>::trace::mark`
  --> crates/jrsonnet-evaluator/src/error.rs:15:31
   |
15 | #[derive(Error, Debug, Clone, Trace)]
   |                               ^^^^^ required by this bound in `_DERIVE_jrsonnet_gc_Trace_FOR_Error::<impl Trace for error::Error>::trace::mark`
   = note: this error originates in the derive macro `Trace` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `Rc<anyhow::Error>: Trace` is not satisfied
  --> crates/jrsonnet-evaluator/src/error.rs:15:31
   |
15 | #[derive(Error, Debug, Clone, Trace)]
   |                               ^^^^^ the trait `Trace` is not implemented for `Rc<anyhow::Error>`
   |
   = help: the following other types implement trait `Trace`:
             Rc<Path>
             Rc<str>
note: required by a bound in `_DERIVE_jrsonnet_gc_Trace_FOR_Error::<impl Trace for error::Error>::root::mark`
  --> crates/jrsonnet-evaluator/src/error.rs:15:31
   |
15 | #[derive(Error, Debug, Clone, Trace)]
   |                               ^^^^^ required by this bound in `_DERIVE_jrsonnet_gc_Trace_FOR_Error::<impl Trace for error::Error>::root::mark`
   = note: this error originates in the derive macro `Trace` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `Rc<anyhow::Error>: Trace` is not satisfied
  --> crates/jrsonnet-evaluator/src/error.rs:15:31
   |
15 | #[derive(Error, Debug, Clone, Trace)]
   |                               ^^^^^ the trait `Trace` is not implemented for `Rc<anyhow::Error>`
   |
   = help: the following other types implement trait `Trace`:
             Rc<Path>
             Rc<str>
note: required by a bound in `_DERIVE_jrsonnet_gc_Trace_FOR_Error::<impl Trace for error::Error>::unroot::mark`
  --> crates/jrsonnet-evaluator/src/error.rs:15:31
   |
15 | #[derive(Error, Debug, Clone, Trace)]
   |                               ^^^^^ required by this bound in `_DERIVE_jrsonnet_gc_Trace_FOR_Error::<impl Trace for error::Error>::unroot::mark`
   = note: this error originates in the derive macro `Trace` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `Rc<anyhow::Error>: Trace` is not satisfied
  --> crates/jrsonnet-evaluator/src/error.rs:15:31
   |
15 | #[derive(Error, Debug, Clone, Trace)]
   |                               ^^^^^ the trait `Trace` is not implemented for `Rc<anyhow::Error>`
   |
   = help: the following other types implement trait `Trace`:
             Rc<Path>
             Rc<str>
note: required by a bound in `_DERIVE_jrsonnet_gc_Trace_FOR_Error::<impl Trace for error::Error>::finalize_glue::mark`
  --> crates/jrsonnet-evaluator/src/error.rs:15:31
   |
15 | #[derive(Error, Debug, Clone, Trace)]
   |                               ^^^^^ required by this bound in `_DERIVE_jrsonnet_gc_Trace_FOR_Error::<impl Trace for error::Error>::finalize_glue::mark`
   = note: this error originates in the derive macro `Trace` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0277`.
warning: `jrsonnet-evaluator` (lib) generated 40 warnings
error: could not compile `jrsonnet-evaluator` due to 4 previous errors; 40 warnings emitted