about summary refs log tree commit diff
path: root/src/test/auxiliary/plugin_args.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/auxiliary/plugin_args.rs')
-rw-r--r--src/test/auxiliary/plugin_args.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/auxiliary/plugin_args.rs b/src/test/auxiliary/plugin_args.rs
index 1775bbf4af2..20c84c4ba5b 100644
--- a/src/test/auxiliary/plugin_args.rs
+++ b/src/test/auxiliary/plugin_args.rs
@@ -46,5 +46,6 @@ impl TTMacroExpander for Expander {
 pub fn plugin_registrar(reg: &mut Registry) {
     let args = reg.args().clone();
     reg.register_syntax_extension(token::intern("plugin_args"),
-        NormalTT(box Expander { args: args, }, None));
+        // FIXME (#22405): Replace `Box::new` with `box` here when/if possible.
+        NormalTT(Box::new(Expander { args: args, }), None));
 }