diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-09-11 21:16:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-11 21:16:22 +0200 |
| commit | c943ec2fba30a1ab4d9a60b46036ffa0c71fe6f3 (patch) | |
| tree | c4c94329d7e0b15633a9b1bf82ce1ac4787f146a /compiler/rustc_interface/src | |
| parent | 279e2576a0f8e9667d2e7ee82bd8edaadf1c0999 (diff) | |
| parent | 2eca717a240a37e4e996d727b6506d2f2e990b74 (diff) | |
| download | rust-c943ec2fba30a1ab4d9a60b46036ffa0c71fe6f3.tar.gz rust-c943ec2fba30a1ab4d9a60b46036ffa0c71fe6f3.zip | |
Rollup merge of #115730 - bjorn3:some_driver_refactors, r=compiler-errors
Some more small driver refactors To improve clarity and simplify some code.
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 29a5837eb7c..449d7a29590 100644 --- a/compiler/rustc_interface/src/queries.rs +++ b/compiler/rustc_interface/src/queries.rs @@ -114,6 +114,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(); @@ -171,6 +172,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. |
