#![feature(plugin_registrar, rustc_private)]

extern crate serde_codegen;
extern crate rustc_plugin;

#[plugin_registrar]
#[doc(hidden)]
pub fn plugin_registrar(reg: &mut rustc_plugin::Registry) {
    serde_codegen::register(reg);
}

#![feature(plugin_registrar, rustc_private)]

extern crate serde_codegen;
extern crate rustc;

#[plugin_registrar]
#[doc(hidden)]
pub fn plugin_registrar(reg: &mut rustc::plugin::Registry) {
    serde_codegen::register(reg);
}

--- 
+++ 
@@ -1,10 +1,10 @@
 #![feature(plugin_registrar, rustc_private)]
 
 extern crate serde_codegen;
-extern crate rustc_plugin;
+extern crate rustc;
 
 #[plugin_registrar]
 #[doc(hidden)]
-pub fn plugin_registrar(reg: &mut rustc_plugin::Registry) {
+pub fn plugin_registrar(reg: &mut rustc::plugin::Registry) {
     serde_codegen::register(reg);
 }
fix(rustup): Update serde_codegen to reflect Registry move
