Skip to content

Commit 2808a46

Browse files
committed
Rename non-TyS uses of sty
1 parent acf7b50 commit 2808a46

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/librustc/traits/specialize/specialization_graph.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ impl<'tcx> Children {
249249
self.blanket_impls.iter().chain(nonblanket).cloned()
250250
}
251251

252-
fn filtered(&mut self, sty: SimplifiedType) -> impl Iterator<Item = DefId> + '_ {
253-
let nonblanket = self.nonblanket_impls.entry(sty).or_default().iter();
252+
fn filtered(&mut self, st: SimplifiedType) -> impl Iterator<Item = DefId> + '_ {
253+
let nonblanket = self.nonblanket_impls.entry(st).or_default().iter();
254254
self.blanket_impls.iter().chain(nonblanket).cloned()
255255
}
256256
}

src/librustc_mir/interpret/cast.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,12 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
244244
src: OpTy<'tcx, M::PointerTag>,
245245
dest: PlaceTy<'tcx, M::PointerTag>,
246246
// The pointee types
247-
sty: Ty<'tcx>,
248-
dty: Ty<'tcx>,
247+
source_ty: Ty<'tcx>,
248+
dest_ty: Ty<'tcx>,
249249
) -> InterpResult<'tcx> {
250250
// A<Struct> -> A<Trait> conversion
251251
let (src_pointee_ty, dest_pointee_ty) =
252-
self.tcx.struct_lockstep_tails_erasing_lifetimes(sty, dty, self.param_env);
252+
self.tcx.struct_lockstep_tails_erasing_lifetimes(source_ty, dest_ty, self.param_env);
253253

254254
match (&src_pointee_ty.sty, &dest_pointee_ty.sty) {
255255
(&ty::Array(_, length), &ty::Slice(_)) => {

0 commit comments

Comments
 (0)