Skip to content

Commit 1d64c7e

Browse files
committed
Rename AssocItemContainer -> AssocContainer
1 parent 2b82ed4 commit 1d64c7e

File tree

2 files changed

+7
-7
lines changed
  • compiler/rustc_public/src

2 files changed

+7
-7
lines changed

compiler/rustc_public/src/ty.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,7 @@ crate_def! {
16121612
pub struct AssocItem {
16131613
pub def_id: AssocDef,
16141614
pub kind: AssocKind,
1615-
pub container: AssocItemContainer,
1615+
pub container: AssocContainer,
16161616

16171617
/// If this is an item in an impl of a trait then this is the `DefId` of
16181618
/// the associated item on the trait that this implements.
@@ -1636,7 +1636,7 @@ pub enum AssocKind {
16361636
}
16371637

16381638
#[derive(Clone, Debug, Eq, PartialEq, Serialize)]
1639-
pub enum AssocItemContainer {
1639+
pub enum AssocContainer {
16401640
Trait,
16411641
Impl,
16421642
}

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,14 +1076,14 @@ impl<'tcx> Stable<'tcx> for ty::AssocKind {
10761076
}
10771077
}
10781078

1079-
impl<'tcx> Stable<'tcx> for ty::AssocItemContainer {
1080-
type T = crate::ty::AssocItemContainer;
1079+
impl<'tcx> Stable<'tcx> for ty::AssocContainer {
1080+
type T = crate::ty::AssocContainer;
10811081

10821082
fn stable(&self, _: &mut Tables<'_, BridgeTys>, _: &CompilerCtxt<'_, BridgeTys>) -> Self::T {
1083-
use crate::ty::AssocItemContainer;
1083+
use crate::ty::AssocContainer;
10841084
match self {
1085-
ty::AssocItemContainer::Trait => AssocItemContainer::Trait,
1086-
ty::AssocItemContainer::Impl => AssocItemContainer::Impl,
1085+
ty::AssocContainer::Trait => AssocContainer::Trait,
1086+
ty::AssocContainer::Impl => AssocContainer::Impl,
10871087
}
10881088
}
10891089
}

0 commit comments

Comments
 (0)