]> git.lizzy.rs Git - rust.git/commit
pp: also print bounds in paths with no generic params
authorBenjamin Herr <ben@0x539.de>
Tue, 17 Sep 2013 20:13:47 +0000 (22:13 +0200)
committerBenjamin Herr <ben@0x539.de>
Tue, 17 Sep 2013 21:41:42 +0000 (23:41 +0200)
commit823ebb14ba6ed99df1198c6d1b47c5d2964196da
tree1047ddd74cf9fa39470ee33199c6038b01101d13
parentaa406c151e7404029760e56338f9ebc92319a5d5
pp: also print bounds in paths with no generic params

Since 3b6314c3 the pretty printer seems to only print trait bounds for
`ast::ty_path(...)`s that have a generics arguments list. That seems
wrong, so let's always print them.

Closes #9253, un-xfails test for #7673.
src/libsyntax/print/pprust.rs
src/test/pretty/path-type-bounds.rs [new file with mode: 0644]
src/test/run-pass/issue-7673-cast-generically-implemented-trait.rs