Repository navigation
c_str_alloc_error test: mention why this is mostly Miri-only - #163694
Conversation
|
r? @clarfonthey rustbot has assigned @clarfonthey. Use Why was this reviewer chosen?The reviewer was selected based on:
|
826f81f to
8bf8b60
Compare
|
It is expected |
|
We have this rust/src/bootstrap/src/core/builder/cargo.rs Lines 1439 to 1444 in 9d32c00 which I guess is also set for std tests. |
This comment has been minimized.
This comment has been minimized.
|
So, the test is mostly miri-only, but… I guess it is run outside miri? Probably worth adding a comment to the top of the file too. |
|
Yeah I thought it was better to also run what we can outside Miri.
There is already a comment at the top, anything specific I should add?
|
|
Mostly just think that this comment might be worth mentioning near the top: that the main benefit of this test is for miri since the global allocator isn't applied under normal testing conditions. |
|
That's what it says, isn't it? |
8bf8b60 to
4cc87c1
Compare
|
So I guess I was wrong when I said that this wasn't explained in the test. I just missed it. Up to you if you think also adding a comment at the attribute is worth it. |
|
I guess I missed it too. I'll take over another look later and decide then. |
|
Yeah, looking at it again, I think this is fine. @bors r+ rollup |
…uwer Rollup of 6 pull requests Successful merges: - #162974 (FCW for `#[panic_handler]` on `unsafe fn`.) - #163627 (Add documentation for the `no_main` and `repr` attributes) - #163671 (Add `--frontend-threads` option to `./x perf`) - #163694 (c_str_alloc_error test: mention why this is mostly Miri-only) - #163711 (Stabilize `CStr::display`) - #163723 ([tiny] Remove useless `.into()` calls)
Rollup merge of #163694 - RalfJung:c_str_alloc_error, r=clarfonthey c_str_alloc_error test: mention why this is mostly Miri-only This was explained at the top of the file but I missed it there. Seems worth repeating at the attribute? Or am I just too blind? Cc @bjorn3 -- is it expected that `#[global_allocator]` does not work in alloctests?
This was explained at the top of the file but I missed it there. Seems worth repeating at the attribute? Or am I just too blind?
Cc @bjorn3 -- is it expected that
#[global_allocator]does not work in alloctests?