Skip to content

Commit 6f870e0

Browse files
committed
fix(annot_fn): use owner fn's typing env for predicate resolution
1 parent 9c89768 commit 6f870e0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/analyze/annot_fn.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,10 @@ impl<'a, 'tcx> AnnotFnTranslator<'a, 'tcx> {
907907
.next()
908908
.is_some()
909909
{
910-
let typing_env = mir_ty::TypingEnv::fully_monomorphized();
910+
let typing_env = mir_ty::TypingEnv::post_analysis(
911+
self.tcx,
912+
self.type_builder.owner_fn_id(),
913+
);
911914
let generic_args = self.typeck.node_args(func_expr.hir_id);
912915
tracing::debug!(
913916
lhs = ?def_id,

0 commit comments

Comments
 (0)