Skip to content

Commit 8e3ab9a

Browse files
committed
Use Self instead of Foo placeholder
1 parent 60c9c0b commit 8e3ab9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_builtin_macros/src/autodiff.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ mod llvm_enzyme {
580580

581581
let segments = if is_impl {
582582
thin_vec![
583-
PathSegment { ident: Ident::from_str("Foo"), id: ast::DUMMY_NODE_ID, args: None },
583+
PathSegment { ident: Ident::from_str("Self"), id: ast::DUMMY_NODE_ID, args: None },
584584
segment,
585585
]
586586
} else {
@@ -627,7 +627,7 @@ mod llvm_enzyme {
627627

628628
// This uses primal args which won't be available if we errored before
629629
if !errored {
630-
body.stmts.push(ecx.stmt_semi(black_box_primal_call.clone()));
630+
body.stmts.push(ecx.stmt_semi(primal_call.clone()));
631631
}
632632

633633
(body, primal_call, black_box_primal_call, blackbox_call_expr)

0 commit comments

Comments
 (0)