From 3a66a121424d9bae2ab746781415df6b22b666b0 Mon Sep 17 00:00:00 2001 From: cyrgani Date: Thu, 19 Dec 2024 00:00:53 +0100 Subject: [PATCH] warn when calling broken functions that invoke UB --- src/experimental/coroutines.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/experimental/coroutines.rs b/src/experimental/coroutines.rs index dc254cba..b6445e6f 100644 --- a/src/experimental/coroutines.rs +++ b/src/experimental/coroutines.rs @@ -316,6 +316,7 @@ pub mod tweens { } } + #[deprecated(since = "0.4.14", note = "this invokes undefined behaviour, see issue #723")] pub fn linear( handle: Handle, lens: F, @@ -337,6 +338,7 @@ pub mod tweens { } } + #[deprecated(since = "0.4.14", note = "this invokes undefined behaviour, see issue #723")] pub async fn follow_path(handle: Handle, mut lens: F, path: Vec, time: f32) where T: Copy + Add + Sub + Mul,