@@ -79,7 +79,7 @@ pub struct Queries<'tcx> {
7979 parse : Query < ast:: Crate > ,
8080 crate_name : Query < String > ,
8181 register_plugins : Query < ( ast:: Crate , Lrc < LintStore > ) > ,
82- expansion : Query < ( ast:: Crate , Rc < RefCell < BoxedResolver > > , Lrc < LintStore > ) > ,
82+ expansion : Query < ( Rc < ast:: Crate > , Rc < RefCell < BoxedResolver > > , Lrc < LintStore > ) > ,
8383 dep_graph : Query < DepGraph > ,
8484 prepare_outputs : Query < OutputFilenames > ,
8585 global_ctxt : Query < QueryContext < ' tcx > > ,
@@ -167,7 +167,7 @@ impl<'tcx> Queries<'tcx> {
167167
168168 pub fn expansion (
169169 & self ,
170- ) -> Result < & Query < ( ast:: Crate , Rc < RefCell < BoxedResolver > > , Lrc < LintStore > ) > > {
170+ ) -> Result < & Query < ( Rc < ast:: Crate > , Rc < RefCell < BoxedResolver > > , Lrc < LintStore > ) > > {
171171 tracing:: trace!( "expansion" ) ;
172172 self . expansion . compute ( || {
173173 let crate_name = self . crate_name ( ) ?. peek ( ) . clone ( ) ;
@@ -183,7 +183,7 @@ impl<'tcx> Queries<'tcx> {
183183 let krate = resolver. access ( |resolver| {
184184 passes:: configure_and_expand ( & sess, & lint_store, krate, & crate_name, resolver)
185185 } ) ?;
186- Ok ( ( krate, Rc :: new ( RefCell :: new ( resolver) ) , lint_store) )
186+ Ok ( ( Rc :: new ( krate) , Rc :: new ( RefCell :: new ( resolver) ) , lint_store) )
187187 } )
188188 }
189189
0 commit comments