Skip to content

Commit a9b8cae

Browse files
committed
Add a missing case
1 parent eac56c3 commit a9b8cae

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

charon/src/translate_predicates.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,15 @@ impl<'tcx, 'ctx, 'ctx1> BodyTransCtx<'tcx, 'ctx, 'ctx1> {
658658

659659
let nested = &impl_source.args;
660660
let trait_ref = match &impl_source.r#impl {
661+
ImplExprAtom::SelfImpl => {
662+
// TODO: there should be a path
663+
let trait_id = TraitInstanceId::SelfId;
664+
TraitRef {
665+
trait_id,
666+
generics: GenericArgs::empty(),
667+
trait_decl_ref,
668+
}
669+
}
661670
ImplExprAtom::Concrete {
662671
id: impl_def_id,
663672
generics,

0 commit comments

Comments
 (0)