<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/librustdoc/html/render.rs, branch 1.37.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.37.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.37.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2019-06-27T01:15:13+00:00</updated>
<entry>
<title>remove unused derives and variants</title>
<updated>2019-06-27T01:15:13+00:00</updated>
<author>
<name>Andy Russell</name>
<email>arussell123@gmail.com</email>
</author>
<published>2019-06-27T01:15:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e991abd00455b20bb96076bbeec63e56764fc822'/>
<id>urn:sha1:e991abd00455b20bb96076bbeec63e56764fc822</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Better handling of the sender channel part in rustdoc file writing</title>
<updated>2019-06-21T10:00:49+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2019-06-20T22:26:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=65f12950b64cbea42e97f1425952c77cf024d5ed'/>
<id>urn:sha1:65f12950b64cbea42e97f1425952c77cf024d5ed</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Handle fs errors through errors::Handler instead of eprintln and panic</title>
<updated>2019-06-21T10:00:49+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2019-05-26T12:54:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3eeb543504602d04c2f4374834ee9c67bb525300'/>
<id>urn:sha1:3eeb543504602d04c2f4374834ee9c67bb525300</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add DocFS layer to rustdoc</title>
<updated>2019-06-21T10:00:49+00:00</updated>
<author>
<name>Robert Collins</name>
<email>robertc@robertcollins.net</email>
</author>
<published>2019-05-20T02:04:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6392bc9fcdf3b3984f92e7930329f940a53cf335'/>
<id>urn:sha1:6392bc9fcdf3b3984f92e7930329f940a53cf335</id>
<content type='text'>
* Move fs::create_dir_all calls into DocFS to provide a clean
  extension point if async extension there is needed.
* Convert callsites of create_dir_all to ensure_dir to reduce syscalls.
* Convert fs::write usage to DocFS.write
  (which also removes a lot of try_err! usage for easier reading)
* Convert File::create calls to use Vec buffers and then DocFS.write
  in order to consistently reduce syscalls as well, make
  deferring to threads cleaner and avoid leaving dangling content if
  writing to existing files....
* Convert OpenOptions usage similarly - I could find no discussion on
  the use of create_new for that one output file vs all the other
  files render creates, if link redirection attacks are a concern
  DocFS will provide a good central point to introduce systematic
  create_new usage. (fs::write/File::create is vulnerable to link
  redirection attacks).
* DocFS::write defers to rayon for IO on Windows producing a modest
  speedup: before this patch on my development workstation:

$ time cargo +mystg1 doc -p winapi:0.3.7
 Documenting winapi v0.3.7
    Finished dev [unoptimized + debuginfo] target(s) in 6m 11s

real    6m11.734s

Afterwards:
$ time cargo +mystg1 doc -p winapi:0.3.7
   Compiling winapi v0.3.7
 Documenting winapi v0.3.7
    Finished dev [unoptimized + debuginfo] target(s) in 49.53s

real    0m49.643s

I haven't measured how much time is in the compilation logic vs in the
IO and outputting etc, but this takes it from frustating to tolerable
for me, at least for now.
</content>
</entry>
<entry>
<title>Rollup merge of #61505 - ebarnard:doc-shrink, r=GuillaumeGomez</title>
<updated>2019-06-18T23:51:58+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2019-06-18T23:51:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9a7016d67df095c59a5f27bf3856e2aed9cb0369'/>
<id>urn:sha1:9a7016d67df095c59a5f27bf3856e2aed9cb0369</id>
<content type='text'>
Only show methods that appear in `impl` blocks in the Implementors sections of trait doc pages

In the "Implementors" and "Implementations on Foreign Types" sections, only show methods that appear in the `impl` block for that type. This has the benefit of
- Reducing the size of the Iterator page, and other large trait documentation pages.
- Retaining documentation on the `impl` blocks and functions in the `impl` blocks.
- Indicating which provided methods are overridden.
- Making the documentation match the structure of the code being documented.
- Being a small change that can be easily backed out if issues arise.

A set of Rust stdlib docs build with this change are [available here](https://ebarnard.github.io/2019-06-03-rust-smaller-trait-implementers-docs/).

The size of the [`Iterator` doc page](https://ebarnard.github.io/2019-06-03-rust-smaller-trait-implementers-docs/std/iter/trait.Iterator.html) is reduced from 14.4MB (latest nightly) to 724kB.

Before:
&lt;img width="1411" alt="Screenshot 2019-06-03 at 23 12 17" src="https://user-images.githubusercontent.com/1059683/58837971-1722a780-8655-11e9-8d81-51e48130951d.png"&gt;

After:
&lt;img width="1428" alt="Screenshot 2019-06-03 at 16 41 27" src="https://user-images.githubusercontent.com/1059683/58814907-84ffac80-861e-11e9-8692-79be473a5299.png"&gt;

cc #55900
</content>
</entry>
<entry>
<title>rustdoc: deny(unused_lifetimes).</title>
<updated>2019-06-11T11:11:59+00:00</updated>
<author>
<name>Eduard-Mihai Burtescu</name>
<email>edy.burt@gmail.com</email>
</author>
<published>2019-06-11T09:50:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4a219685ffd622421e5eb9609dda7a8508a478c6'/>
<id>urn:sha1:4a219685ffd622421e5eb9609dda7a8508a478c6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Only show methods that appear in the impl block for types in the Implementors and Implementations on Foreign Types sections of trait documentation pages.</title>
<updated>2019-06-03T21:11:57+00:00</updated>
<author>
<name>Edward Barnard</name>
<email>eabarnard@gmail.com</email>
</author>
<published>2019-06-03T21:11:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=45bb4097b4bb2670f93d0836d40d31bbde38aab2'/>
<id>urn:sha1:45bb4097b4bb2670f93d0836d40d31bbde38aab2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #61263 - GuillaumeGomez:valid-html, r=Manishearth</title>
<updated>2019-06-01T04:50:02+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2019-06-01T04:50:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=525d7deb6de47a600945450807c2f3ca04047bba'/>
<id>urn:sha1:525d7deb6de47a600945450807c2f3ca04047bba</id>
<content type='text'>
Don't generate div inside header (h4/h3/h...) elements

Fixes #60865.

According to the HTML spec, we're not supposed to put `div` elements inside heading elements (h4/h3/h...). It doesn't change the display as far as I could tell.

r? @QuietMisdreavus
</content>
</entry>
<entry>
<title>Don't generate div inside header (h4/h3/h...) elements</title>
<updated>2019-05-29T14:51:48+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2019-05-28T13:45:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=35091620e6726b1f6262a2a3ae4575833fd994a9'/>
<id>urn:sha1:35091620e6726b1f6262a2a3ae4575833fd994a9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename "Associated*" to "Assoc*"</title>
<updated>2019-05-26T09:49:02+00:00</updated>
<author>
<name>Andrew Xu</name>
<email>andrewxuyuan@gmail.com</email>
</author>
<published>2019-05-19T08:26:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=46b9ed4fa1feae35a3ab31fbfe50b9b1d9bbcea8'/>
<id>urn:sha1:46b9ed4fa1feae35a3ab31fbfe50b9b1d9bbcea8</id>
<content type='text'>
We are going to uniform the terminology of all associated items.
Methods that may or may not have `self` are called "associated
functions". Because `AssociatedFn` is a bit long, we rename `Associated`
to `Assoc`.
</content>
</entry>
</feed>
