Prevent infinite recursion of modules

This commit is contained in:
Guillaume Gomez 2018-04-28 21:56:38 +02:00
parent ff65726ebf
commit 3ba7c00f94
4 changed files with 47 additions and 9 deletions

View 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;
}
}

View 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;