-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Add unstable copy_from_slice #31834
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add unstable copy_from_slice #31834
Conversation
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
I wrote that comment wrong :P Hi @aturon :) |
This method should be available in libcore too, so needs to be added to SliceExt, don't you agree? |
Note, this does not fix the tracking issue -- the issue is open until the feature is stable. |
@bluss alright, I'll take out that thing about "fixes". Also, yes I do think it should go in SliceExt. I'll implement that tonight. |
@alexcrichton will do :) |
Great! Let's go.. @bors r+ 849c4ce |
@bors r- travis found this one
|
Ok that's really weird, probably bug #30209 |
@bluss that's weird, it worked on my end... I specifically added an unstable attribute, and then added a feature, and compiled and it worked. Edit: and... it doesn't work for me if I take out the feature...
|
But then the libcollections code changed to just and UFCS trait method call, which is what the bug indicates |
stage1 seems to have no such unused feature warning, but stage2 does when compiling libcollections. |
When compiling libcollectionstest actually. |
I think you'll just need to add this to the top of libcollections: #![cfg_attr(not(test), feature(...))] |
Yeah that seems to be right. That was a bit confusing. |
Did you mean to have the libcollectionstest tests replace the run-pass/run-fail tests? I.e. remove the other ones? |
@bluss yes. Is that not what our tests should be? I am super confused about our tests :P |
having them in just libcollectionstests seems good. |
cool :) |
Feel free to squash the commits together if you want (to create a cleaner history). |
@bluss will do |
Can we delete the two files in src/tests/ ? They are redundant now. |
r=me without the redundant tests. I'm happy this is finally landing! |
@bluss I thought I had deleted those :/ |
@bluss I feel like kind of a dumb right now :P |
implements rust-lang/rfcs#1419 r? alexcrichton
implements rust-lang/rfcs#1419
r? alexcrichton