diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-09-10 09:32:38 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-09-10 09:41:03 +0000 |
| commit | 90e9053189da16be1f1ee00836e692edb9bf8154 (patch) | |
| tree | d31dc8c272c74ad9679cec63618d544cfec3c1eb /compiler/rustc_interface/src | |
| parent | 0ed291453da7b7233f1b6f6535a2d7e80610d568 (diff) | |
| download | rust-90e9053189da16be1f1ee00836e692edb9bf8154.tar.gz rust-90e9053189da16be1f1ee00836e692edb9bf8154.zip | |
Deprecate the pre_configure query
Only deprecating it rather than making it private to just in case someone has a use case for it.
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/queries.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/queries.rs b/compiler/rustc_interface/src/queries.rs index e0d9998d919..f3a026f71a2 100644 --- a/compiler/rustc_interface/src/queries.rs +++ b/compiler/rustc_interface/src/queries.rs @@ -116,6 +116,7 @@ impl<'tcx> Queries<'tcx> { .compute(|| passes::parse(self.session()).map_err(|mut parse_error| parse_error.emit())) } + #[deprecated = "pre_configure may be made private in the future. If you need it please open an issue with your use case."] pub fn pre_configure(&self) -> Result<QueryResult<'_, (ast::Crate, ast::AttrVec)>> { self.pre_configure.compute(|| { let mut krate = self.parse()?.steal(); @@ -173,6 +174,7 @@ impl<'tcx> Queries<'tcx> { pub fn global_ctxt(&'tcx self) -> Result<QueryResult<'_, &'tcx GlobalCtxt<'tcx>>> { self.gcx.compute(|| { let sess = self.session(); + #[allow(deprecated)] let (krate, pre_configured_attrs) = self.pre_configure()?.steal(); // parse `#[crate_name]` even if `--crate-name` was passed, to make sure it matches. |
