From 042f1df198c6be96f08afe8b2e938ddfbeba0330 Mon Sep 17 00:00:00 2001 From: QuietMisdreavus Date: Fri, 15 Jun 2018 18:16:43 -0500 Subject: process cross-crate glob re-exports --- .../rustdoc/inline_cross/auxiliary/cross-glob.rs | 15 +++++++++++++++ src/test/rustdoc/inline_cross/cross-glob.rs | 21 +++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 src/test/rustdoc/inline_cross/auxiliary/cross-glob.rs create mode 100644 src/test/rustdoc/inline_cross/cross-glob.rs (limited to 'src/test/rustdoc') diff --git a/src/test/rustdoc/inline_cross/auxiliary/cross-glob.rs b/src/test/rustdoc/inline_cross/auxiliary/cross-glob.rs new file mode 100644 index 00000000000..5067ce9e9a3 --- /dev/null +++ b/src/test/rustdoc/inline_cross/auxiliary/cross-glob.rs @@ -0,0 +1,15 @@ +// 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. + +#![crate_name = "inner"] + +pub struct SomeStruct; + +pub fn some_fn() {} diff --git a/src/test/rustdoc/inline_cross/cross-glob.rs b/src/test/rustdoc/inline_cross/cross-glob.rs new file mode 100644 index 00000000000..21cf158c13b --- /dev/null +++ b/src/test/rustdoc/inline_cross/cross-glob.rs @@ -0,0 +1,21 @@ +// 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:cross-glob.rs +// build-aux-docs +// ignore-cross-compile + +extern crate inner; + +// @has cross_glob/struct.SomeStruct.html +// @has cross_glob/fn.some_fn.html +// @!has cross_glob/index.html '//code' 'pub use inner::*;' +#[doc(inline)] +pub use inner::*; -- cgit 1.4.1-3-g733a5