about summary refs log tree commit diff
path: root/library/core/tests
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2024-05-15 23:39:33 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2024-05-15 23:39:33 -0700
commitfacc0bb78ee53895b26a06aee981fa55eb92dd9a (patch)
treeaf07ff665731203c4306a84bddfa9893382c9be7 /library/core/tests
parentee97564e3a9f9ac8c65103abb37c6aa48d95bfa2 (diff)
downloadrust-facc0bb78ee53895b26a06aee981fa55eb92dd9a.tar.gz
rust-facc0bb78ee53895b26a06aee981fa55eb92dd9a.zip
Rename `flatten(_mut)` → `as_flattened(_mut)`
Diffstat (limited to 'library/core/tests')
-rw-r--r--library/core/tests/slice.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/tests/slice.rs b/library/core/tests/slice.rs
index ffe8ffcc7f2..c91ac2fbb43 100644
--- a/library/core/tests/slice.rs
+++ b/library/core/tests/slice.rs
@@ -2609,14 +2609,14 @@ fn test_slice_from_ptr_range() {
 #[should_panic = "slice len overflow"]
 fn test_flatten_size_overflow() {
     let x = &[[(); usize::MAX]; 2][..];
-    let _ = x.flatten();
+    let _ = x.as_flattened();
 }
 
 #[test]
 #[should_panic = "slice len overflow"]
 fn test_flatten_mut_size_overflow() {
     let x = &mut [[(); usize::MAX]; 2][..];
-    let _ = x.flatten_mut();
+    let _ = x.as_flattened_mut();
 }
 
 #[test]