Remove some old code from libsyntax

This commit is contained in:
Vadim Petrochenkov
2016-04-22 23:43:14 +03:00
parent a97f60ee86
commit 9108fb7bae
9 changed files with 21 additions and 67 deletions

View File

@@ -995,7 +995,7 @@ impl<'a> State<'a> {
ast::TyKind::BareFn(ref f) => {
let generics = ast::Generics {
lifetimes: f.lifetimes.clone(),
ty_params: P::empty(),
ty_params: P::new(),
where_clause: ast::WhereClause {
id: ast::DUMMY_NODE_ID,
predicates: Vec::new(),
@@ -3011,7 +3011,7 @@ impl<'a> State<'a> {
}
let generics = ast::Generics {
lifetimes: Vec::new(),
ty_params: P::empty(),
ty_params: P::new(),
where_clause: ast::WhereClause {
id: ast::DUMMY_NODE_ID,
predicates: Vec::new(),