-
Notifications
You must be signed in to change notification settings - Fork 13.3k
core: Inherit the atomics module #14169
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
Conversation
//! `&fmt::Arguments`, a `&str`, and a `uint. These three arguments dictate | ||
//! the failure message, the file at which failure was invoked, and the line. | ||
//! It is up to consumers of this core library to define this failure | ||
//! function, it is only required to never return. |
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.
the ,
should be either a ;
or a .
.
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.
Updated, thanks!
Explain why it should not exist, and the plan of attack for removing it.
Due to our excellent macro hygiene, this involves having a global path and a hidden module in libcore itself.
This module is a foundation on which many other algorithms are built. When hardware support is missing, stubs are provided in libcompiler-rt.a, so this should be available on all platforms.
@@ -9,6 +9,27 @@ | |||
// except according to those terms. | |||
|
|||
//! The Rust core library | |||
//! | |||
//! This library is meant to represent the core functionality of rust that is | |||
//! maximally portable to other platforms. To that exent, this library has no |
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.
extent?
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.
Oops, good catches! I'm piggy backing another PR to get these changes in.
…less_late_init` (rust-lang#14169) fixes rust-lang#9895 changelog: [`needless_late_init`]: correct suggestion when assignments have enclosing parentheses
This module is a foundation on which many other algorithms are built. When hardware support is missing, stubs are provided in libcompiler-rt.a, so this should be available on all platforms.