From 4ddb541818dd700fdbee8e569ad53e3a24cefc04 Mon Sep 17 00:00:00 2001 From: Oliver Middleton Date: Fri, 3 Jun 2016 22:59:45 +0100 Subject: rustdoc: Fix generating redirect pages for statics and consts These were missing from the cache for some reason meaning the redirect pages failed to render. --- src/test/rustdoc/redirect-const.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/test/rustdoc/redirect-const.rs (limited to 'src/test/rustdoc') diff --git a/src/test/rustdoc/redirect-const.rs b/src/test/rustdoc/redirect-const.rs new file mode 100644 index 00000000000..c95e5537c88 --- /dev/null +++ b/src/test/rustdoc/redirect-const.rs @@ -0,0 +1,23 @@ +// 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="foo"] + +pub use hidden::STATIC_FOO; +pub use hidden::CONST_FOO; + +mod hidden { + // @has foo/hidden/static.STATIC_FOO.html + // @has - '//p/a' '../../foo/static.STATIC_FOO.html' + pub static STATIC_FOO: u64 = 0; + // @has foo/hidden/constant.CONST_FOO.html + // @has - '//p/a' '../../foo/constant.CONST_FOO.html' + pub const CONST_FOO: u64 = 0; +} -- cgit 1.4.1-3-g733a5