forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#58710 - EdorianDark:master, r=sfackler
Add clamp for ranges. Implements rust-lang#44095 Does not build, but I can not figure out why. Either I import ops and get the error: `` error: unused import: `core::ops::RangeInclusive` --> src/libstd/f64.rs:16:5 | 16 | use core::ops::RangeInclusive; | ^^^^^^^^^^^^^^^^^^^^^^^^^ `` or I do not import and get another error `` error[E0412]: cannot find type `RangeInclusive` in this scope=======> ] 35/36: std --> src/libstd/f64.rs:928:32 | 928 | pub fn clamp(self, range : RangeInclusive<Self>) -> Self | ^^^^^^^^^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 12 | use core::ops::RangeInclusive; | `` If it would build, could it get merged? Can someone figure out, why it doesn't build?
- Loading branch information
Showing
4 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters