about summary refs log tree commit diff
path: root/src/libsyntax_ext/env.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-09-23 00:36:34 +0200
committerGitHub <noreply@github.com>2019-09-23 00:36:34 +0200
commitda58e11d0265ee8412a21d63cf972955754769b6 (patch)
treeeac074cdba60fb22e32e3053b109c7b3b7257b2a /src/libsyntax_ext/env.rs
parent7894bc82d790c9ef700d0576f2c1e5756a07532d (diff)
parent8417ac67c3fe979098facad586438ea5244617b3 (diff)
downloadrust-da58e11d0265ee8412a21d63cf972955754769b6.tar.gz
rust-da58e11d0265ee8412a21d63cf972955754769b6.zip
Rollup merge of #64670 - Mark-Simulacrum:ext-build-simplify, r=petrochenkov
Cleanup syntax::ext::build

I suspect most of this code could be inlined but I only removed the bits where the inlining didn't really hurt readability (i.e., method call -> function call) or the completely unused code.
Diffstat (limited to 'src/libsyntax_ext/env.rs')
-rw-r--r--src/libsyntax_ext/env.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax_ext/env.rs b/src/libsyntax_ext/env.rs
index 70e1fbe6af7..02757bf6b16 100644
--- a/src/libsyntax_ext/env.rs
+++ b/src/libsyntax_ext/env.rs
@@ -32,7 +32,7 @@ pub fn expand_option_env<'cx>(cx: &'cx mut ExtCtxt<'_>,
                                                                  Ident::new(sym::str, sp)),
                                                      Some(lt),
                                                      ast::Mutability::Immutable))],
-                                     vec![]))
+                                     ))
         }
         Ok(s) => {
             cx.expr_call_global(sp,