From 6603c95414bd3adb10e6b3ba548f69952df8f290 Mon Sep 17 00:00:00 2001 From: mitaa Date: Sun, 24 Apr 2016 14:11:26 +0200 Subject: 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. --- src/test/rustdoc/inline_cross/inline_hidden.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/test/rustdoc/inline_cross/inline_hidden.rs (limited to 'src/test/rustdoc') 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 or the MIT license +// , 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) {} -- cgit 1.4.1-3-g733a5