about summary refs log tree commit diff
path: root/src/librustdoc/html/static/js/src-script.js
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2025-03-11 13:27:15 -0700
committerJosh Stone <jistone@redhat.com>2025-03-11 13:27:15 -0700
commit53f488aa4b5be28c3cd350cde133edc0efe177ff (patch)
tree013ddfd59db788421752448f90a820f790ed61ad /src/librustdoc/html/static/js/src-script.js
parent9fb94b32df38073bf63d009df77ed10cb1c989d0 (diff)
downloadrust-53f488aa4b5be28c3cd350cde133edc0efe177ff.tar.gz
rust-53f488aa4b5be28c3cd350cde133edc0efe177ff.zip
Simulate OOM for the `try_oom_error` test
We can create the expected error manually, rather than trying to produce
a real one, so the error conversion test can run on all targets. Before,
it was only running on 64-bit and not miri.

In Fedora, we also found that s390x was not getting the expected error,
"successfully" allocating the huge size because it was optimizing the
real `malloc` call away. It's possible to counter that by looking at the
pointer in any way, like a debug print, but it's more robust to just
deal with errors directly, since this test is only about conversion.
Diffstat (limited to 'src/librustdoc/html/static/js/src-script.js')
0 files changed, 0 insertions, 0 deletions