Skip to content

Commit

Permalink
warn when calling broken functions that invoke UB
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrgani committed Dec 18, 2024
1 parent b4d0436 commit 86bcdeb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/experimental/coroutines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ pub mod tweens {
}
}

#[deprecated(since = "0.4.14", note = "this invokes undefined behaviour, see issue #723")]
pub fn linear<T, T1, F>(
handle: Handle<T1>,
lens: F,
Expand All @@ -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<T, T1, F>(handle: Handle<T1>, mut lens: F, path: Vec<T>, time: f32)
where
T: Copy + Add<Output = T> + Sub<Output = T> + Mul<f32, Output = T>,
Expand Down

0 comments on commit 86bcdeb

Please sign in to comment.