Skip to content

Commit 3352ec8

Browse files
committed
Auto merge of #151835 - JonathanBrouwer:rollup-ayQY8NW, r=JonathanBrouwer
Rollup of 8 pull requests Successful merges: - rust-lang/rust#147387 (hir_owner_parent optimized to inlined call for non-incremental build) - rust-lang/rust#150271 (Move struct placeholder pt2) - rust-lang/rust#151283 (Suggest ignore returning value inside macro for unused_must_use lint) - rust-lang/rust#151565 (Rename, clarify, and document code for "erasing" query values) - rust-lang/rust#149482 (thread::scope: document how join interacts with TLS destructors) - rust-lang/rust#151827 (Use `Rustc` prefix for `rustc` attrs in `AttributeKind`) - rust-lang/rust#151833 (Treat unions as 'data types' in attr parsing diagnostics) - rust-lang/rust#151834 (Update `askama` version to `0.15.4`)
2 parents ce7701f + 85fcc7c commit 3352ec8

4 files changed

Lines changed: 14 additions & 8 deletions

File tree

rustc_public/src/unstable/convert/internal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ where
433433
}
434434

435435
impl RustcInternal for BoundVariableKind {
436-
type T<'tcx> = rustc_ty::BoundVariableKind;
436+
type T<'tcx> = rustc_ty::BoundVariableKind<'tcx>;
437437

438438
fn internal<'tcx>(
439439
&self,

rustc_public/src/unstable/convert/stable/ty.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ impl<'tcx> Stable<'tcx> for ty::FnSig<'tcx> {
271271
}
272272
}
273273

274-
impl<'tcx> Stable<'tcx> for ty::BoundTyKind {
274+
impl<'tcx> Stable<'tcx> for ty::BoundTyKind<'tcx> {
275275
type T = crate::ty::BoundTyKind;
276276

277277
fn stable<'cx>(
@@ -290,7 +290,7 @@ impl<'tcx> Stable<'tcx> for ty::BoundTyKind {
290290
}
291291
}
292292

293-
impl<'tcx> Stable<'tcx> for ty::BoundRegionKind {
293+
impl<'tcx> Stable<'tcx> for ty::BoundRegionKind<'tcx> {
294294
type T = crate::ty::BoundRegionKind;
295295

296296
fn stable<'cx>(
@@ -307,12 +307,12 @@ impl<'tcx> Stable<'tcx> for ty::BoundRegionKind {
307307
cx.tcx.item_name(*def_id).to_string(),
308308
),
309309
ty::BoundRegionKind::ClosureEnv => BoundRegionKind::BrEnv,
310-
ty::BoundRegionKind::NamedAnon(_) => bug!("only used for pretty printing"),
310+
ty::BoundRegionKind::NamedForPrinting(_) => bug!("only used for pretty printing"),
311311
}
312312
}
313313
}
314314

315-
impl<'tcx> Stable<'tcx> for ty::BoundVariableKind {
315+
impl<'tcx> Stable<'tcx> for ty::BoundVariableKind<'tcx> {
316316
type T = crate::ty::BoundVariableKind;
317317

318318
fn stable<'cx>(
@@ -546,7 +546,7 @@ impl<'tcx> Stable<'tcx> for ty::ParamTy {
546546
}
547547
}
548548

549-
impl<'tcx> Stable<'tcx> for ty::BoundTy {
549+
impl<'tcx> Stable<'tcx> for ty::BoundTy<'tcx> {
550550
type T = crate::ty::BoundTy;
551551
fn stable<'cx>(
552552
&self,

rustc_public/src/unstable/internal_cx/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ impl<'tcx> InternalCx<'tcx> for TyCtxt<'tcx> {
7878
fn mk_bound_variable_kinds_from_iter<I, T>(self, iter: I) -> T::Output
7979
where
8080
I: Iterator<Item = T>,
81-
T: ty::CollectAndApply<ty::BoundVariableKind, &'tcx List<ty::BoundVariableKind>>,
81+
T: ty::CollectAndApply<
82+
ty::BoundVariableKind<'tcx>,
83+
&'tcx List<ty::BoundVariableKind<'tcx>>,
84+
>,
8285
{
8386
TyCtxt::mk_bound_variable_kinds_from_iter(self, iter)
8487
}

rustc_public/src/unstable/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ pub trait InternalCx<'tcx>: Copy + Clone {
4747
fn mk_bound_variable_kinds_from_iter<I, T>(self, iter: I) -> T::Output
4848
where
4949
I: Iterator<Item = T>,
50-
T: ty::CollectAndApply<ty::BoundVariableKind, &'tcx List<ty::BoundVariableKind>>;
50+
T: ty::CollectAndApply<
51+
ty::BoundVariableKind<'tcx>,
52+
&'tcx List<ty::BoundVariableKind<'tcx>>,
53+
>;
5154

5255
fn mk_place_elems(self, v: &[mir::PlaceElem<'tcx>]) -> &'tcx List<mir::PlaceElem<'tcx>>;
5356

0 commit comments

Comments
 (0)