about summary refs log tree commit diff
path: root/tests/codegen/autodiff/identical_fnc.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-05-28 17:32:45 +0000
committerbors <bors@rust-lang.org>2025-05-28 17:32:45 +0000
commit6f69710780d579b180ab38da4c1384d630f7bd31 (patch)
treecd6faf47da2cb40738c104cac3c4765c1e1ffa0c /tests/codegen/autodiff/identical_fnc.rs
parent40311c4dcf666e8bddcec4a8059e7d9f12bbd363 (diff)
parentd6b1108cdae286fb680f310bc5929924bdf25965 (diff)
downloadrust-6f69710780d579b180ab38da4c1384d630f7bd31.tar.gz
rust-6f69710780d579b180ab38da4c1384d630f7bd31.zip
Auto merge of #141696 - tgross35:rollup-fhpj180, r=tgross35
Rollup of 7 pull requests

Successful merges:

 - rust-lang/rust#140369 (Add data_ptr method to Mutex and RwLock)
 - rust-lang/rust#140697 (Split `autodiff` into `autodiff_forward` and `autodiff_reverse`)
 - rust-lang/rust#141404 (Improve intrinsic handling in cg_ssa)
 - rust-lang/rust#141411 (rustdoc: linking to a local proc macro no longer warns)
 - rust-lang/rust#141548 (consider glob imports in cfg suggestion)
 - rust-lang/rust#141627 (Drop-build cleanups)
 - rust-lang/rust#141670 (Fix ICE in tokenstream with contracts from parser recovery)

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'tests/codegen/autodiff/identical_fnc.rs')
-rw-r--r--tests/codegen/autodiff/identical_fnc.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/codegen/autodiff/identical_fnc.rs b/tests/codegen/autodiff/identical_fnc.rs
index 1c3277f52b4..1c25b3d09ab 100644
--- a/tests/codegen/autodiff/identical_fnc.rs
+++ b/tests/codegen/autodiff/identical_fnc.rs
@@ -11,14 +11,14 @@
 // identical function calls in the LLVM-IR, while having two different calls in the Rust code.
 #![feature(autodiff)]
 
-use std::autodiff::autodiff;
+use std::autodiff::autodiff_reverse;
 
-#[autodiff(d_square, Reverse, Duplicated, Active)]
+#[autodiff_reverse(d_square, Duplicated, Active)]
 fn square(x: &f64) -> f64 {
     x * x
 }
 
-#[autodiff(d_square2, Reverse, Duplicated, Active)]
+#[autodiff_reverse(d_square2, Duplicated, Active)]
 fn square2(x: &f64) -> f64 {
     x * x
 }