Add Span to ast::WhereClause

This commit is contained in:
topecongiro
2017-07-27 13:37:35 +09:00
parent 4a42ff4823
commit 6375b77ebb
6 changed files with 13 additions and 2 deletions

View File

@@ -736,14 +736,15 @@ pub fn noop_fold_generics<T: Folder>(Generics {ty_params, lifetimes, where_claus
}
pub fn noop_fold_where_clause<T: Folder>(
WhereClause {id, predicates}: WhereClause,
WhereClause {id, predicates, span}: WhereClause,
fld: &mut T)
-> WhereClause {
WhereClause {
id: fld.new_id(id),
predicates: predicates.move_map(|predicate| {
fld.fold_where_predicate(predicate)
})
}),
span: span,
}
}