diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-04-26 01:44:52 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-04-26 01:44:52 +0530 |
| commit | edbb0d5a9069e216cda56454f4e56028579b4264 (patch) | |
| tree | 078e8f18afbff1ddb224239ab211e4eb5d35c9a5 /src/test/rustdoc | |
| parent | b50a2ff4d15324bebf6ce8a1661448195c213f5d (diff) | |
| parent | 0b5b782e392f0e1d000a7e9fefaad9cbebc0e586 (diff) | |
| download | rust-edbb0d5a9069e216cda56454f4e56028579b4264.tar.gz rust-edbb0d5a9069e216cda56454f4e56028579b4264.zip | |
Rollup merge of #33196 - mitaa:rdoc-crate-links, r=alexcrichton
rustdoc: Linkify extern crates fixes #33178 r? @alexcrichton
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/issue-33178-1.rs | 20 | ||||
| -rw-r--r-- | src/test/rustdoc/issue-33178.rs | 23 |
2 files changed, 43 insertions, 0 deletions
diff --git a/src/test/rustdoc/issue-33178-1.rs b/src/test/rustdoc/issue-33178-1.rs new file mode 100644 index 00000000000..a368d6b68b9 --- /dev/null +++ b/src/test/rustdoc/issue-33178-1.rs @@ -0,0 +1,20 @@ +// 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. + +// aux-build:empty.rs +// aux-build:variant-struct.rs +// ignore-cross-compile + +// @has issue_33178_1/index.html +// @!has - //a/@title empty +pub extern crate empty; + +// @!has - //a/@title variant_struct +pub extern crate variant_struct as foo; diff --git a/src/test/rustdoc/issue-33178.rs b/src/test/rustdoc/issue-33178.rs new file mode 100644 index 00000000000..2ecb7d9ec44 --- /dev/null +++ b/src/test/rustdoc/issue-33178.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. + +// aux-build:empty.rs +// aux-build:variant-struct.rs +// build-aux-docs +// ignore-cross-compile + +// @has issue_33178/index.html +// @has - //a/@title empty +// @has - //a/@href ../empty/index.html +pub extern crate empty; + +// @has - //a/@title variant_struct +// @has - //a/@href ../variant_struct/index.html +pub extern crate variant_struct as foo; |
