mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
5e02a4eecf
fixes https://github.com/rust-lang/rust-clippy/issues/13734 This PR renames `unchecked_duration_subtraction` lint to `unchecked_time_subtraction` and extends it to include `Duration - Duration` operations. Previously, it was only `Instant - Duration`. `Duration - Duration` is a common operation which may panic in the same way. Note: This is my first clippy PR, feedback is appreciated. changelog: [`unchecked_time_subtraction`]: renamed from `unchecked_duration_subtraction`, extend lint to include subtraction of a `Duration` with a `Duration`