kpcyrd/sniffglue

compile fail 0.16.0 could not find `NestedMeta` in `syn` on FreeBSD

Martinfx opened this issue · 0 comments

Hi,
i tried compile version 0.16.0

   Compiling nom-derive-impl v0.10.0
     Running `CARGO=/usr/local/bin/cargo CARGO_CRATE_NAME=nom_derive_impl CARGO_MANIFEST_DIR=/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/sniffglue-0.16.0/cargo-crates/nom-derive-impl-0.10.0 CARGO_PKG_AUTHORS='Pierre Chifflier <chifflier@wzdftpd.net>' CARGO_PKG_DESCRIPTION='Custom derive nom parsers from struct' CARGO_PKG_HOMEPAGE='https://github.com/rust-bakery/nom-derive' CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=nom-derive-impl CARGO_PKG_README=../README.md CARGO_PKG_REPOSITORY='https://github.com/rust-bakery/nom-derive.git' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.10.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=10 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/target/debug/deps:/usr/local/lib' /usr/local/bin/rustc --crate-name nom_derive_impl --edition=2018 /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/sniffglue-0.16.0/cargo-crates/nom-derive-impl-0.10.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=238 --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C debuginfo=2 -C metadata=73bf112996690947 -C extra-filename=-73bf112996690947 --out-dir /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/target/debug/deps -C linker=clang15 -L dependency=/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/target/debug/deps --extern proc_macro2=/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/target/debug/deps/libproc_macro2-cc45d2137bcd54f6.rlib --extern quote=/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/target/debug/deps/libquote-b4143c495ec148cf.rlib --extern syn=/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/target/debug/deps/libsyn-c64f97925951f4c1.rlib --extern proc_macro --cap-lints warn`
error[E0433]: failed to resolve: could not find `NestedMeta` in `syn`
  --> /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/sniffglue-0.16.0/cargo-crates/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[E0277]: the trait bound `MetaAttr: ToTokens` is not satisfied
   --> /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/sniffglue-0.16.0/cargo-crates/nom-derive-impl-0.10.0/src/meta/attr.rs:219:18
    |
219 | impl Spanned for MetaAttr {
    |                  ^^^^^^^^ the trait `ToTokens` is not implemented for `MetaAttr`
    |
    = help: the following other types implement trait `ToTokens`:
              bool
              char
              isize
              i8
              i16
              i32
              i64
              i128
            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`
   --> /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/sniffglue-0.16.0/cargo-crates/syn-2.0.8/src/spanned.rs:96:20
    |
96  | pub trait Spanned: private::Sealed {
    |                    ^^^^^^^^^^^^^^^ required by this bound in `Spanned`
    = note: `Spanned` is a "sealed trait", because to implement it you also need to implement `syn::spanned::private::Sealed`, which is not accessible; this is usually done to force you to use one of the provided types that already implement it
    = help: the following type implements the trait:
              T

error[E0433]: failed to resolve: use of undeclared type `LifetimeDef`
   --> /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/sniffglue-0.16.0/cargo-crates/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`
    |                                          help: a struct with a similar name exists: `Lifetime`

Some errors have detailed explanations: E0277, E0433.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `nom-derive-impl` (lib) due to 3 previous errors

Caused by:
  process didn't exit successfully: `CARGO=/usr/local/bin/cargo CARGO_CRATE_NAME=nom_derive_impl CARGO_MANIFEST_DIR=/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/sniffglue-0.16.0/cargo-crates/nom-derive-impl-0.10.0 CARGO_PKG_AUTHORS='Pierre Chifflier <chifflier@wzdftpd.net>' CARGO_PKG_DESCRIPTION='Custom derive nom parsers from struct' CARGO_PKG_HOMEPAGE='https://github.com/rust-bakery/nom-derive' CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=nom-derive-impl CARGO_PKG_README=../README.md CARGO_PKG_REPOSITORY='https://github.com/rust-bakery/nom-derive.git' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.10.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=10 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/target/debug/deps:/usr/local/lib' /usr/local/bin/rustc --crate-name nom_derive_impl --edition=2018 /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/sniffglue-0.16.0/cargo-crates/nom-derive-impl-0.10.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=238 --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C debuginfo=2 -C metadata=73bf112996690947 -C extra-filename=-73bf112996690947 --out-dir /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/target/debug/deps -C linker=clang15 -L dependency=/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/target/debug/deps --extern proc_macro2=/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/target/debug/deps/libproc_macro2-cc45d2137bcd54f6.rlib --extern quote=/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/target/debug/deps/libquote-b4143c495ec148cf.rlib --extern syn=/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/FreeBSD-Ports/sniffglue/work/target/debug/deps/libsyn-c64f97925951f4c1.rlib --extern proc_macro --cap-lints warn` (exit status: 1)
*** Error code 101