Skip to content

Commit 5ab9616

Browse files
committed
Call these methods from high level stable_mir::trait_decl(trait_def) and so on
1 parent 079e373 commit 5ab9616

File tree

1 file changed

+0
-12
lines changed
  • compiler/rustc_smir/src/stable_mir

1 file changed

+0
-12
lines changed

compiler/rustc_smir/src/stable_mir/ty.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -120,21 +120,9 @@ pub struct GenericDef(pub(crate) DefId);
120120
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
121121
pub struct ConstDef(pub(crate) DefId);
122122

123-
impl TraitDef {
124-
pub fn trait_decl(&self) -> TraitDecl {
125-
with(|cx| cx.trait_decl(self))
126-
}
127-
}
128-
129123
#[derive(Clone, PartialEq, Eq, Debug)]
130124
pub struct ImplDef(pub(crate) DefId);
131125

132-
impl ImplDef {
133-
pub fn trait_impl(&self) -> ImplTrait {
134-
with(|cx| cx.trait_impl(self))
135-
}
136-
}
137-
138126
#[derive(Clone, Debug)]
139127
pub struct GenericArgs(pub Vec<GenericArgKind>);
140128

0 commit comments

Comments
 (0)