Change:
#![feature(raw_ref_op)] #![feature(rustc_attrs)] #![feature(receiver_trait)] <del> #![feature(renamed_spin_loop)] </del> #![feature(min_specialization)] #![feature(slice_ptr_get)] #![feature(slice_ptr_len)]

Discussion:
Now that we have at least one thing in it makes sense to move this to . EDIT ( Before stabilisation: [x] Decide on new function name ( or ) Stabilisation/deprecation: [x] Stabilise feature [] [x] Deprecate the function
currently invokes undefined behavior on x86 and x8664 targets without SSE2.
Are you sure? The sets the cpu to Yonah, which has SSE2.
if that was fixed we should close:
indeed, that's fixed, I've closed that issue.
Note that this isn't a tracking issue for the function itself; it's already stable and any bugs/qualms are reported separately. This is just for the renaming of it.
If this routine is moved to std::hint then the documentation of std::hint should be updated as well. It currently reads: Pause instruction is a hint to the CPU, not to the compiler.
I agree; it should be changed to "compiler and/or CPU".
It's been a few years since this landed, so in an effort to un-kitchen-sink the module I think we should: [ ] Inline the comments on onto and point the docs to instead [ ] Add a trivial busy-loop example that demonstrates how we want you to call it as [ ] Update the docs for the module to note that hints may be compile time or runtime [ ] Stabilize under that name [ ] Deprecate fcp merge This proposes stabilizing the following API: And deprecating the following API:
Team member has proposed to merge this. The next step is review by the rest of the tagged team members: [x] [x] [ ] [x] [x] [x] No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See for info about what commands tagged team members can give me.
:bell: This is now entering its final comment period, as per the . :bell:
Assuming LLVM generates the x86 instruction, it actually has defined behavior on pre-SSE2 processors: it disassembles to a instruction, where the prefix is ignored by processors that don't understand the instruction.

One (not required for stabilisation) thing that may also useful to mention is that can also be used for embedded contexts, although I don't have any useful examples that aren't antequated x86 OS code, so, I'm sure that someone more active with embedded stuff can comment. Essentially, there are times where you can't outright halt the CPU until the next interrupt and you also have to wait for a condition to be met, and because you are the scheduler, obviously you can't yield to the scheduler.
Let's have at least 1 release cycle between stabilizing and deprecating , so proactive people can have 6 weeks to make the change at their own convenience without getting a warning?
The final comment period, with a disposition to merge, as per the , is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. The RFC will be merged soon.
I don't think this should be closed yet seeing as the depreciation has not been done.
Reopening to track deprecation of .
Now that is deprecated I'll go ahead and close this tracking issue.