Skip to content

Commit 8d3d60a

Browse files
authored
Rollup merge of #160299 - CenTdemeern1:stabilize_bool_toggle, r=Mark-Simulacrum
Stabilize `bool::toggle` Hooray, my first stabilization! (It's not much, but it's a start!) As mentioned in #159298 (comment) this should probably not be merged before 1.100 to give it time to simmer in nightly-only for a release. @rustbot modify labels: +T-libs-api Closes #159298
2 parents 117977d + 7ebcc66 commit 8d3d60a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎library/core/src/bool.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ impl bool {
140140
/// # Examples
141141
///
142142
/// ```
143-
/// #![feature(bool_toggle)]
144143
/// let mut boolean = false;
145144
///
146145
/// boolean.toggle();
@@ -152,7 +151,8 @@ impl bool {
152151
///
153152
/// [`true`]: ../std/keyword.true.html
154153
/// [`false`]: ../std/keyword.false.html
155-
#[unstable(feature = "bool_toggle", issue = "159298")]
154+
#[stable(feature = "bool_toggle", since = "CURRENT_RUSTC_VERSION")]
155+
#[rustc_const_stable(feature = "bool_toggle", since = "CURRENT_RUSTC_VERSION")]
156156
#[inline]
157157
pub const fn toggle(&mut self) {
158158
*self = !*self;

0 commit comments

Comments
 (0)