This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use crate::dep_graph::SerializedDepNodeIndex;
2
2
use crate :: dep_graph:: { DepKind , DepNode } ;
3
3
use crate :: ty:: query:: caches:: QueryCache ;
4
4
use crate :: ty:: query:: plumbing:: CycleError ;
5
- use crate :: ty:: query:: { Query , QueryState } ;
5
+ use crate :: ty:: query:: QueryState ;
6
6
use crate :: ty:: TyCtxt ;
7
7
use rustc_data_structures:: profiling:: ProfileCategory ;
8
8
use rustc_hir:: def_id:: DefId ;
@@ -32,8 +32,6 @@ pub(crate) trait QueryAccessors<'tcx>: QueryConfig<'tcx> {
32
32
33
33
type Cache : QueryCache < Self :: Key , Self :: Value > ;
34
34
35
- fn query ( key : Self :: Key ) -> Query < ' tcx > ;
36
-
37
35
// Don't use this method to access query results, instead use the methods on TyCtxt
38
36
fn query_state < ' a > ( tcx : TyCtxt < ' tcx > ) -> & ' a QueryState < ' tcx , Self > ;
39
37
Original file line number Diff line number Diff line change @@ -877,7 +877,7 @@ macro_rules! define_queries_inner {
877
877
} ;
878
878
let info = QueryInfo {
879
879
span: job. span,
880
- query: queries :: $name:: query ( k. clone( ) )
880
+ query: Query :: $name( k. clone( ) )
881
881
} ;
882
882
Some ( ( id, QueryJobInfo { info, job: job. clone( ) } ) )
883
883
} else {
@@ -965,11 +965,6 @@ macro_rules! define_queries_inner {
965
965
966
966
type Cache = query_storage!( [ $( $modifiers) * ] [ $K, $V] ) ;
967
967
968
- #[ inline( always) ]
969
- fn query( key: Self :: Key ) -> Query <' tcx> {
970
- Query :: $name( key)
971
- }
972
-
973
968
#[ inline( always) ]
974
969
fn query_state<' a>( tcx: TyCtxt <$tcx>) -> & ' a QueryState <$tcx, Self > {
975
970
& tcx. queries. $name
You can’t perform that action at this time.
0 commit comments