From d62cbfe5e0f458dbc4cd2d01d6287af1550565a2 Mon Sep 17 00:00:00 2001 From: Misfit <218383634+JaclynCodes@users.noreply.github.com> Date: Sun, 16 Nov 2025 23:45:16 -0500 Subject: [PATCH 1/2] Update tests/ui/autodiff/no_lto_flag.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- tests/ui/autodiff/no_lto_flag.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ui/autodiff/no_lto_flag.rs b/tests/ui/autodiff/no_lto_flag.rs index 6194b1effc34f..47afebc69f69a 100644 --- a/tests/ui/autodiff/no_lto_flag.rs +++ b/tests/ui/autodiff/no_lto_flag.rs @@ -1,7 +1,7 @@ //@ needs-enzyme //@ no-prefer-dynamic //@ revisions: with_lto no_lto -//@[with_lto] compile-flags: -Zautodiff=Enable -C opt-level=3 -Clto=fat +//@[with_lto] compile-flags: -Zautodiff=Enable -C opt-level=3 -Clto=fat //@[no_lto] compile-flags: -Zautodiff=Enable -C opt-level=3 -Clto=thin #![feature(autodiff)] From 9b34d9941bb5348712dfe7e66073212796f89278 Mon Sep 17 00:00:00 2001 From: Misfit <218383634+JaclynCodes@users.noreply.github.com> Date: Sun, 16 Nov 2025 23:49:53 -0500 Subject: [PATCH 2/2] Update no_lto_flag.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- tests/ui/autodiff/no_lto_flag.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ui/autodiff/no_lto_flag.rs b/tests/ui/autodiff/no_lto_flag.rs index 47afebc69f69a..7b01da3a3b846 100644 --- a/tests/ui/autodiff/no_lto_flag.rs +++ b/tests/ui/autodiff/no_lto_flag.rs @@ -10,7 +10,7 @@ // Autodiff requires users to enable lto=fat (for now). // In the past, autodiff did not run if users forget to enable fat-lto, which caused functions to -// returning zero-derivatives. That's obviously wrong and confusing to users. We now added a check +// return zero-derivatives. That's obviously wrong and confusing to users. We now added a check // which will abort compilation instead. use std::autodiff::autodiff_reverse;