From 03e41670b7d76922d4f3ade69936e400b2921a21 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Sat, 11 Apr 2015 10:01:00 -0700 Subject: [PATCH] Update where_clause_to_string! test Unfortunately we can't enable this yet as support for this hasn't landed in rustc yet. --- tests/test.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test.rs b/tests/test.rs index 82ab6f07..745d571a 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -165,9 +165,10 @@ fn test_quote_where_clause() { let sess = parse::new_parse_sess(); let cx = make_ext_ctxt(&sess); - let where_clause = quote_where_clause!(&cx, where A, B: T); + let where_clause = quote_where_clause!(&cx, where A, B: T).ok().unwrap(); + assert_eq!( - pprust::to_string(|s| s.print_where_clause(&where_clause)), + pprust::where_clause_to_string(&where_clause), "where A, B: T" ); }