diff options
| author | HaeNoe <git@haenoe.party> | 2025-04-20 01:10:50 +0200 |
|---|---|---|
| committer | HaeNoe <git@haenoe.party> | 2025-05-11 17:54:57 +0200 |
| commit | e2b7278942642b550d3fe1fdbf08640157df60ef (patch) | |
| tree | 148d339f1ac2c22ed8b50b6184819c951f0d181a /tests/pretty | |
| parent | 8b3228233e079b8d5f02484c1e9a06183e855a6d (diff) | |
| download | rust-e2b7278942642b550d3fe1fdbf08640157df60ef.tar.gz rust-e2b7278942642b550d3fe1fdbf08640157df60ef.zip | |
feat: add generated parameters to generated function
- update pretty printing tests - only add generic parameters when function is actually generic (no empty turbofish)
Diffstat (limited to 'tests/pretty')
| -rw-r--r-- | tests/pretty/autodiff/autodiff_forward.pp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pretty/autodiff/autodiff_forward.pp b/tests/pretty/autodiff/autodiff_forward.pp index 2fa122a618d..8253603e807 100644 --- a/tests/pretty/autodiff/autodiff_forward.pp +++ b/tests/pretty/autodiff/autodiff_forward.pp @@ -191,8 +191,8 @@ pub fn f10<T: std::ops::Mul<Output = T> + Copy>(x: &T) -> T { *x * *x } pub fn d_square<T: std::ops::Mul<Output = T> + Copy>(x: &T, dx_0: &mut T, dret: T) -> T { unsafe { asm!("NOP", options(pure, nomem)); }; - ::core::hint::black_box(f10(x)); + ::core::hint::black_box(f10::<T>(x)); ::core::hint::black_box((dx_0, dret)); - ::core::hint::black_box(f10(x)) + ::core::hint::black_box(f10::<T>(x)) } fn main() {} |
