about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-09-23 04:41:09 +0000
committerbors <bors@rust-lang.org>2023-09-23 04:41:09 +0000
commitbf982631df866498a295528ff0047207e881d55d (patch)
tree1dbbe521a31b193d26daf4dbf35d200d510bf04f /tests
parent2d08657901d8fec8f51f203dc8a38e25c162e834 (diff)
parent4ed4913e67cab329bd3cca92dff1cf558cc3575e (diff)
downloadrust-bf982631df866498a295528ff0047207e881d55d.tar.gz
rust-bf982631df866498a295528ff0047207e881d55d.zip
Auto merge of #116052 - oli-obk:ceci_nest_pas_une_query, r=WaffleLapkin
Add a way to decouple the implementation and the declaration of a TyCtxt method.

properly addresses https://github.com/rust-lang/rust/pull/115819

accepted MCP: https://github.com/rust-lang/compiler-team/issues/395
Diffstat (limited to 'tests')
-rw-r--r--tests/run-make-fulldeps/obtain-borrowck/driver.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run-make-fulldeps/obtain-borrowck/driver.rs b/tests/run-make-fulldeps/obtain-borrowck/driver.rs
index b59a65a713f..5df4c558ee1 100644
--- a/tests/run-make-fulldeps/obtain-borrowck/driver.rs
+++ b/tests/run-make-fulldeps/obtain-borrowck/driver.rs
@@ -25,8 +25,8 @@ use rustc_hir::def_id::LocalDefId;
 use rustc_interface::interface::Compiler;
 use rustc_interface::{Config, Queries};
 use rustc_middle::query::queries::mir_borrowck::ProvidedValue;
-use rustc_middle::query::{ExternProviders, Providers};
 use rustc_middle::ty::TyCtxt;
+use rustc_middle::util::Providers;
 use rustc_session::Session;
 use std::cell::RefCell;
 use std::collections::HashMap;
@@ -110,7 +110,7 @@ impl rustc_driver::Callbacks for CompilerCalls {
     }
 }
 
-fn override_queries(_session: &Session, local: &mut Providers, _external: &mut ExternProviders) {
+fn override_queries(_session: &Session, local: &mut Providers) {
     local.mir_borrowck = mir_borrowck;
 }