File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -3855,7 +3855,7 @@ impl<'a> Parser<'a> {
3855
3855
/// ```
3856
3856
/// where T : Trait<U, V> + 'b, 'a : 'b
3857
3857
/// ```
3858
- fn parse_where_clause ( & mut self ) -> PResult < ast:: WhereClause > {
3858
+ pub fn parse_where_clause ( & mut self ) -> PResult < ast:: WhereClause > {
3859
3859
let mut where_clause = WhereClause {
3860
3860
id : ast:: DUMMY_NODE_ID ,
3861
3861
predicates : Vec :: new ( ) ,
Original file line number Diff line number Diff line change @@ -352,6 +352,10 @@ pub fn stmt_to_string(stmt: &ast::Stmt) -> String {
352
352
$to_string( |s| s. print_stmt( stmt) )
353
353
}
354
354
355
+ pub fn attr_to_string( attr: & ast:: Attr ) -> String {
356
+ $to_string( |s| s. print_attribute( attr) )
357
+ }
358
+
355
359
pub fn item_to_string( i: & ast:: Item ) -> String {
356
360
$to_string( |s| s. print_item( i) )
357
361
}
You can’t perform that action at this time.
0 commit comments