We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3071e0a commit 826471eCopy full SHA for 826471e
compiler/rustc_smir/src/stable_mir/mod.rs
@@ -85,6 +85,22 @@ pub fn all_local_items() -> CrateItems {
85
with(|cx| cx.all_local_items())
86
}
87
88
+pub fn all_trait_decls() -> TraitDecls {
89
+ with(|cx| cx.all_trait_decls())
90
+}
91
+
92
+pub fn trait_decl(trait_def: &TraitDef) -> TraitDecl {
93
+ with(|cx| cx.trait_decl(trait_def))
94
95
96
+pub fn all_trait_impls() -> ImplTraitDecls {
97
+ with(|cx| cx.all_trait_impls())
98
99
100
+pub fn trait_impl(trait_impl: &ImplDef) -> ImplTrait {
101
+ with(|cx| cx.trait_impl(trait_impl))
102
103
104
pub trait Context {
105
fn entry_fn(&mut self) -> Option<CrateItem>;
106
/// Retrieve all items of the local crate that have a MIR associated with them.
0 commit comments