@@ -21,29 +21,32 @@ use syntax::ast::{Name, NodeId};
21
21
use syntax:: attr;
22
22
use syntax:: ptr:: P ;
23
23
use rustc_front:: hir;
24
+ use rustc_front:: hir:: Vec ;
25
+
26
+ use std:: vec;
24
27
25
28
pub struct Module {
26
29
pub name : Option < Name > ,
27
30
pub attrs : Vec < ast:: Attribute > ,
28
31
pub where_outer : Span ,
29
32
pub where_inner : Span ,
30
- pub extern_crates : Vec < ExternCrate > ,
31
- pub imports : Vec < Import > ,
32
- pub structs : Vec < Struct > ,
33
- pub enums : Vec < Enum > ,
34
- pub fns : Vec < Function > ,
35
- pub mods : Vec < Module > ,
33
+ pub extern_crates : vec :: Vec < ExternCrate > ,
34
+ pub imports : vec :: Vec < Import > ,
35
+ pub structs : vec :: Vec < Struct > ,
36
+ pub enums : vec :: Vec < Enum > ,
37
+ pub fns : vec :: Vec < Function > ,
38
+ pub mods : vec :: Vec < Module > ,
36
39
pub id : NodeId ,
37
- pub typedefs : Vec < Typedef > ,
38
- pub statics : Vec < Static > ,
39
- pub constants : Vec < Constant > ,
40
- pub traits : Vec < Trait > ,
40
+ pub typedefs : vec :: Vec < Typedef > ,
41
+ pub statics : vec :: Vec < Static > ,
42
+ pub constants : vec :: Vec < Constant > ,
43
+ pub traits : vec :: Vec < Trait > ,
41
44
pub vis : hir:: Visibility ,
42
45
pub stab : Option < attr:: Stability > ,
43
- pub impls : Vec < Impl > ,
44
- pub def_traits : Vec < DefaultImpl > ,
45
- pub foreigns : Vec < hir:: ForeignMod > ,
46
- pub macros : Vec < Macro > ,
46
+ pub impls : vec :: Vec < Impl > ,
47
+ pub def_traits : vec :: Vec < DefaultImpl > ,
48
+ pub foreigns : vec :: Vec < hir:: ForeignMod > ,
49
+ pub macros : vec :: Vec < Macro > ,
47
50
pub is_crate : bool ,
48
51
}
49
52
@@ -57,20 +60,20 @@ impl Module {
57
60
where_outer : syntax:: codemap:: DUMMY_SP ,
58
61
where_inner : syntax:: codemap:: DUMMY_SP ,
59
62
attrs : Vec :: new ( ) ,
60
- extern_crates : Vec :: new ( ) ,
61
- imports : Vec :: new ( ) ,
62
- structs : Vec :: new ( ) ,
63
- enums : Vec :: new ( ) ,
64
- fns : Vec :: new ( ) ,
65
- mods : Vec :: new ( ) ,
66
- typedefs : Vec :: new ( ) ,
67
- statics : Vec :: new ( ) ,
68
- constants : Vec :: new ( ) ,
69
- traits : Vec :: new ( ) ,
70
- impls : Vec :: new ( ) ,
71
- def_traits : Vec :: new ( ) ,
72
- foreigns : Vec :: new ( ) ,
73
- macros : Vec :: new ( ) ,
63
+ extern_crates : vec :: Vec :: new ( ) ,
64
+ imports : vec :: Vec :: new ( ) ,
65
+ structs : vec :: Vec :: new ( ) ,
66
+ enums : vec :: Vec :: new ( ) ,
67
+ fns : vec :: Vec :: new ( ) ,
68
+ mods : vec :: Vec :: new ( ) ,
69
+ typedefs : vec :: Vec :: new ( ) ,
70
+ statics : vec :: Vec :: new ( ) ,
71
+ constants : vec :: Vec :: new ( ) ,
72
+ traits : vec :: Vec :: new ( ) ,
73
+ impls : vec :: Vec :: new ( ) ,
74
+ def_traits : vec :: Vec :: new ( ) ,
75
+ foreigns : vec :: Vec :: new ( ) ,
76
+ macros : vec :: Vec :: new ( ) ,
74
77
is_crate : false ,
75
78
}
76
79
}
0 commit comments