We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e69a8a commit 6e4d7bdCopy full SHA for 6e4d7bd
compiler/rustc_smir/src/stable_mir/ty.rs
@@ -105,6 +105,12 @@ pub struct AliasDef(pub(crate) DefId);
105
#[derive(Clone, PartialEq, Eq, Debug)]
106
pub struct TraitDef(pub(crate) DefId);
107
108
+impl TraitDef {
109
+ pub fn trait_decl(&self) -> TraitDecl {
110
+ with(|cx| cx.trait_decl(self))
111
+ }
112
+}
113
+
114
#[derive(Clone, Debug)]
115
pub struct GenericArgs(pub Vec<GenericArgKind>);
116
0 commit comments