Skip to content

Commit e56ad51

Browse files
GuillaumeGomezMuscraft
authored andcommitted
Rollup merge of rust-lang#146887 - taiki-e:rc-doc-feature, r=joboet
Remove unused #![feature(get_mut_unchecked)] in Rc and Arc examples rust-lang#93109 removed the use of APIs enabled by this feature in these examples, but the `#![feature]` attributes ware not removed.
2 parents da83545 + ed51588 commit e56ad51

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

library/alloc/src/rc.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,6 @@ impl<T> Rc<T> {
480480
/// # Examples
481481
///
482482
/// ```
483-
/// #![feature(get_mut_unchecked)]
484-
///
485483
/// use std::rc::Rc;
486484
///
487485
/// let mut five = Rc::<u32>::new_uninit();
@@ -572,7 +570,6 @@ impl<T> Rc<T> {
572570
///
573571
/// ```
574572
/// #![feature(allocator_api)]
575-
/// #![feature(get_mut_unchecked)]
576573
///
577574
/// use std::rc::Rc;
578575
///
@@ -1014,8 +1011,6 @@ impl<T> Rc<[T]> {
10141011
/// # Examples
10151012
///
10161013
/// ```
1017-
/// #![feature(get_mut_unchecked)]
1018-
///
10191014
/// use std::rc::Rc;
10201015
///
10211016
/// let mut values = Rc::<[u32]>::new_uninit_slice(3);
@@ -1181,8 +1176,6 @@ impl<T, A: Allocator> Rc<mem::MaybeUninit<T>, A> {
11811176
/// # Examples
11821177
///
11831178
/// ```
1184-
/// #![feature(get_mut_unchecked)]
1185-
///
11861179
/// use std::rc::Rc;
11871180
///
11881181
/// let mut five = Rc::<u32>::new_uninit();
@@ -1218,8 +1211,6 @@ impl<T, A: Allocator> Rc<[mem::MaybeUninit<T>], A> {
12181211
/// # Examples
12191212
///
12201213
/// ```
1221-
/// #![feature(get_mut_unchecked)]
1222-
///
12231214
/// use std::rc::Rc;
12241215
///
12251216
/// let mut values = Rc::<[u32]>::new_uninit_slice(3);

library/alloc/src/sync.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,6 @@ impl<T> Arc<T> {
480480
/// # Examples
481481
///
482482
/// ```
483-
/// #![feature(get_mut_unchecked)]
484-
///
485483
/// use std::sync::Arc;
486484
///
487485
/// let mut five = Arc::<u32>::new_uninit();
@@ -586,7 +584,6 @@ impl<T> Arc<T> {
586584
///
587585
/// ```
588586
/// #![feature(allocator_api)]
589-
/// #![feature(get_mut_unchecked)]
590587
///
591588
/// use std::sync::Arc;
592589
///
@@ -1156,8 +1153,6 @@ impl<T> Arc<[T]> {
11561153
/// # Examples
11571154
///
11581155
/// ```
1159-
/// #![feature(get_mut_unchecked)]
1160-
///
11611156
/// use std::sync::Arc;
11621157
///
11631158
/// let mut values = Arc::<[u32]>::new_uninit_slice(3);
@@ -1326,8 +1321,6 @@ impl<T, A: Allocator> Arc<mem::MaybeUninit<T>, A> {
13261321
/// # Examples
13271322
///
13281323
/// ```
1329-
/// #![feature(get_mut_unchecked)]
1330-
///
13311324
/// use std::sync::Arc;
13321325
///
13331326
/// let mut five = Arc::<u32>::new_uninit();
@@ -1364,8 +1357,6 @@ impl<T, A: Allocator> Arc<[mem::MaybeUninit<T>], A> {
13641357
/// # Examples
13651358
///
13661359
/// ```
1367-
/// #![feature(get_mut_unchecked)]
1368-
///
13691360
/// use std::sync::Arc;
13701361
///
13711362
/// let mut values = Arc::<[u32]>::new_uninit_slice(3);

0 commit comments

Comments
 (0)