diff --git a/framework/base/src/types/managed/wrapped/managed_vec.rs b/framework/base/src/types/managed/wrapped/managed_vec.rs index 3e25360ea4..5cf35be4b6 100644 --- a/framework/base/src/types/managed/wrapped/managed_vec.rs +++ b/framework/base/src/types/managed/wrapped/managed_vec.rs @@ -356,6 +356,8 @@ where M: ManagedTypeApi, T: ManagedVecItem + Ord + Debug, { + #[deprecated(since = "0.54.5", note = "Please use method `sort_unstable` instead.")] + #[cfg(feature = "alloc")] pub fn sort(&mut self) { self.with_self_as_slice_mut(|slice| { slice.sort(); @@ -363,6 +365,11 @@ where }); } + #[deprecated( + since = "0.54.5", + note = "Please use method `sort_unstable_by` instead." + )] + #[cfg(feature = "alloc")] pub fn sort_by(&mut self, mut compare: F) where F: FnMut(&T, &T) -> Ordering, @@ -373,6 +380,11 @@ where }); } + #[deprecated( + since = "0.54.5", + note = "Please use method `sort_unstable_by_key` instead." + )] + #[cfg(feature = "alloc")] pub fn sort_by_key(&mut self, mut f: F) where F: FnMut(&T) -> K, @@ -384,6 +396,8 @@ where }); } + #[deprecated] + #[cfg(feature = "alloc")] pub fn sort_by_cached_key(&mut self, mut f: F) where F: FnMut(&T) -> K,