diff options
| author | mitaa <mitaa.ceb@gmail.com> | 2016-04-24 14:11:26 +0200 |
|---|---|---|
| committer | mitaa <mitaa.ceb@gmail.com> | 2016-04-24 20:32:21 +0200 |
| commit | 6603c95414bd3adb10e6b3ba548f69952df8f290 (patch) | |
| tree | 36b1587c3e51345c9ecfad3134e696f92a5f17b8 /src/test/rustdoc/inline_cross | |
| parent | dca7f0162c862f0b592614da6d2215307da7e6c2 (diff) | |
| download | rust-6603c95414bd3adb10e6b3ba548f69952df8f290.tar.gz rust-6603c95414bd3adb10e6b3ba548f69952df8f290.zip | |
Check reachability for inlined extern links too
An item is inlined and recorded as inlined even if it is `doc(hidden)`, leading to unchecked external links.
Diffstat (limited to 'src/test/rustdoc/inline_cross')
| -rw-r--r-- | src/test/rustdoc/inline_cross/inline_hidden.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/rustdoc/inline_cross/inline_hidden.rs b/src/test/rustdoc/inline_cross/inline_hidden.rs new file mode 100644 index 00000000000..c59b5afd1c4 --- /dev/null +++ b/src/test/rustdoc/inline_cross/inline_hidden.rs @@ -0,0 +1,22 @@ +// Copyright 2016 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// aux-build:rustdoc-hidden.rs +// build-aux-docs +// ignore-cross-compile + +extern crate rustdoc_hidden; + +#[doc(no_inline)] +pub use rustdoc_hidden::Foo; + +// @has inline_hidden/fn.foo.html +// @!has - '//a/@title' 'Foo' +pub fn foo(_: Foo) {} |
