-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Move spin_loop_hint to core::hint module #56996
Conversation
r? @KodrAus (rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
eb29deb
to
80c67d3
Compare
This comment has been minimized.
This comment has been minimized.
80c67d3
to
2e48674
Compare
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 |
2e48674
to
28f8c72
Compare
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 |
sad trombone @bors retry |
I honestly don't know how to fix the error here. I was under the impression that you could set the stability of an export differently from the original, but that might have changed. |
☔ The latest upstream changes (presumably #56407) made this pull request unmergeable. Please resolve the merge conflicts. |
28f8c72
to
48e732b
Compare
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 |
It's a bit unfortunate. How about we punt on the feature gate, decide in #55002 whether the name should be |
src/libcore/sync/atomic.rs
Outdated
asm!("yield" ::: "memory" : "volatile"); | ||
} | ||
} | ||
pub use hint::spin_loop as spin_loop_hint; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason not to deprecate this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because if the other name is unstable, then you can't actually use the replacement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah of course :) I'd already put myself in the mindset that this would be stable.
Do you think that it would be worthwhile simply doing an FCP here to name the replacement I can update the PR to make the renamed version instantly stable and deprecate the old one, if that's desired. |
Sure, let's do that 👍 @rfcbot doesn't actually like me though so I'll just give the libs team a ping. cc @rust-lang/libs what do you think about deprecating If we don't want the insta-stable |
That's a good idea-- I'll update the PR to do that regardless and we can decide whether to insta-stabilise or not. |
I think it's fine to deprecate the one in |
dfc1289
to
10696c6
Compare
@bors retry |
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 |
10696c6
to
24ca530
Compare
Fixed broken link; should be ready to merge now. Also if someone could add the appropriate tags to the tracking issue I'd appreciate it. |
@bors r+ Thanks @clarcharr! I'll update the tracking issue. |
📌 Commit 24ca530 has been approved by |
Move spin_loop_hint to core::hint module As mentioned in rust-lang#55002. The new name is kept unstable to decide whether the function should have `_hint` in its name.
Move spin_loop_hint to core::hint module As mentioned in rust-lang#55002. The new name is kept unstable to decide whether the function should have `_hint` in its name.
Move spin_loop_hint to core::hint module As mentioned in rust-lang#55002. The new name is kept unstable to decide whether the function should have `_hint` in its name.
Move spin_loop_hint to core::hint module As mentioned in #55002. The new name is kept unstable to decide whether the function should have `_hint` in its name.
☀️ Test successful - checks-travis, status-appveyor |
As mentioned in #55002. The new name is kept unstable to decide whether the function should have
_hint
in its name.