Skip to content
This repository was archived by the owner on Jul 6, 2019. It is now read-only.

Commit ccc0e63

Browse files
committed
Added where_clause to other missing places
1 parent 5aa0f7e commit ccc0e63

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

macro/platformtree.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ fn macro_zinc_task(cx: &mut ExtCtxt, _: Span, _: Gc<ast::MetaItem>,
109109
let new_generics = ast::Generics {
110110
lifetimes: vec!(),
111111
ty_params: OwnedSlice::from_vec(params),
112+
where_clause: ast::WhereClause {
113+
id: ast::DUMMY_NODE_ID,
114+
predicates: vec!(),
115+
}
112116
};
113117
let new_node = ast::ItemFn(new_decl, style, abi, new_generics, block);
114118

platformtree/builder/os.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ fn build_args(builder: &mut Builder, cx: &mut ExtCtxt,
174174
}, ast::Generics {
175175
lifetimes: vec!(cx.lifetime_def(DUMMY_SP, intern("'a"), vec!())),
176176
ty_params: OwnedSlice::from_vec(collected_params),
177+
where_clause: ast::WhereClause {
178+
id: ast::DUMMY_NODE_ID,
179+
predicates: vec!(),
180+
}
177181
}),
178182
vis: ast::Public,
179183
span: DUMMY_SP,

0 commit comments

Comments
 (0)