Skip to content

Commit

Permalink
Auto merge of #130492 - matthiaskrgr:rollup-9pxkd8i, r=matthiaskrgr
Browse files Browse the repository at this point in the history
Rollup of 2 pull requests

Successful merges:

 - #130481 (Remove uneeded PartialOrd bound in cmp::Ord::clamp)
 - #130482 (Remove redundant test typeid equality by subtyping)

r? `@ghost`
`@rustbot` modify labels: rollup
  • Loading branch information
bors committed Sep 17, 2024
2 parents 28e8f01 + 7e8eb7a commit f7b4c72
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 82 deletions.
1 change: 0 additions & 1 deletion library/core/src/cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,6 @@ pub trait Ord: Eq + PartialOrd<Self> {
fn clamp(self, min: Self, max: Self) -> Self
where
Self: Sized,
Self: PartialOrd,
{
assert!(min <= max);
if self < min {
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit f7b4c72

Please sign in to comment.