diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-10-11 17:51:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-11 17:51:25 +0200 |
| commit | 6717dba27629735c4305de018070db0e188f6b17 (patch) | |
| tree | b9071f2daaa210a57ae0beea210cbc27e0cbc552 /src/rustllvm/RustWrapper.cpp | |
| parent | e33562078ff6027c116cb43abd052e256354ab2f (diff) | |
| parent | 0c2b2581318f9473f4a49363869fab5ac25ebbc7 (diff) | |
| download | rust-6717dba27629735c4305de018070db0e188f6b17.tar.gz rust-6717dba27629735c4305de018070db0e188f6b17.zip | |
Rollup merge of #36679 - QuietMisdreavus:rustdoc-line-breaks, r=steveklabnik
rustdoc: print non-self arguments of bare functions and struct methods on their own line This change alters the formatting rustdoc uses when it creates function and struct method documentation. For bare functions, each argument is printed on its own line. For struct methods, non-self arguments are printed on their own line. In both cases, no line breaks are introduced if there are no arguments, and for struct methods, no line breaks are introduced if there is only a single self argument. This should aid readability of long function signatures and allow for greater comprehension of these functions. I've run rustdoc with these changes on my crate egg-mode and its set of dependencies and put the result [on my server](https://shiva.icesoldier.me/doc-custom/egg_mode/). Of note, here are a few shortcut links that highlight the changes: * [Bare function with a long signature](https://shiva.icesoldier.me/doc-custom/egg_mode/place/fn.reverse_geocode.html) * [Struct methods, with single self argument and with self and non-self arguments](https://shiva.icesoldier.me/doc-custom/egg_mode/tweet/struct.Timeline.html#method.reset) * [Bare functions with no arguments](https://shiva.icesoldier.me/doc-custom/rand/fn.thread_rng.html) and [struct methods with no arguments](https://shiva.icesoldier.me/doc-custom/hyper/client/struct.Client.html#method.new) are left unchanged. This PR consists of two commits: one for bare functions and one for struct methods.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
