@@ -26,7 +26,7 @@ type FileModMap<'ast> = BTreeMap<FileName, Module<'ast>>;
2626#[ derive( Debug , Clone ) ]
2727pub ( crate ) struct Module < ' a > {
2828 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 > > > ,
3030 inner_attr : ast:: AttrVec ,
3131 pub ( crate ) span : Span ,
3232}
@@ -35,7 +35,7 @@ impl<'a> Module<'a> {
3535 pub ( crate ) fn new (
3636 mod_span : Span ,
3737 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 > > > ,
3939 mod_attrs : Cow < ' a , ast:: AttrVec > ,
4040 ) -> Self {
4141 let inner_attr = mod_attrs
@@ -170,7 +170,7 @@ impl<'ast, 'psess, 'c> ModResolver<'ast, 'psess> {
170170 /// Visit modules defined inside macro calls.
171171 fn visit_mod_outside_ast (
172172 & mut self ,
173- items : ThinVec < rustc_ast :: ptr :: P < ast:: Item > > ,
173+ items : ThinVec < Box < ast:: Item > > ,
174174 ) -> Result < ( ) , ModuleResolutionError > {
175175 for item in items {
176176 if is_cfg_if ( & item) {
@@ -197,7 +197,7 @@ impl<'ast, 'psess, 'c> ModResolver<'ast, 'psess> {
197197 /// Visit modules from AST.
198198 fn visit_mod_from_ast (
199199 & mut self ,
200- items : & ' ast [ rustc_ast :: ptr :: P < ast:: Item > ] ,
200+ items : & ' ast [ Box < ast:: Item > ] ,
201201 ) -> Result < ( ) , ModuleResolutionError > {
202202 for item in items {
203203 if is_cfg_if ( item) {
0 commit comments