File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
compiler/rustc_interface/src Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ impl<'tcx> Queries<'tcx> {
116116 . compute ( || passes:: parse ( self . session ( ) ) . map_err ( |mut parse_error| parse_error. emit ( ) ) )
117117 }
118118
119+ #[ deprecated = "pre_configure may be made private in the future. If you need it please open an issue with your use case." ]
119120 pub fn pre_configure ( & self ) -> Result < QueryResult < ' _ , ( ast:: Crate , ast:: AttrVec ) > > {
120121 self . pre_configure . compute ( || {
121122 let mut krate = self . parse ( ) ?. steal ( ) ;
@@ -173,6 +174,7 @@ impl<'tcx> Queries<'tcx> {
173174 pub fn global_ctxt ( & ' tcx self ) -> Result < QueryResult < ' _ , & ' tcx GlobalCtxt < ' tcx > > > {
174175 self . gcx . compute ( || {
175176 let sess = self . session ( ) ;
177+ #[ allow( deprecated) ]
176178 let ( krate, pre_configured_attrs) = self . pre_configure ( ) ?. steal ( ) ;
177179
178180 // parse `#[crate_name]` even if `--crate-name` was passed, to make sure it matches.
You can’t perform that action at this time.
0 commit comments