diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-12-05 23:47:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-05 23:47:07 +0100 |
| commit | a424813c4355cddc259dc5a9bb5083f602b0a684 (patch) | |
| tree | 34862b5d8b42988b3ebf39cc2bb5704b343b4ef8 /tests/rustdoc-gui/src/test_docs | |
| parent | c94848c046d29f9a80c09aae758e27e418a289f2 (diff) | |
| parent | 854ebe7522ef3b91e708a45077bbcd8da061e876 (diff) | |
| download | rust-a424813c4355cddc259dc5a9bb5083f602b0a684.tar.gz rust-a424813c4355cddc259dc5a9bb5083f602b0a684.zip | |
Rollup merge of #132155 - GuillaumeGomez:impl-block-doc, r=rustdoc
Always display first line of impl blocks even when collapsed Fixes https://github.com/rust-lang/rust/issues/130612. It the line is too long, only the beginning will be visible:  Otherwise, it looks like this:  Can be tested [here](https://rustdoc.crud.net/imperio/impl-block-doc/foo/struct.ImplDoc.html). r? `@notriddle`
Diffstat (limited to 'tests/rustdoc-gui/src/test_docs')
| -rw-r--r-- | tests/rustdoc-gui/src/test_docs/lib.rs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/src/test_docs/lib.rs b/tests/rustdoc-gui/src/test_docs/lib.rs index 352995c4903..91aa2c3fae5 100644 --- a/tests/rustdoc-gui/src/test_docs/lib.rs +++ b/tests/rustdoc-gui/src/test_docs/lib.rs @@ -652,3 +652,42 @@ pub mod long_list { //! * [`FromBytes`](#a) indicates that a type may safely be converted from an arbitrary byte //! sequence } + +pub struct ImplDoc; + +/// bla sondfosdnf sdfasd fadsd fdsa f ads fad sf sad f sad fasdfsafsa df dsafasdasd fsa dfadsfasd +/// fads fadfadd +/// +/// bla +impl ImplDoc { + pub fn bar() {} +} + +/// bla +/// +/// bla +impl ImplDoc { + pub fn bar2() {} +} + +// ignore-tidy-linelength +/// | this::is::a::kinda::very::long::header::number::one | this::is::a::kinda::very::long::header::number::two | this::is::a::kinda::very::long::header::number::three | +/// |-|-|-| +/// | bla | bli | blob | +impl ImplDoc { + pub fn bar3() {} +} + +/// # h1 +/// +/// bla +impl ImplDoc { + pub fn bar4() {} +} + +/// * list +/// * list +/// * list +impl ImplDoc { + pub fn bar5() {} +} |
