syntax: Publically expose printing where clauses, and add attr_to_string

This commit is contained in:
Erick Tryzelaar 2015-04-13 10:22:15 -07:00
parent 588d37c653
commit 951db77267
2 changed files with 5 additions and 1 deletions

View file

@ -3855,7 +3855,7 @@ impl<'a> Parser<'a> {
/// ```
/// where T : Trait<U, V> + 'b, 'a : 'b
/// ```
fn parse_where_clause(&mut self) -> PResult<ast::WhereClause> {
pub fn parse_where_clause(&mut self) -> PResult<ast::WhereClause> {
let mut where_clause = WhereClause {
id: ast::DUMMY_NODE_ID,
predicates: Vec::new(),