Call these methods from high level stable_mir::trait_decl(trait_def) and so on
This commit is contained in:
parent
079e3732cc
commit
5ab9616d03
1 changed files with 0 additions and 12 deletions
|
@ -120,21 +120,9 @@ pub struct GenericDef(pub(crate) DefId);
|
||||||
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
|
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
|
||||||
pub struct ConstDef(pub(crate) DefId);
|
pub struct ConstDef(pub(crate) DefId);
|
||||||
|
|
||||||
impl TraitDef {
|
|
||||||
pub fn trait_decl(&self) -> TraitDecl {
|
|
||||||
with(|cx| cx.trait_decl(self))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Clone, PartialEq, Eq, Debug)]
|
#[derive(Clone, PartialEq, Eq, Debug)]
|
||||||
pub struct ImplDef(pub(crate) DefId);
|
pub struct ImplDef(pub(crate) DefId);
|
||||||
|
|
||||||
impl ImplDef {
|
|
||||||
pub fn trait_impl(&self) -> ImplTrait {
|
|
||||||
with(|cx| cx.trait_impl(self))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct GenericArgs(pub Vec<GenericArgKind>);
|
pub struct GenericArgs(pub Vec<GenericArgKind>);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue