diff options
| author | Oliver Middleton <olliemail27@gmail.com> | 2016-06-03 22:59:45 +0100 |
|---|---|---|
| committer | Oliver Middleton <olliemail27@gmail.com> | 2016-06-03 22:59:45 +0100 |
| commit | 4ddb541818dd700fdbee8e569ad53e3a24cefc04 (patch) | |
| tree | a12d4396e0bf93353363fe35ee31e15b9d992c88 /src/test/rustdoc | |
| parent | 433d70cda2e6d61d5bbb20423f0937a643cf34b4 (diff) | |
| download | rust-4ddb541818dd700fdbee8e569ad53e3a24cefc04.tar.gz rust-4ddb541818dd700fdbee8e569ad53e3a24cefc04.zip | |
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.
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/redirect-const.rs | 23 |
1 files changed, 23 insertions, 0 deletions
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 <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. + +#![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; +} |
