aboutsummaryrefslogtreecommitdiffstats
path: root/components/plugins/casing.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/plugins/casing.rs')
-rw-r--r--components/plugins/casing.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/plugins/casing.rs b/components/plugins/casing.rs
index b7b002b21a4..a6fc4a6c53e 100644
--- a/components/plugins/casing.rs
+++ b/components/plugins/casing.rs
@@ -48,7 +48,7 @@ fn expand_cased<'cx, T>(cx: &'cx mut ExtCtxt, sp: Span, tts: &[ast::TokenTree],
match (res, it.count()) {
(Some((s, span)), 0) => {
let new_s = s.chars().map(transform).collect::<String>();
- base::MacExpr::new(cx.expr_str(span, token::intern_and_get_ident(new_s.as_slice())))
+ base::MacEager::expr(cx.expr_str(span, token::intern_and_get_ident(new_s.as_slice())))
}
(_, rest) => {
if rest > 0 {