@@ -85,7 +85,6 @@ pub struct Queries<'tcx> {
8585 hir_arena : WorkerLocal < rustc_hir:: Arena < ' tcx > > ,
8686
8787 parse : Query < ast:: Crate > ,
88- pre_configure : Query < ( ast:: Crate , ast:: AttrVec ) > ,
8988 // This just points to what's in `gcx_cell`.
9089 gcx : Query < & ' tcx GlobalCtxt < ' tcx > > ,
9190}
@@ -98,7 +97,6 @@ impl<'tcx> Queries<'tcx> {
9897 arena : WorkerLocal :: new ( |_| Arena :: default ( ) ) ,
9998 hir_arena : WorkerLocal :: new ( |_| rustc_hir:: Arena :: default ( ) ) ,
10099 parse : Default :: default ( ) ,
101- pre_configure : Default :: default ( ) ,
102100 gcx : Default :: default ( ) ,
103101 }
104102 }
@@ -113,12 +111,12 @@ impl<'tcx> Queries<'tcx> {
113111 } )
114112 }
115113
116- #[ deprecated = "pre_configure may be made private in the future. If you need it please open an issue with your use case." ]
117- pub fn pre_configure ( & self ) -> Result < QueryResult < ' _ , ( ast:: Crate , ast:: AttrVec ) > > {
118- self . pre_configure . compute ( || {
114+ pub fn global_ctxt ( & ' tcx self ) -> Result < QueryResult < ' _ , & ' tcx GlobalCtxt < ' tcx > > > {
115+ self . gcx . compute ( || {
116+ let sess = & self . compiler . sess ;
117+
119118 let mut krate = self . parse ( ) ?. steal ( ) ;
120119
121- let sess = & self . compiler . sess ;
122120 rustc_builtin_macros:: cmdline_attrs:: inject (
123121 & mut krate,
124122 & sess. parse_sess ,
@@ -127,15 +125,6 @@ impl<'tcx> Queries<'tcx> {
127125
128126 let pre_configured_attrs =
129127 rustc_expand:: config:: pre_configure_attrs ( sess, & krate. attrs ) ;
130- Ok ( ( krate, pre_configured_attrs) )
131- } )
132- }
133-
134- pub fn global_ctxt ( & ' tcx self ) -> Result < QueryResult < ' _ , & ' tcx GlobalCtxt < ' tcx > > > {
135- self . gcx . compute ( || {
136- let sess = & self . compiler . sess ;
137- #[ allow( deprecated) ]
138- let ( krate, pre_configured_attrs) = self . pre_configure ( ) ?. steal ( ) ;
139128
140129 // parse `#[crate_name]` even if `--crate-name` was passed, to make sure it matches.
141130 let crate_name = find_crate_name ( sess, & pre_configured_attrs) ;
0 commit comments