@@ -84,7 +84,6 @@ pub struct Queries<'tcx> {
8484 hir_arena : WorkerLocal < rustc_hir:: Arena < ' tcx > > ,
8585
8686 parse : Query < ast:: Crate > ,
87- pre_configure : Query < ( ast:: Crate , ast:: AttrVec ) > ,
8887 // This just points to what's in `gcx_cell`.
8988 gcx : Query < & ' tcx GlobalCtxt < ' tcx > > ,
9089}
@@ -97,7 +96,6 @@ impl<'tcx> Queries<'tcx> {
9796 arena : WorkerLocal :: new ( |_| Arena :: default ( ) ) ,
9897 hir_arena : WorkerLocal :: new ( |_| rustc_hir:: Arena :: default ( ) ) ,
9998 parse : Default :: default ( ) ,
100- pre_configure : Default :: default ( ) ,
10199 gcx : Default :: default ( ) ,
102100 }
103101 }
@@ -108,12 +106,12 @@ impl<'tcx> Queries<'tcx> {
108106 } )
109107 }
110108
111- #[ deprecated = "pre_configure may be made private in the future. If you need it please open an issue with your use case." ]
112- pub fn pre_configure ( & self ) -> Result < QueryResult < ' _ , ( ast:: Crate , ast:: AttrVec ) > > {
113- self . pre_configure . compute ( || {
109+ pub fn global_ctxt ( & ' tcx self ) -> Result < QueryResult < ' _ , & ' tcx GlobalCtxt < ' tcx > > > {
110+ self . gcx . compute ( || {
111+ let sess = & self . compiler . sess ;
112+
114113 let mut krate = self . parse ( ) ?. steal ( ) ;
115114
116- let sess = & self . compiler . sess ;
117115 rustc_builtin_macros:: cmdline_attrs:: inject (
118116 & mut krate,
119117 & sess. parse_sess ,
@@ -122,15 +120,6 @@ impl<'tcx> Queries<'tcx> {
122120
123121 let pre_configured_attrs =
124122 rustc_expand:: config:: pre_configure_attrs ( sess, & krate. attrs ) ;
125- Ok ( ( krate, pre_configured_attrs) )
126- } )
127- }
128-
129- pub fn global_ctxt ( & ' tcx self ) -> Result < QueryResult < ' _ , & ' tcx GlobalCtxt < ' tcx > > > {
130- self . gcx . compute ( || {
131- let sess = & self . compiler . sess ;
132- #[ allow( deprecated) ]
133- let ( krate, pre_configured_attrs) = self . pre_configure ( ) ?. steal ( ) ;
134123
135124 // parse `#[crate_name]` even if `--crate-name` was passed, to make sure it matches.
136125 let crate_name = find_crate_name ( sess, & pre_configured_attrs) ;
0 commit comments