Fix num_macros for syntax/syntax_ext crate split

This commit is contained in:
bluss 2015-12-19 10:57:26 +01:00
parent 477cbc87c9
commit 4d237003ec
1 changed files with 5 additions and 4 deletions

View File

@ -11,6 +11,7 @@
#![feature(plugin_registrar, rustc_private)]
extern crate syntax;
extern crate syntax_ext;
extern crate rustc_plugin;
use syntax::ast::{MetaItem, Expr};
@ -18,8 +19,8 @@ use syntax::ast;
use syntax::codemap::Span;
use syntax::ext::base::{ExtCtxt, Annotatable};
use syntax::ext::build::AstBuilder;
use syntax::ext::deriving::generic::*;
use syntax::ext::deriving::generic::ty::*;
use syntax_ext::deriving::generic::*;
use syntax_ext::deriving::generic::ty::*;
use syntax::parse::token::InternedString;
use syntax::ptr::P;
use syntax::ext::base::MultiDecorator;
@ -35,13 +36,13 @@ macro_rules! pathvec {
macro_rules! path {
($($x:tt)*) => (
::syntax::ext::deriving::generic::ty::Path::new( pathvec!( $($x)* ) )
::syntax_ext::deriving::generic::ty::Path::new( pathvec!( $($x)* ) )
)
}
macro_rules! path_local {
($x:ident) => (
::syntax::ext::deriving::generic::ty::Path::new_local(stringify!($x))
::syntax_ext::deriving::generic::ty::Path::new_local(stringify!($x))
)
}