Skip to content

Commit 774c9ee

Browse files
committed
Add issue number for mapped_lock_guards.
1 parent d7797fb commit 774c9ee

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

library/std/src/sync/mutex.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ unsafe impl<T: ?Sized + Sync> Sync for MutexGuard<'_, T> {}
242242
#[must_not_suspend = "holding a MappedMutexGuard across suspend \
243243
points can cause deadlocks, delays, \
244244
and cause Futures to not implement `Send`"]
245-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
245+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
246246
#[clippy::has_significant_drop]
247247
pub struct MappedMutexGuard<'a, T: ?Sized + 'a> {
248248
// NB: we use a pointer instead of `&'a mut T` to avoid `noalias` violations, because a
@@ -255,9 +255,9 @@ pub struct MappedMutexGuard<'a, T: ?Sized + 'a> {
255255
_variance: PhantomData<&'a mut T>,
256256
}
257257

258-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
258+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
259259
impl<T: ?Sized> !Send for MappedMutexGuard<'_, T> {}
260-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
260+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
261261
unsafe impl<T: ?Sized + Sync> Sync for MappedMutexGuard<'_, T> {}
262262

263263
impl<T> Mutex<T> {
@@ -612,7 +612,7 @@ impl<'a, T: ?Sized> MutexGuard<'a, T> {
612612
/// This is an associated function that needs to be used as
613613
/// `MutexGuard::map(...)`. A method would interfere with methods of the
614614
/// same name on the contents of the `MutexGuard` used through `Deref`.
615-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
615+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
616616
pub fn map<U, F>(orig: Self, f: F) -> MappedMutexGuard<'a, U>
617617
where
618618
F: FnOnce(&mut T) -> &mut U,
@@ -638,7 +638,7 @@ impl<'a, T: ?Sized> MutexGuard<'a, T> {
638638
/// `MutexGuard::try_map(...)`. A method would interfere with methods of the
639639
/// same name on the contents of the `MutexGuard` used through `Deref`.
640640
#[doc(alias = "filter_map")]
641-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
641+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
642642
pub fn try_map<U, F>(orig: Self, f: F) -> Result<MappedMutexGuard<'a, U>, Self>
643643
where
644644
F: FnOnce(&mut T) -> Option<&mut U>,
@@ -657,7 +657,7 @@ impl<'a, T: ?Sized> MutexGuard<'a, T> {
657657
}
658658
}
659659

660-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
660+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
661661
impl<T: ?Sized> Deref for MappedMutexGuard<'_, T> {
662662
type Target = T;
663663

@@ -666,14 +666,14 @@ impl<T: ?Sized> Deref for MappedMutexGuard<'_, T> {
666666
}
667667
}
668668

669-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
669+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
670670
impl<T: ?Sized> DerefMut for MappedMutexGuard<'_, T> {
671671
fn deref_mut(&mut self) -> &mut T {
672672
unsafe { self.data.as_mut() }
673673
}
674674
}
675675

676-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
676+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
677677
impl<T: ?Sized> Drop for MappedMutexGuard<'_, T> {
678678
#[inline]
679679
fn drop(&mut self) {
@@ -684,14 +684,14 @@ impl<T: ?Sized> Drop for MappedMutexGuard<'_, T> {
684684
}
685685
}
686686

687-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
687+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
688688
impl<T: ?Sized + fmt::Debug> fmt::Debug for MappedMutexGuard<'_, T> {
689689
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
690690
fmt::Debug::fmt(&**self, f)
691691
}
692692
}
693693

694-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
694+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
695695
impl<T: ?Sized + fmt::Display> fmt::Display for MappedMutexGuard<'_, T> {
696696
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
697697
(**self).fmt(f)
@@ -707,7 +707,7 @@ impl<'a, T: ?Sized> MappedMutexGuard<'a, T> {
707707
/// This is an associated function that needs to be used as
708708
/// `MutexGuard::map(...)`. A method would interfere with methods of the
709709
/// same name on the contents of the `MutexGuard` used through `Deref`.
710-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
710+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
711711
pub fn map<U, F>(orig: Self, f: F) -> MappedMutexGuard<'a, U>
712712
where
713713
F: FnOnce(&mut T) -> &mut U,
@@ -733,7 +733,7 @@ impl<'a, T: ?Sized> MappedMutexGuard<'a, T> {
733733
/// `MutexGuard::try_map(...)`. A method would interfere with methods of the
734734
/// same name on the contents of the `MutexGuard` used through `Deref`.
735735
#[doc(alias = "filter_map")]
736-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
736+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
737737
pub fn try_map<U, F>(orig: Self, f: F) -> Result<MappedMutexGuard<'a, U>, Self>
738738
where
739739
F: FnOnce(&mut T) -> Option<&mut U>,

library/std/src/sync/rwlock.rs

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ unsafe impl<T: ?Sized + Sync> Sync for RwLockWriteGuard<'_, T> {}
162162
#[must_not_suspend = "holding a MappedRwLockReadGuard across suspend \
163163
points can cause deadlocks, delays, \
164164
and cause Futures to not implement `Send`"]
165-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
165+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
166166
#[clippy::has_significant_drop]
167167
pub struct MappedRwLockReadGuard<'a, T: ?Sized + 'a> {
168168
// NB: we use a pointer instead of `&'a T` to avoid `noalias` violations, because a
@@ -173,10 +173,10 @@ pub struct MappedRwLockReadGuard<'a, T: ?Sized + 'a> {
173173
inner_lock: &'a sys::RwLock,
174174
}
175175

176-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
176+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
177177
impl<T: ?Sized> !Send for MappedRwLockReadGuard<'_, T> {}
178178

179-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
179+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
180180
unsafe impl<T: ?Sized + Sync> Sync for MappedRwLockReadGuard<'_, T> {}
181181

182182
/// RAII structure used to release the exclusive write access of a lock when
@@ -191,7 +191,7 @@ unsafe impl<T: ?Sized + Sync> Sync for MappedRwLockReadGuard<'_, T> {}
191191
#[must_not_suspend = "holding a MappedRwLockWriteGuard across suspend \
192192
points can cause deadlocks, delays, \
193193
and cause Future's to not implement `Send`"]
194-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
194+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
195195
#[clippy::has_significant_drop]
196196
pub struct MappedRwLockWriteGuard<'a, T: ?Sized + 'a> {
197197
// NB: we use a pointer instead of `&'a mut T` to avoid `noalias` violations, because a
@@ -204,10 +204,10 @@ pub struct MappedRwLockWriteGuard<'a, T: ?Sized + 'a> {
204204
_variance: PhantomData<&'a mut T>,
205205
}
206206

207-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
207+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
208208
impl<T: ?Sized> !Send for MappedRwLockWriteGuard<'_, T> {}
209209

210-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
210+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
211211
unsafe impl<T: ?Sized + Sync> Sync for MappedRwLockWriteGuard<'_, T> {}
212212

213213
impl<T> RwLock<T> {
@@ -631,28 +631,28 @@ impl<T: ?Sized + fmt::Display> fmt::Display for RwLockWriteGuard<'_, T> {
631631
}
632632
}
633633

634-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
634+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
635635
impl<T: fmt::Debug> fmt::Debug for MappedRwLockReadGuard<'_, T> {
636636
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
637637
(**self).fmt(f)
638638
}
639639
}
640640

641-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
641+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
642642
impl<T: ?Sized + fmt::Display> fmt::Display for MappedRwLockReadGuard<'_, T> {
643643
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
644644
(**self).fmt(f)
645645
}
646646
}
647647

648-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
648+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
649649
impl<T: fmt::Debug> fmt::Debug for MappedRwLockWriteGuard<'_, T> {
650650
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
651651
(**self).fmt(f)
652652
}
653653
}
654654

655-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
655+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
656656
impl<T: ?Sized + fmt::Display> fmt::Display for MappedRwLockWriteGuard<'_, T> {
657657
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
658658
(**self).fmt(f)
@@ -687,7 +687,7 @@ impl<T: ?Sized> DerefMut for RwLockWriteGuard<'_, T> {
687687
}
688688
}
689689

690-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
690+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
691691
impl<T: ?Sized> Deref for MappedRwLockReadGuard<'_, T> {
692692
type Target = T;
693693

@@ -698,7 +698,7 @@ impl<T: ?Sized> Deref for MappedRwLockReadGuard<'_, T> {
698698
}
699699
}
700700

701-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
701+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
702702
impl<T: ?Sized> Deref for MappedRwLockWriteGuard<'_, T> {
703703
type Target = T;
704704

@@ -709,7 +709,7 @@ impl<T: ?Sized> Deref for MappedRwLockWriteGuard<'_, T> {
709709
}
710710
}
711711

712-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
712+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
713713
impl<T: ?Sized> DerefMut for MappedRwLockWriteGuard<'_, T> {
714714
fn deref_mut(&mut self) -> &mut T {
715715
// SAFETY: the conditions of `RwLockWriteGuard::new` were satisfied when the original guard
@@ -739,7 +739,7 @@ impl<T: ?Sized> Drop for RwLockWriteGuard<'_, T> {
739739
}
740740
}
741741

742-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
742+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
743743
impl<T: ?Sized> Drop for MappedRwLockReadGuard<'_, T> {
744744
fn drop(&mut self) {
745745
// SAFETY: the conditions of `RwLockReadGuard::new` were satisfied when the original guard
@@ -750,7 +750,7 @@ impl<T: ?Sized> Drop for MappedRwLockReadGuard<'_, T> {
750750
}
751751
}
752752

753-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
753+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
754754
impl<T: ?Sized> Drop for MappedRwLockWriteGuard<'_, T> {
755755
fn drop(&mut self) {
756756
self.inner_state.poison.done(&self.poison);
@@ -772,7 +772,7 @@ impl<'a, T: ?Sized> RwLockReadGuard<'a, T> {
772772
/// `RwLockReadGuard::map(...)`. A method would interfere with methods of
773773
/// the same name on the contents of the `RwLockReadGuard` used through
774774
/// `Deref`.
775-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
775+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
776776
pub fn map<U, F>(orig: Self, f: F) -> MappedRwLockReadGuard<'a, U>
777777
where
778778
F: FnOnce(&T) -> &U,
@@ -794,7 +794,7 @@ impl<'a, T: ?Sized> RwLockReadGuard<'a, T> {
794794
/// of the same name on the contents of the `RwLockReadGuard` used through
795795
/// `Deref`.
796796
#[doc(alias = "filter_map")]
797-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
797+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
798798
pub fn try_map<U, F>(orig: Self, f: F) -> Result<MappedRwLockReadGuard<'a, U>, Self>
799799
where
800800
F: FnOnce(&T) -> Option<&U>,
@@ -818,7 +818,7 @@ impl<'a, T: ?Sized> MappedRwLockReadGuard<'a, T> {
818818
/// `MappedRwLockReadGuard::map(...)`. A method would interfere with
819819
/// methods of the same name on the contents of the `MappedRwLockReadGuard`
820820
/// used through `Deref`.
821-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
821+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
822822
pub fn map<U, F>(orig: Self, f: F) -> MappedRwLockReadGuard<'a, U>
823823
where
824824
F: FnOnce(&T) -> &U,
@@ -840,7 +840,7 @@ impl<'a, T: ?Sized> MappedRwLockReadGuard<'a, T> {
840840
/// methods of the same name on the contents of the `MappedRwLockReadGuard`
841841
/// used through `Deref`.
842842
#[doc(alias = "filter_map")]
843-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
843+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
844844
pub fn try_map<U, F>(orig: Self, f: F) -> Result<MappedRwLockReadGuard<'a, U>, Self>
845845
where
846846
F: FnOnce(&T) -> Option<&U>,
@@ -864,7 +864,7 @@ impl<'a, T: ?Sized> RwLockWriteGuard<'a, T> {
864864
/// `RwLockWriteGuard::map(...)`. A method would interfere with methods of
865865
/// the same name on the contents of the `RwLockWriteGuard` used through
866866
/// `Deref`.
867-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
867+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
868868
pub fn map<U, F>(orig: Self, f: F) -> MappedRwLockWriteGuard<'a, U>
869869
where
870870
F: FnOnce(&mut T) -> &mut U,
@@ -891,7 +891,7 @@ impl<'a, T: ?Sized> RwLockWriteGuard<'a, T> {
891891
/// of the same name on the contents of the `RwLockWriteGuard` used through
892892
/// `Deref`.
893893
#[doc(alias = "filter_map")]
894-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
894+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
895895
pub fn try_map<U, F>(orig: Self, f: F) -> Result<MappedRwLockWriteGuard<'a, U>, Self>
896896
where
897897
F: FnOnce(&mut T) -> Option<&mut U>,
@@ -920,7 +920,7 @@ impl<'a, T: ?Sized> MappedRwLockWriteGuard<'a, T> {
920920
/// `MappedRwLockWriteGuard::map(...)`. A method would interfere with
921921
/// methods of the same name on the contents of the `MappedRwLockWriteGuard`
922922
/// used through `Deref`.
923-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
923+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
924924
pub fn map<U, F>(orig: Self, f: F) -> MappedRwLockWriteGuard<'a, U>
925925
where
926926
F: FnOnce(&mut T) -> &mut U,
@@ -947,7 +947,7 @@ impl<'a, T: ?Sized> MappedRwLockWriteGuard<'a, T> {
947947
/// methods of the same name on the contents of the `MappedRwLockWriteGuard`
948948
/// used through `Deref`.
949949
#[doc(alias = "filter_map")]
950-
#[unstable(feature = "mapped_lock_guards", issue = "none")]
950+
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
951951
pub fn try_map<U, F>(orig: Self, f: F) -> Result<MappedRwLockWriteGuard<'a, U>, Self>
952952
where
953953
F: FnOnce(&mut T) -> Option<&mut U>,

0 commit comments

Comments
 (0)