about summary refs log tree commit diff
path: root/src/librustdoc/html/static/js/src-script.js
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-03-13 10:58:24 +0100
committerGitHub <noreply@github.com>2025-03-13 10:58:24 +0100
commit3bfce83cb2e880a7f2a601326a56a57abaf6bd8c (patch)
tree58d1d86e73a6dab6d4eefb07876db427ce9834af /src/librustdoc/html/static/js/src-script.js
parent1827ffdef07efe8d860f4dba1ec1343db639df53 (diff)
parent53f488aa4b5be28c3cd350cde133edc0efe177ff (diff)
downloadrust-3bfce83cb2e880a7f2a601326a56a57abaf6bd8c.tar.gz
rust-3bfce83cb2e880a7f2a601326a56a57abaf6bd8c.zip
Rollup merge of #138370 - cuviper:try_oom_error, r=jhpratt
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.

Related: #133806
Diffstat (limited to 'src/librustdoc/html/static/js/src-script.js')
0 files changed, 0 insertions, 0 deletions