-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add clamp for ranges. Implements #44095 #58710
Conversation
r? @sfackler (rust_highfive has picked a reviewer for you, use r? to override) |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
The impl you're using the type in is cfg'd, so the import is unused some of the time: https://github.com/rust-lang/rust/pull/58710/files#diff-2ae382eb5bbc830a6b884b8a6ba5d95fL27 |
This implements the original RFC. |
@bors r+ Thanks! |
📌 Commit 6041ec3 has been approved by |
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?
⌛ Testing commit 6041ec3 with merge 64507dd2a15b43fee6a4e567162e3f52b04c5f8a... |
💔 Test failed - checks-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors retry 3 hour timeout |
Add clamp for ranges. Implements rust-lang#44095 Ready for merge
Add clamp for ranges. Implements #44095 Ready for merge
💥 Test timed out |
@bors retry |
Add clamp for ranges. Implements #44095 Ready for merge
☀️ Test successful - checks-travis, status-appveyor |
Ready for merge