diff --git a/src/plugins/src/lib.rs b/src/plugins/src/lib.rs index 99a9eb89..8265ae1d 100644 --- a/src/plugins/src/lib.rs +++ b/src/plugins/src/lib.rs @@ -7,12 +7,12 @@ extern crate syntax; use itertools::Itertools; use rustc_plugin::Registry; use syntax::ast::{self, Ident, TraitRef, Ty, TyKind}; +use syntax::ast::{MetaItem, MetaItemKind}; use syntax::ast::LitKind::Str; -use syntax::ast::MetaItemKind::NameValue; use syntax::codemap::Spanned; use syntax::ext::base::{ExtCtxt, MacResult, DummyResult, MacEager}; use syntax::ext::quote::rt::Span; -use syntax::parse::{self, token, PResult}; +use syntax::parse::{self, token, str_lit, PResult}; use syntax::parse::parser::{Parser, PathStyle}; use syntax::symbol::Symbol; use syntax::ptr::P; @@ -46,11 +46,18 @@ fn snake_to_camel(cx: &mut ExtCtxt, sp: Span, tts: &[TokenTree]) -> Box