We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 588d37c commit 951db77Copy full SHA for 951db77
src/libsyntax/parse/parser.rs
@@ -3855,7 +3855,7 @@ impl<'a> Parser<'a> {
3855
/// ```
3856
/// where T : Trait<U, V> + 'b, 'a : 'b
3857
3858
- fn parse_where_clause(&mut self) -> PResult<ast::WhereClause> {
+ pub fn parse_where_clause(&mut self) -> PResult<ast::WhereClause> {
3859
let mut where_clause = WhereClause {
3860
id: ast::DUMMY_NODE_ID,
3861
predicates: Vec::new(),
src/libsyntax/print/pprust.rs
@@ -352,6 +352,10 @@ pub fn stmt_to_string(stmt: &ast::Stmt) -> String {
352
$to_string(|s| s.print_stmt(stmt))
353
}
354
355
+pub fn attr_to_string(attr: &ast::Attr) -> String {
356
+ $to_string(|s| s.print_attribute(attr))
357
+}
358
+
359
pub fn item_to_string(i: &ast::Item) -> String {
360
$to_string(|s| s.print_item(i))
361
0 commit comments