about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/transmute-fail.js
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2025-01-02 11:58:15 -0700
committerMichael Howell <michael@notriddle.com>2025-01-02 12:03:24 -0700
commitc7cb8224e2020d30df6bceb8ea2e16e7a2594585 (patch)
treedfeb2704cf3ee65983388a703fd7a8c1560f2b51 /tests/rustdoc-js-std/transmute-fail.js
parent6ca66598ad63aa73d253f2390e3dbec6ba19ab24 (diff)
downloadrust-c7cb8224e2020d30df6bceb8ea2e16e7a2594585.tar.gz
rust-c7cb8224e2020d30df6bceb8ea2e16e7a2594585.zip
rustdoc: treat `allowed_through_unstable_modules` as deprecation
This ensures `std::intrinsics::transmute` is deemphasized
in the search engine and other UI, by cleaning it into a deprecation
without propagating it through reexports when the parent module
is stable.
Diffstat (limited to 'tests/rustdoc-js-std/transmute-fail.js')
-rw-r--r--tests/rustdoc-js-std/transmute-fail.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/rustdoc-js-std/transmute-fail.js b/tests/rustdoc-js-std/transmute-fail.js
index c4dddf3cf3c..ddfb2761948 100644
--- a/tests/rustdoc-js-std/transmute-fail.js
+++ b/tests/rustdoc-js-std/transmute-fail.js
@@ -1,4 +1,5 @@
 // should-fail
+const FILTER_CRATE = "std";
 const EXPECTED = [
     {
         // Keep this test case identical to `transmute`, except the
@@ -7,7 +8,7 @@ const EXPECTED = [
         'others': [
             { 'path': 'std::intrinsics::simd', 'name': 'simd_as' },
             { 'path': 'std::intrinsics::simd', 'name': 'simd_cast' },
-            { 'path': 'std::intrinsics', 'name': 'transmute' },
+            { 'path': 'std::mem', 'name': 'transmute' },
         ],
     },
 ];