Skip to content

Commit 86bcdeb

Browse files
committed
warn when calling broken functions that invoke UB
1 parent b4d0436 commit 86bcdeb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/experimental/coroutines.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ pub mod tweens {
316316
}
317317
}
318318

319+
#[deprecated(since = "0.4.14", note = "this invokes undefined behaviour, see issue #723")]
319320
pub fn linear<T, T1, F>(
320321
handle: Handle<T1>,
321322
lens: F,
@@ -337,6 +338,7 @@ pub mod tweens {
337338
}
338339
}
339340

341+
#[deprecated(since = "0.4.14", note = "this invokes undefined behaviour, see issue #723")]
340342
pub async fn follow_path<T, T1, F>(handle: Handle<T1>, mut lens: F, path: Vec<T>, time: f32)
341343
where
342344
T: Copy + Add<Output = T> + Sub<Output = T> + Mul<f32, Output = T>,

0 commit comments

Comments
 (0)