#![feature(plugin_registrar, quote)]
#![feature(rustc_private)]

extern crate rustc;
extern crate rustc_plugin;
extern crate syntax;
extern crate rustc_serialize;

use rustc_plugin::Registry;

mod plugin;

#[plugin_registrar]
pub fn plugin_registrar(reg: &mut Registry) {
    reg.register_macro("json", plugin::expand);
}

#![feature(plugin_registrar, quote)]
#![feature(rustc_private)]

extern crate rustc;
extern crate syntax;
extern crate rustc_serialize;

use rustc::plugin::Registry;

mod plugin;

#[plugin_registrar]
pub fn plugin_registrar(reg: &mut Registry) {
    reg.register_macro("json", plugin::expand);
}

--- 
+++ 
@@ -2,10 +2,11 @@
 #![feature(rustc_private)]
 
 extern crate rustc;
+extern crate rustc_plugin;
 extern crate syntax;
 extern crate rustc_serialize;
 
-use rustc::plugin::Registry;
+use rustc_plugin::Registry;
 
 mod plugin;
 
Use plugin API from rustc_plugin crate.

In rust-lang/rust@1430a3500076ad504a0b30be77fd2ad4468ea769 the plugin
API has been moved to a separate `rustc_plugin` crate.
