Skip to content

quote/syn update is broken for macros #214

Closed
@ignatenkobrain

Description

@ignatenkobrain
   Compiling cssparser-macros v0.3.1 (file:///home/brain/tmp/rust-cssparser/macros)
warning: unused import: `quote::ToTokens`
  --> macros/lib.rs:13:5
   |
13 | use quote::ToTokens;
   |     ^^^^^^^^^^^^^^^
   |
   = note: #[warn(unused_imports)] on by default

warning: unused import: `TokenNode`
  --> macros/lib.rs:14:19
   |
14 | use proc_macro2::{TokenNode, TokenStream, TokenTree};
   |                   ^^^^^^^^^

error[E0277]: the trait bound `syn::Expr: std::fmt::Debug` is not satisfied
  --> macros/lib.rs:28:66
   |
28 |             _ => panic!("expected a match expression, got {:?}", expr)
   |                                                                  ^^^^ `syn::Expr` cannot be formatted using `:?`; if it is defined in your crate, add `#[derive(Debug)]` or manually implement it
   |
   = help: the trait `std::fmt::Debug` is not implemented for `syn::Expr`
   = note: required by `std::fmt::Debug::fmt`

error[E0277]: the trait bound `syn::Pat: std::fmt::Debug` is not satisfied
  --> macros/lib.rs:34:78
   |
34 |                 _ => panic!("expected string or wildcard pattern, got {:?}", pattern)
   |                                                                              ^^^^^^^ `syn::Pat` cannot be formatted using `:?`; if it is defined in your crate, add `#[derive(Debug)]` or manually implement it
   |
   = help: the trait `std::fmt::Debug` is not implemented for `syn::Pat`
   = note: required because of the requirements on the impl of `std::fmt::Debug` for `&syn::Pat`
   = note: required by `std::fmt::Debug::fmt`

error[E0277]: the trait bound `syn::PatLit: std::fmt::Debug` is not satisfied
  --> macros/lib.rs:42:66
   |
42 |                 _ => panic!("expected string pattern, got {:?}", expr)
   |                                                                  ^^^^ `syn::PatLit` cannot be formatted using `:?`; if it is defined in your crate, add `#[derive(Debug)]` or manually implement it
   |
   = help: the trait `std::fmt::Debug` is not implemented for `syn::PatLit`
   = note: required because of the requirements on the impl of `std::fmt::Debug` for `&syn::PatLit`
   = note: required by `std::fmt::Debug::fmt`

error: aborting due to 3 previous errors

error: Could not compile `cssparser-macros`.

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