about summary refs log tree commit diff
path: root/src/test/pretty/where-clauses.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-8/+0
2022-06-16Add pp-exact test involving `where T:`David Tolnay-0/+3
Currently fails. ---- [pretty] src/test/pretty/where-clauses.rs stdout ---- error: pretty-printed source does not match expected source expected: ------------------------------------------ // pp-exact fn f<'a, 'b, T>(t: T) -> isize where T: 'a, 'a: 'b, T: Eq { 0 } // This is legal syntax, sometimes generated by macros. `where T: $($bound+)*` fn zero_bounds<'a, T>() where 'a:, T: {} fn main() {} ------------------------------------------ actual: ------------------------------------------ // pp-exact fn f<'a, 'b, T>(t: T) -> isize where T: 'a, 'a: 'b, T: Eq { 0 } // This is legal syntax, sometimes generated by macros. `where T: $($bound+)*` fn zero_bounds<'a, T>() where 'a, T {} fn main() {} ------------------------------------------ diff: ------------------------------------------ 3 fn f<'a, 'b, T>(t: T) -> isize where T: 'a, 'a: 'b, T: Eq { 0 } 4 5 // This is legal syntax, sometimes generated by macros. `where T: $($bound+)*` - fn zero_bounds<'a, T>() where 'a:, T: {} + fn zero_bounds<'a, T>() where 'a, T {} 7 8 fn main() {} 9
2021-12-01Pretty print empty blocks as {}David Tolnay-1/+1
2018-12-25Remove licensesMark Rousskov-10/+0
2016-06-29Fix pretty-printing of lifetime boundSeo Sanghyeon-1/+1
2015-03-26Mass rename uint/int to usize/isizeAlex Crichton-1/+1
Now that support has been removed, all lingering use cases are renamed.
2015-03-15Strip all leading/trailing newlinesTamir Duberstein-1/+0
2014-12-20patch up pretty-printing testNiko Matsakis-3/+4
2014-12-20Add parser support for generalized where clausesJared Roesch-0/+15
Implement support in the parser for generalized where clauses, as well as the conversion of ast::WherePredicates to ty::Predicate in `collect.rs`.