about summary refs log tree commit diff
path: root/tests/ui/allocator
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-10-10 22:00:50 +0200
committerGitHub <noreply@github.com>2024-10-10 22:00:50 +0200
commitfa3dff3e2436e9323004c3e960098e4acba964e1 (patch)
tree5e12deb070fcbd4d5ce162b8a67802ce4c294d76 /tests/ui/allocator
parent75ccd9f63b231212963f62f3d35c83c9cdc26f3e (diff)
parent20cebae31203a9781f99081b075abe0dc2504a98 (diff)
downloadrust-fa3dff3e2436e9323004c3e960098e4acba964e1.tar.gz
rust-fa3dff3e2436e9323004c3e960098e4acba964e1.zip
Rollup merge of #131475 - fmease:compiler-mv-obj-safe-dyn-compat-2, r=jieyouxu
Compiler & its UI tests: Rename remaining occurrences of "object safe" to "dyn compatible"

Follow-up to #130826.
Part of #130852.

1. 1st commit: Fix stupid oversights. Should've been part of #130826.
2. 2nd commit: Rename the unstable feature `object_safe_for_dispatch` to `dyn_compatible_for_dispatch`. Might not be worth the churn, you decide.
3. 3rd commit: Apply the renaming to all UI tests (contents and paths).
Diffstat (limited to 'tests/ui/allocator')
-rw-r--r--tests/ui/allocator/dyn-compatible.rs13
-rw-r--r--tests/ui/allocator/object-safe.rs13
2 files changed, 13 insertions, 13 deletions
diff --git a/tests/ui/allocator/dyn-compatible.rs b/tests/ui/allocator/dyn-compatible.rs
new file mode 100644
index 00000000000..9d8235e58d9
--- /dev/null
+++ b/tests/ui/allocator/dyn-compatible.rs
@@ -0,0 +1,13 @@
+//@ run-pass
+
+// Check that `Allocator` is dyn-compatible, this allows for polymorphic allocators
+
+#![feature(allocator_api)]
+
+use std::alloc::{Allocator, System};
+
+fn ensure_dyn_compatible(_: &dyn Allocator) {}
+
+fn main() {
+    ensure_dyn_compatible(&System);
+}
diff --git a/tests/ui/allocator/object-safe.rs b/tests/ui/allocator/object-safe.rs
deleted file mode 100644
index 1c1f4fe0bf6..00000000000
--- a/tests/ui/allocator/object-safe.rs
+++ /dev/null
@@ -1,13 +0,0 @@
-//@ run-pass
-
-// Check that `Allocator` is object safe, this allows for polymorphic allocators
-
-#![feature(allocator_api)]
-
-use std::alloc::{Allocator, System};
-
-fn ensure_object_safe(_: &dyn Allocator) {}
-
-fn main() {
-    ensure_object_safe(&System);
-}