]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_expand/src/placeholders.rs
New upstream version 1.65.0+dfsg1
[rustc.git] / compiler / rustc_expand / src / placeholders.rs
index 0d5d6ee07944f4a002e1fad66a6eda38f4146906..3b0d5ddb97b4e184e11b2608a37dbb05a71c719d 100644 (file)
@@ -15,16 +15,16 @@ pub fn placeholder(
     id: ast::NodeId,
     vis: Option<ast::Visibility>,
 ) -> AstFragment {
-    fn mac_placeholder() -> ast::MacCall {
-        ast::MacCall {
+    fn mac_placeholder() -> P<ast::MacCall> {
+        P(ast::MacCall {
             path: ast::Path { span: DUMMY_SP, segments: Vec::new(), tokens: None },
             args: P(ast::MacArgs::Empty),
             prior_type_ascription: None,
-        }
+        })
     }
 
     let ident = Ident::empty();
-    let attrs = Vec::new();
+    let attrs = ast::AttrVec::new();
     let vis = vis.unwrap_or(ast::Visibility {
         span: DUMMY_SP,
         kind: ast::VisibilityKind::Inherited,