Skip to content

Commit 86fe070

Browse files
authored
Rollup merge of rust-lang#91923 - LegionMammal978:less-inband-query_impl, r=michaelwoerister
Remove `in_band_lifetimes` from `rustc_query_impl` See rust-lang#91867 for more information.
2 parents 5d8ded3 + 77a0c65 commit 86fe070

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

compiler/rustc_query_impl/src/keys.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ impl Key for (DefId, DefId) {
151151
}
152152
}
153153

154-
impl Key for (ty::Instance<'tcx>, LocalDefId) {
154+
impl<'tcx> Key for (ty::Instance<'tcx>, LocalDefId) {
155155
#[inline(always)]
156156
fn query_crate_is_local(&self) -> bool {
157157
true

compiler/rustc_query_impl/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
33
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
44
#![feature(crate_visibility_modifier)]
5-
#![feature(in_band_lifetimes)]
65
#![feature(nll)]
76
#![feature(min_specialization)]
87
#![feature(once_cell)]

compiler/rustc_query_impl/src/on_disk_cache.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ impl<'sess> rustc_middle::ty::OnDiskCache<'sess> for OnDiskCache<'sess> {
212212
/// Cache promotions require invoking queries, which needs to read the serialized data.
213213
/// In order to serialize the new on-disk cache, the former on-disk cache file needs to be
214214
/// deleted, hence we won't be able to refer to its memmapped data.
215-
fn drop_serialized_data(&self, tcx: TyCtxt<'tcx>) {
215+
fn drop_serialized_data(&self, tcx: TyCtxt<'_>) {
216216
// Load everything into memory so we can write it out to the on-disk
217217
// cache. The vast majority of cacheable query results should already
218218
// be in memory, so this should be a cheap operation.

compiler/rustc_query_impl/src/plumbing.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl<'tcx> std::ops::Deref for QueryCtxt<'tcx> {
3131
}
3232
}
3333

34-
impl HasDepContext for QueryCtxt<'tcx> {
34+
impl<'tcx> HasDepContext for QueryCtxt<'tcx> {
3535
type DepKind = rustc_middle::dep_graph::DepKind;
3636
type DepContext = TyCtxt<'tcx>;
3737

@@ -41,7 +41,7 @@ impl HasDepContext for QueryCtxt<'tcx> {
4141
}
4242
}
4343

44-
impl QueryContext for QueryCtxt<'tcx> {
44+
impl QueryContext for QueryCtxt<'_> {
4545
fn current_query_job(&self) -> Option<QueryJobId<Self::DepKind>> {
4646
tls::with_related_context(**self, |icx| icx.query)
4747
}
@@ -130,7 +130,7 @@ impl<'tcx> QueryCtxt<'tcx> {
130130

131131
pub(super) fn encode_query_results(
132132
self,
133-
encoder: &mut on_disk_cache::CacheEncoder<'a, 'tcx, opaque::FileEncoder>,
133+
encoder: &mut on_disk_cache::CacheEncoder<'_, 'tcx, opaque::FileEncoder>,
134134
query_result_index: &mut on_disk_cache::EncodedDepNodeIndex,
135135
) -> opaque::FileEncodeResult {
136136
macro_rules! encode_queries {
@@ -511,7 +511,7 @@ macro_rules! define_queries_struct {
511511
}
512512
}
513513

514-
impl QueryEngine<'tcx> for Queries<'tcx> {
514+
impl<'tcx> QueryEngine<'tcx> for Queries<'tcx> {
515515
fn as_any(&'tcx self) -> &'tcx dyn std::any::Any {
516516
let this = unsafe { std::mem::transmute::<&Queries<'_>, &Queries<'_>>(self) };
517517
this as _

compiler/rustc_query_impl/src/profiling_support.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ fn alloc_self_profile_query_strings_for_query_cache<'tcx, C>(
295295
/// If we are recording only summary data, the ids will point to
296296
/// just the query names. If we are recording query keys too, we
297297
/// allocate the corresponding strings here.
298-
pub fn alloc_self_profile_query_strings(tcx: TyCtxt<'tcx>) {
298+
pub fn alloc_self_profile_query_strings(tcx: TyCtxt<'_>) {
299299
if !tcx.prof.enabled() {
300300
return;
301301
}

0 commit comments

Comments
 (0)