File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -3534,7 +3534,7 @@ fn module_to_string(module: Module) -> String {
3534
3534
} else {
3535
3535
// danger, shouldn't be ident?
3536
3536
names. push ( token:: intern ( "<opaque>" ) ) ;
3537
- collect_mod ( names, module) ;
3537
+ collect_mod ( names, module. parent . unwrap ( ) ) ;
3538
3538
}
3539
3539
}
3540
3540
collect_mod ( & mut names, module) ;
Original file line number Diff line number Diff line change
1
+ // Copyright 2016 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
+ fn main ( ) {
12
+ extern crate rand;
13
+ use rand:: Rng ; //~ ERROR unresolved import
14
+ }
You can’t perform that action at this time.
0 commit comments