Rollup merge of #58409 - euclio:impl-trait-wrapping, r=QuietMisdreavus
rustdoc: respect alternate flag when formatting impl trait Fixes #58226. Before: <img width="963" alt="screen shot 2019-02-12 at 3 23 30 pm" src="https://user-images.githubusercontent.com/1372438/52665732-4496ea00-2eda-11e9-9e29-efffe43b2abf.png"> After: <img width="964" alt="screen shot 2019-02-12 at 3 23 51 pm" src="https://user-images.githubusercontent.com/1372438/52665733-452f8080-2eda-11e9-999a-dd1fb28dee16.png">
This commit is contained in:
commit
8d1e4323b3
3 changed files with 43 additions and 30 deletions
5
src/test/rustdoc/wrapping.rs
Normal file
5
src/test/rustdoc/wrapping.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
use std::fmt::Debug;
|
||||
|
||||
// @has 'wrapping/fn.foo.html' '//pre[@class="rust fn"]' 'pub fn foo() -> impl Debug'
|
||||
// @count - '//pre[@class="rust fn"]/br' 0
|
||||
pub fn foo() -> impl Debug {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue