<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/doc/rustdoc, branch 1.60.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.60.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.60.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2022-02-18T22:23:05+00:00</updated>
<entry>
<title>Rollup merge of #93497 - willcrichton:rustdoc-scrape-test, r=GuillaumeGomez</title>
<updated>2022-02-18T22:23:05+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-02-18T22:23:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e3a1e192960c41acc196b59f0cb1b28f78e712f8'/>
<id>urn:sha1:e3a1e192960c41acc196b59f0cb1b28f78e712f8</id>
<content type='text'>
Pass `--test` flag through rustdoc to rustc so `#[test]` functions can be scraped

As a part of stabilizing the scrape examples extension in Cargo, I uncovered a bug where examples cannot be scraped from tests. See this test: https://github.com/rust-lang/cargo/pull/10343/files#diff-27aa4f012ebfebaaee61498d91d2370de460628405d136b05e77efe61e044679R2496

The issue is that when rustdoc is run on a test file, because `--test` is not passed as a rustc option, then functions annotated with `#[test]` are ignored by the compiler. So this PR changes rustdoc so when `--test` is passed in conjunction with a `--scrape-example-&lt;suffix&gt;` flag, then the `test` field of `rustc_interface::Config` is true.

r? `@camelid`
</content>
</entry>
<entry>
<title>Add documentation for rustdoc --check option</title>
<updated>2022-02-15T20:34:40+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2022-02-15T10:48:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=590ca7e756b75d91f631ca2a4a1fbce0cb788f5e'/>
<id>urn:sha1:590ca7e756b75d91f631ca2a4a1fbce0cb788f5e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Clean up rustdoc command line args doc</title>
<updated>2022-02-15T10:46:52+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2022-02-15T10:46:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=41a0f8c72f3e9d439329ca7e3ccd9ae98b92bb23'/>
<id>urn:sha1:41a0f8c72f3e9d439329ca7e3ccd9ae98b92bb23</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add --scrape-tests flags so rustdoc can scrape examples from tests</title>
<updated>2022-02-12T05:48:59+00:00</updated>
<author>
<name>Will Crichton</name>
<email>wcrichto@cs.stanford.edu</email>
</author>
<published>2022-02-12T05:48:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fbbcb089c52e6dce88600be36a1cc97884294d4f'/>
<id>urn:sha1:fbbcb089c52e6dce88600be36a1cc97884294d4f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix typo `documenation`</title>
<updated>2022-01-28T02:26:49+00:00</updated>
<author>
<name>Kvicii</name>
<email>Karonazaba@gmail.com</email>
</author>
<published>2022-01-28T02:26:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ff79ce7e6fa0d65a208245d92857bf2c2a14599e'/>
<id>urn:sha1:ff79ce7e6fa0d65a208245d92857bf2c2a14599e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix typo `documenation`</title>
<updated>2022-01-27T14:07:17+00:00</updated>
<author>
<name>Kvicii</name>
<email>Karonazaba@gmail.com</email>
</author>
<published>2022-01-27T14:07:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=db097f308af6b6ec219a460385159985256e2193'/>
<id>urn:sha1:db097f308af6b6ec219a460385159985256e2193</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #92818 - GuillaumeGomez:update-doc-cfg-doc, r=camelid</title>
<updated>2022-01-14T06:47:35+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2022-01-14T06:47:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3cbc448c9c8257011e6c97e9bef405a4333b361c'/>
<id>urn:sha1:3cbc448c9c8257011e6c97e9bef405a4333b361c</id>
<content type='text'>
Update documentation for doc_cfg feature

Fixes  #92484.
</content>
</entry>
<entry>
<title>Update documentation for doc_cfg</title>
<updated>2022-01-13T20:08:02+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2022-01-12T17:20:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=241d97750ff79dfdcbf0091e7ee38d00c69818bb'/>
<id>urn:sha1:241d97750ff79dfdcbf0091e7ee38d00c69818bb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Extended the note on the use of `no_run` attribute</title>
<updated>2022-01-10T00:17:15+00:00</updated>
<author>
<name>Dmitrii - Demenev</name>
<email>demenev.dmitriy1@mail.ru</email>
</author>
<published>2022-01-10T00:17:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8fd8db5c2955dd715cf7ee59205a733abcdd34fc'/>
<id>urn:sha1:8fd8db5c2955dd715cf7ee59205a733abcdd34fc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #91310 - hi-rustin:rustin-patch-rustdoc, r=jyn514</title>
<updated>2021-12-11T07:22:30+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2021-12-11T07:22:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d8bb4d69db35368cf3ceff92ee59b100339bce3b'/>
<id>urn:sha1:d8bb4d69db35368cf3ceff92ee59b100339bce3b</id>
<content type='text'>
Add --out-dir flag for rustdoc

part of https://github.com/rust-lang/rust/issues/91260

Add --out-dir flag for rustdoc and change the `-o` option to point to out-dir.

I'm not quite sure if it should be stable, also I'm not sure if this parameter priority is appropriate? Or should I just refuse to pass both parameters at the same time?

r? `@jyn514`
</content>
</entry>
</feed>
