Skip to content

Commit 68077d5

Browse files
committed
Rename SMIR AdtSubsts to GenericArgs
1 parent caa01ad commit 68077d5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

compiler/rustc_smir/src/rustc_smir/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//! For now, we are developing everything inside `rustc`, thus, we keep this module private.
99
1010
use crate::rustc_internal::{self, opaque};
11-
use crate::stable_mir::ty::{AdtSubsts, FloatTy, GenericArgKind, IntTy, RigidTy, TyKind, UintTy};
11+
use crate::stable_mir::ty::{FloatTy, GenericArgs, GenericArgKind, IntTy, RigidTy, TyKind, UintTy};
1212
use crate::stable_mir::{self, Context};
1313
use rustc_middle::mir;
1414
use rustc_middle::ty::{self, Ty, TyCtxt};
@@ -94,10 +94,10 @@ impl<'tcx> Tables<'tcx> {
9494
ty::FloatTy::F32 => TyKind::RigidTy(RigidTy::Float(FloatTy::F32)),
9595
ty::FloatTy::F64 => TyKind::RigidTy(RigidTy::Float(FloatTy::F64)),
9696
},
97-
ty::Adt(adt_def, substs) => TyKind::RigidTy(RigidTy::Adt(
97+
ty::Adt(adt_def, generic_args) => TyKind::RigidTy(RigidTy::Adt(
9898
rustc_internal::adt_def(adt_def.did()),
99-
AdtSubsts(
100-
substs
99+
GenericArgs(
100+
generic_args
101101
.iter()
102102
.map(|arg| match arg.unpack() {
103103
ty::GenericArgKind::Lifetime(region) => {

compiler/rustc_smir/src/stable_mir/ty.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub enum RigidTy {
2525
Int(IntTy),
2626
Uint(UintTy),
2727
Float(FloatTy),
28-
Adt(AdtDef, AdtSubsts),
28+
Adt(AdtDef, GenericArgs),
2929
Foreign(ForeignDef),
3030
Str,
3131
Array(Ty, Const),
@@ -69,7 +69,7 @@ pub struct ForeignDef(pub(crate) DefId);
6969
pub struct AdtDef(pub(crate) DefId);
7070

7171
#[derive(Clone, Debug)]
72-
pub struct AdtSubsts(pub Vec<GenericArgKind>);
72+
pub struct GenericArgs(pub Vec<GenericArgKind>);
7373

7474
#[derive(Clone, Debug)]
7575
pub enum GenericArgKind {

0 commit comments

Comments
 (0)