@@ -26,7 +26,7 @@ type FileModMap<'ast> = BTreeMap<FileName, Module<'ast>>;
26
26
#[ derive( Debug , Clone ) ]
27
27
pub ( crate ) struct Module < ' a > {
28
28
ast_mod_kind : Option < Cow < ' a , ast:: ModKind > > ,
29
- pub ( crate ) items : Cow < ' a , ThinVec < rustc_ast :: ptr :: P < ast:: Item > > > ,
29
+ pub ( crate ) items : Cow < ' a , ThinVec < Box < ast:: Item > > > ,
30
30
inner_attr : ast:: AttrVec ,
31
31
pub ( crate ) span : Span ,
32
32
}
@@ -35,7 +35,7 @@ impl<'a> Module<'a> {
35
35
pub ( crate ) fn new (
36
36
mod_span : Span ,
37
37
ast_mod_kind : Option < Cow < ' a , ast:: ModKind > > ,
38
- mod_items : Cow < ' a , ThinVec < rustc_ast :: ptr :: P < ast:: Item > > > ,
38
+ mod_items : Cow < ' a , ThinVec < Box < ast:: Item > > > ,
39
39
mod_attrs : Cow < ' a , ast:: AttrVec > ,
40
40
) -> Self {
41
41
let inner_attr = mod_attrs
@@ -170,7 +170,7 @@ impl<'ast, 'psess, 'c> ModResolver<'ast, 'psess> {
170
170
/// Visit modules defined inside macro calls.
171
171
fn visit_mod_outside_ast (
172
172
& mut self ,
173
- items : ThinVec < rustc_ast :: ptr :: P < ast:: Item > > ,
173
+ items : ThinVec < Box < ast:: Item > > ,
174
174
) -> Result < ( ) , ModuleResolutionError > {
175
175
for item in items {
176
176
if is_cfg_if ( & item) {
@@ -197,7 +197,7 @@ impl<'ast, 'psess, 'c> ModResolver<'ast, 'psess> {
197
197
/// Visit modules from AST.
198
198
fn visit_mod_from_ast (
199
199
& mut self ,
200
- items : & ' ast [ rustc_ast :: ptr :: P < ast:: Item > ] ,
200
+ items : & ' ast [ Box < ast:: Item > ] ,
201
201
) -> Result < ( ) , ModuleResolutionError > {
202
202
for item in items {
203
203
if is_cfg_if ( item) {
0 commit comments