about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2017-11-18 12:15:21 +0100
committerGitHub <noreply@github.com>2017-11-18 12:15:21 +0100
commitcdadb6c7255d66969a86dcf2259651138f641ae1 (patch)
treea53d8e30e08b42fa448ec814698f7477d4355fc5 /src/rustllvm/RustWrapper.cpp
parent859c716fbb2aded1e51f5898617e1ccb1842c0a1 (diff)
parentce7a3a458455600aec937354fa9b07cccce1e24e (diff)
downloadrust-cdadb6c7255d66969a86dcf2259651138f641ae1.tar.gz
rust-cdadb6c7255d66969a86dcf2259651138f641ae1.zip
Rollup merge of #45767 - QuietMisdreavus:who-docs-the-doc-tool, r=frewsxcv
rustdoc book: talk about #![doc(test(no_crate_inject))] and #![doc(test(attr(...)))]

While investigating https://github.com/rust-lang/rust/issues/45750 i noticed that `#![doc(test(attr(...)))]` wasn't documented at all. Since this is useful for making your examples follow the same coding guidelines as your code, i wanted to add it to the Rustdoc Book. I also added `#![doc(test(no_crate_inject))]` since it's used in the same place and might be useful for macro-heavy crates. I added mentions for these to "The `doc` attribute" as well as "Documentation tests" since it's useful information in both places.

Technically the step reordering in the second commit is gated on https://github.com/rust-lang/rust/pull/45764, since before that lands attributes from the doctest come before the ones from `#![doc(test(attr(...)))]`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions