We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6403b0 commit e5b1f69Copy full SHA for e5b1f69
library/core/src/sync/atomic.rs
@@ -155,6 +155,7 @@ pub struct AtomicBool {
155
#[stable(feature = "rust1", since = "1.0.0")]
156
impl Default for AtomicBool {
157
/// Creates an `AtomicBool` initialized to `false`.
158
+ #[inline]
159
fn default() -> Self {
160
Self::new(false)
161
}
@@ -1212,6 +1213,7 @@ macro_rules! atomic_int {
1212
1213
1214
#[$stable]
1215
impl Default for $atomic_type {
1216
1217
1218
Self::new(Default::default())
1219
0 commit comments