Skip to content

Commit 2473c21

Browse files
committed
---
yaml --- r: 224794 b: refs/heads/tmp c: f9f9f50 h: refs/heads/master v: v3
1 parent 33bcf3a commit 2473c21

File tree

6 files changed

+105
-8
lines changed

6 files changed

+105
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: 83dee3dfbb452a7558193f3ce171b3c60bf4a499
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: 96041ccd1054aa05c4ce7f6741df278fbf96c06b
28+
refs/heads/tmp: f9f9f509a09fadf96a85b0c4b68a13b9b8ef6dfb
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: e58601ab085591c71a27ae82137fc313222c2270
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

branches/tmp/src/test/compile-fail/import-shadow-6.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
#![no_implicit_prelude]
1414

15-
use qux::*;
16-
use foo::*; //~ERROR a type named `Baz` has already been imported in this module
15+
use qux::*; //~ERROR a type named `Baz` has already been imported in this module
16+
use foo::*;
1717

1818
mod foo {
1919
pub type Baz = isize;

branches/tmp/src/test/compile-fail/issue-25396.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
use foo::baz;
1212
use bar::baz; //~ ERROR a module named `baz` has already been imported
1313

14-
use foo::Quux;
1514
use bar::Quux; //~ ERROR a trait named `Quux` has already been imported
15+
use foo::Quux;
1616

17-
use foo::blah;
18-
use bar::blah; //~ ERROR a type named `blah` has already been imported
17+
use foo::blah; //~ ERROR a type named `blah` has already been imported
18+
use bar::blah;
1919

20-
use foo::WOMP;
21-
use bar::WOMP; //~ ERROR a value named `WOMP` has already been imported
20+
use foo::WOMP; //~ ERROR a value named `WOMP` has already been imported
21+
use bar::WOMP;
2222

2323
fn main() {}
2424

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
#![allow(unused_imports, dead_code)]
12+
13+
mod bar {
14+
pub use self::middle::*;
15+
16+
mod middle {
17+
pub use self::baz::Baz;
18+
19+
mod baz {
20+
pub enum Baz {
21+
Baz1,
22+
Baz2
23+
}
24+
}
25+
}
26+
}
27+
28+
mod foo {
29+
use bar::Baz::{Baz1, Baz2};
30+
}
31+
32+
fn main() {}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
mod a {
12+
use b::{B};
13+
pub use self::inner::A;
14+
15+
mod inner {
16+
pub struct A;
17+
}
18+
}
19+
20+
mod b {
21+
use a::{A};
22+
pub use self::inner::B;
23+
24+
mod inner {
25+
pub struct B;
26+
}
27+
}
28+
29+
fn main() {}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
pub mod a {
12+
use b::fn_b;
13+
use c::*;
14+
15+
pub fn fn_a(){
16+
}
17+
}
18+
19+
pub mod b {
20+
use a::fn_a;
21+
use c::*;
22+
23+
pub fn fn_b(){
24+
}
25+
}
26+
27+
pub mod c{
28+
pub fn fn_c(){
29+
}
30+
}
31+
32+
use a::fn_a;
33+
use b::fn_b;
34+
35+
fn main() {
36+
}

0 commit comments

Comments
 (0)