File tree 1 file changed +2
-0
lines changed
compiler/rustc_interface/src
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> {
116
116
. compute ( || passes:: parse ( self . session ( ) ) . map_err ( |mut parse_error| parse_error. emit ( ) ) )
117
117
}
118
118
119
+ #[ deprecated = "pre_configure may be made private in the future. If you need it please open an issue with your use case." ]
119
120
pub fn pre_configure ( & self ) -> Result < QueryResult < ' _ , ( ast:: Crate , ast:: AttrVec ) > > {
120
121
self . pre_configure . compute ( || {
121
122
let mut krate = self . parse ( ) ?. steal ( ) ;
@@ -173,6 +174,7 @@ impl<'tcx> Queries<'tcx> {
173
174
pub fn global_ctxt ( & ' tcx self ) -> Result < QueryResult < ' _ , & ' tcx GlobalCtxt < ' tcx > > > {
174
175
self . gcx . compute ( || {
175
176
let sess = self . session ( ) ;
177
+ #[ allow( deprecated) ]
176
178
let ( krate, pre_configured_attrs) = self . pre_configure ( ) ?. steal ( ) ;
177
179
178
180
// 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