about summary refs log tree commit diff
path: root/compiler/rustc_expand/src/build.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-03-16 22:00:08 +0000
committerMichael Goulet <michael@errs.io>2023-03-28 01:14:28 +0000
commit8b592db27afdc9edac084520bca98508da53c996 (patch)
tree3a2638e8dd3656cfdb5aeed9b68e349efb2c2183 /compiler/rustc_expand/src/build.rs
parent104aacb49fb37265fb923e3b779de3c388abd92c (diff)
downloadrust-8b592db27afdc9edac084520bca98508da53c996.tar.gz
rust-8b592db27afdc9edac084520bca98508da53c996.zip
Add `(..)` syntax for RTN
Diffstat (limited to 'compiler/rustc_expand/src/build.rs')
-rw-r--r--compiler/rustc_expand/src/build.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/build.rs b/compiler/rustc_expand/src/build.rs
index 8a78c3296f9..8a16143311b 100644
--- a/compiler/rustc_expand/src/build.rs
+++ b/compiler/rustc_expand/src/build.rs
@@ -36,7 +36,7 @@ impl<'a> ExtCtxt<'a> {
         );
         let args = if !args.is_empty() {
             let args = args.into_iter().map(ast::AngleBracketedArg::Arg).collect();
-            ast::AngleBracketedArgs { args, span }.into()
+            Some(ast::AngleBracketedArgs { args, span }.into())
         } else {
             None
         };