From 8302044a5289deb3ed1ad8aa8c185c2d7045bc8b Mon Sep 17 00:00:00 2001 From: Oliver Middleton Date: Mon, 8 Jan 2018 03:39:25 +0000 Subject: rustdoc: Don't import macros from private imports --- src/test/rustdoc/issue-47038.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/test/rustdoc/issue-47038.rs (limited to 'src/test/rustdoc') diff --git a/src/test/rustdoc/issue-47038.rs b/src/test/rustdoc/issue-47038.rs new file mode 100644 index 00000000000..453cd663d2c --- /dev/null +++ b/src/test/rustdoc/issue-47038.rs @@ -0,0 +1,20 @@ +// Copyright 2018 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. + +#![feature(decl_macro)] + +#![crate_name = "foo"] + +use std::vec; + +// @has 'foo/index.html' +// @!has - '//*[@id="macros"]' 'Macros' +// @!has - '//a/@href' 'macro.vec.html' +// @!has 'foo/macro.vec.html' -- cgit 1.4.1-3-g733a5