Skip to content

Commit fb32100

Browse files
committed
Use Self instead of Foo placeholder
1 parent 35f730f commit fb32100

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
@@ -583,7 +583,7 @@ mod llvm_enzyme {
583583

584584
let segments = if is_impl {
585585
thin_vec![
586-
PathSegment { ident: Ident::from_str("Foo"), id: ast::DUMMY_NODE_ID, args: None },
586+
PathSegment { ident: Ident::from_str("Self"), id: ast::DUMMY_NODE_ID, args: None },
587587
segment,
588588
]
589589
} else {
@@ -630,7 +630,7 @@ mod llvm_enzyme {
630630

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

636636
(body, primal_call, black_box_primal_call, blackbox_call_expr)

0 commit comments

Comments
 (0)