Skip to content

rust-cssparser doesn't compile anymore, complaining about syn::Token!  #62591

Closed
@Eijebong

Description

@Eijebong

The latest nightly doesn't compiler cssparser. The error message is the following:

error[E0433]: failed to resolve: unresolved import
  --> build/match_byte.rs:48:31
   |
48 |                 input.parse::<syn::Token![,]>()?;
   |                               ^^^^^^^^^^^^^^
   |                               |
   |                               unresolved import
   |                               help: a similar path exists: `syn::token`
   |
   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: aborting due to previous error

For more information about this error, try `rustc --explain E0433`.
error: Could not compile `cssparser`.

To learn more, run the command again with --verbose.

The macro does exist

I've seen this issue in serde_derive too (and I've been told it happens in phf)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions