Auto merge of #33378 - oli-obk:fix/registry_args, r=Manishearth

fix Registry::args for plugins loaded with --extra-plugins

r? @Manishearth
This commit is contained in:
bors 2016-05-20 08:44:01 -07:00
commit 0352866da7
2 changed files with 6 additions and 3 deletions

View file

@ -45,7 +45,7 @@ impl TTMacroExpander for Expander {
#[plugin_registrar]
pub fn plugin_registrar(reg: &mut Registry) {
let args = reg.args().clone();
let args = reg.args().to_owned();
reg.register_syntax_extension(token::intern("plugin_args"),
// FIXME (#22405): Replace `Box::new` with `box` here when/if possible.
NormalTT(Box::new(Expander { args: args, }), None, false));