Skip to content

Commit

Permalink
Add missing feature to syn (#5547)
Browse files Browse the repository at this point in the history
### Description

Cargo check currently fails with:

```
error[E0277]: `syn::Type` doesn't implement `Debug`
 --> crates/turbo-tasks-macros-shared/src/primitive_input.rs:8:5
  |
6 | #[derive(Debug)]
  |          ----- in this derive macro expansion
7 | pub struct PrimitiveInput {
8 |     pub ty: Type,
  |     ^^^^^^^^^^^^ `syn::Type` cannot be formatted using `{:?}` because it doesn't implement `Debug`
  |
  = help: the trait `Debug` is not implemented for `syn::Type`
  = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0277`.
error: could not compile `turbo-tasks-macros-shared` (lib) due to previous error
```

This is because because turbo-tasks-macros-shared (which is missing a
syn feature to enable the debug trait) is part of the workspace default
members, while turbo-tasks-macros (which has the feature) isn’t.

### Testing Instructions

`cargo check`
  • Loading branch information
alexkirsz authored Jul 17, 2023
1 parent 78f6cc8 commit 5279282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/turbo-tasks-macros-shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ bench = false
[dependencies]
proc-macro2 = { workspace = true }
quote = { workspace = true }
syn = { workspace = true, features = ["full"] }
syn = { workspace = true, features = ["full", "extra-traits"] }

0 comments on commit 5279282

Please sign in to comment.