Rollup merge of #33196 - mitaa:rdoc-crate-links, r=alexcrichton
rustdoc: Linkify extern crates fixes #33178 r? @alexcrichton
This commit is contained in:
commit
edbb0d5a90
8 changed files with 79 additions and 13 deletions
20
src/test/rustdoc/issue-33178-1.rs
Normal file
20
src/test/rustdoc/issue-33178-1.rs
Normal file
|
|
@ -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;
|
||||
23
src/test/rustdoc/issue-33178.rs
Normal file
23
src/test/rustdoc/issue-33178.rs
Normal file
|
|
@ -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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue