Project

General

Profile

Actions

Bug #5914

open

rust: compile error related to nom-derive-impl / syn 2.0

Added by Victor Julien about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

error[E0433]: failed to resolve: could not find `NestedMeta` in `syn`
  --> /home/victor/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-derive-impl-0.10.0/src/enums.rs:70:42
   |
70 | ...                   syn::NestedMeta::Meta(meta) => match meta {
   |                            ^^^^^^^^^^ could not find `NestedMeta` in `syn`

error[E0433]: failed to resolve: use of undeclared type `LifetimeDef`
   --> /home/victor/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-derive-impl-0.10.0/src/gen/generator.rs:145:42
    |
145 |             .push(GenericParam::Lifetime(LifetimeDef::new(lft.clone())));
    |                                          ^^^^^^^^^^^ use of undeclared type `LifetimeDef`

error[E0277]: the trait bound `MetaAttr: ToTokens` is not satisfied
   --> /home/victor/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-derive-impl-0.10.0/src/meta/attr.rs:219:6
    |
219 | impl Spanned for MetaAttr {
    |      ^^^^^^^ the trait `ToTokens` is not implemented for `MetaAttr`
    |
    = help: the following other types implement trait `ToTokens`:
              &'a T
              &'a mut T
              Abi
              Abstract
              AndAnd
              AndEq
              AngleBracketedGenericArguments
              Arm
            and 303 others
    = note: required for `MetaAttr` to implement `quote::spanned::Spanned`
    = note: required for `MetaAttr` to implement `syn::spanned::private::Sealed`
note: required by a bound in `syn::spanned::Spanned`
   --> /home/victor/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-2.0.0/src/spanned.rs:96:20
    |
96  | pub trait Spanned: private::Sealed {
    |                    ^^^^^^^^^^^^^^^ required by this bound in `syn::spanned::Spanned`

Some errors have detailed explanations: E0277, E0433.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `nom-derive-impl` due to 3 previous errors
warning: build failed, waiting for other jobs to finish...

https://github.com/rust-bakery/nom-derive/issues/47

No data to display

Actions

Also available in: Atom PDF