syntax: Add unquoting ast::{Generics,WhereClause}

This commit is contained in:
Erick Tryzelaar
2015-05-02 10:55:41 -07:00
parent eef6b4a37b
commit 7b00658413
5 changed files with 38 additions and 13 deletions

View File

@@ -689,6 +689,9 @@ pub fn noop_fold_interpolated<T: Folder>(nt: token::Nonterminal, fld: &mut T)
token::NtTraitItem(arm) =>
token::NtTraitItem(fld.fold_trait_item(arm)
.expect_one("expected fold to produce exactly one item")),
token::NtGenerics(generics) => token::NtGenerics(fld.fold_generics(generics)),
token::NtWhereClause(where_clause) =>
token::NtWhereClause(fld.fold_where_clause(where_clause)),
}
}