about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2019-02-20 01:13:21 +0800
committerkennytm <kennytm@gmail.com>2019-02-20 11:58:31 +0800
commit8d1e4323b33ca438643b7aeaba330b19829231c2 (patch)
treef46c6c01be5f97473664c68072f3af58633f752b /src/test/rustdoc
parent98a6e720d082b6c936758689c08c3c7dd2e9860e (diff)
parente827c9ab3c3af14f336ef4ab527fd4a22d0cda80 (diff)
downloadrust-8d1e4323b33ca438643b7aeaba330b19829231c2.tar.gz
rust-8d1e4323b33ca438643b7aeaba330b19829231c2.zip
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">
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/wrapping.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/rustdoc/wrapping.rs b/src/test/rustdoc/wrapping.rs
new file mode 100644
index 00000000000..8d8221bcdf2
--- /dev/null
+++ b/src/test/rustdoc/wrapping.rs
@@ -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 {}