about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2017-12-22 02:50:53 +0800
committerGitHub <noreply@github.com>2017-12-22 02:50:53 +0800
commit696e951fe90fbe7b94dac8be8a9f3dbcacd33528 (patch)
tree7ce38e94da8dfd1cac5f545bf98287b3d13c452a /src/test/rustdoc
parent256bf2be62cd1d124fbfe6c6a0fb9c43f4cb3e91 (diff)
parentcbbb73b56ff8137f38611233d36455294613d0ea (diff)
downloadrust-696e951fe90fbe7b94dac8be8a9f3dbcacd33528.tar.gz
rust-696e951fe90fbe7b94dac8be8a9f3dbcacd33528.zip
Rollup merge of #46858 - QuietMisdreavus:external-doc-error, r=estebank
tweaks and fixes for doc(include)

This PR makes a handful of changes around `#[doc(include="file.md")]` (https://github.com/rust-lang/rust/issues/44732):

* Turns errors when loading files into full errors. This matches the original RFC text.
* Makes the `missing_docs` lint check for `#[doc(include="file.md")]` as well as regular `#[doc="text"]` attributes.
* Loads files included by `#[doc(include="file.md")]` into dep-info, mirroring the behavior of `include_str!()` and friends.
* Adds or modifies tests to check for all of these.
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/auxiliary/external-cross.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/rustdoc/auxiliary/external-cross.rs b/src/test/rustdoc/auxiliary/external-cross.rs
index cb14fec7abe..767fb05313a 100644
--- a/src/test/rustdoc/auxiliary/external-cross.rs
+++ b/src/test/rustdoc/auxiliary/external-cross.rs
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 #![feature(external_doc)]
+#![deny(missing_doc)]
 
 #[doc(include="external-cross-doc.md")]
 pub struct NeedMoreDocs;