Prevent infinite recursion of modules
This commit is contained in:
parent
ff65726ebf
commit
3ba7c00f94
4 changed files with 47 additions and 9 deletions
21
src/test/rustdoc/auxiliary/mod-stackoverflow.rs
Normal file
21
src/test/rustdoc/auxiliary/mod-stackoverflow.rs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
// 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 <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.
|
||||
|
||||
// compile-flags: -Cmetadata=aux
|
||||
|
||||
pub mod tree {
|
||||
pub use tree;
|
||||
}
|
||||
|
||||
pub mod tree2 {
|
||||
pub mod prelude {
|
||||
pub use tree2;
|
||||
}
|
||||
}
|
||||
16
src/test/rustdoc/mod-stackoverflow.rs
Normal file
16
src/test/rustdoc/mod-stackoverflow.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// 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 <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:mod-stackoverflow.rs
|
||||
// ignore-cross-compile
|
||||
|
||||
extern crate mod_stackoverflow;
|
||||
pub use mod_stackoverflow::tree;
|
||||
pub use mod_stackoverflow::tree2;
|
||||
Loading…
Add table
Add a link
Reference in a new issue