Skip to content

Commit 919f3ad

Browse files
committed
warn when calling broken functions that invoke UB
1 parent b4d0436 commit 919f3ad

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/experimental/coroutines.rs

+8
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,10 @@ pub mod tweens {
316316
}
317317
}
318318

319+
#[deprecated(
320+
since = "0.4.14",
321+
note = "this invokes undefined behaviour, see issue #723"
322+
)]
319323
pub fn linear<T, T1, F>(
320324
handle: Handle<T1>,
321325
lens: F,
@@ -337,6 +341,10 @@ pub mod tweens {
337341
}
338342
}
339343

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

0 commit comments

Comments
 (0)