Closed
Description
When debug-assertions=true
is in config.toml, the test tests\ui\associated-consts\issue-93775.rs
fails with a stack overflow. I think it stems from here in rustc_const_eval::const_eval::eval_queries::eval_to_allocation_raw_provider
:
if cfg!(debug_assertions) {
// Make sure we format the instance even if we do not print it.
// This serves as a regression test against an ICE on printing.
// The next two lines concatenated contain some discussion:
// https://rust-lang.zulipchat.com/#narrow/stream/146212-t-compiler.2Fconst-eval/
// subject/anon_const_instance_printing/near/135980032
let instance = with_no_trimmed_paths!(key.value.instance.to_string());
trace!("const eval: {:?} ({})", key, instance);
}
I tested this on x86_64-pc-windows-msvc
, unsure if it happens on other platforms.
Activity
jieyouxu commentedon Nov 25, 2024
cc #132111
beepster4096 commentedon Nov 25, 2024
I added my platform to the issue. It might be relevant because that other issue was also on windows.
ChrisDenton commentedon Nov 26, 2024
What stack size do we use on Windows?
Disable `tests\ui\associated-consts\issue-93775.rs` on windows msvc
tests/ui/associated-consts/issue-93775.rs
on windows msvc #134372Rollup merge of rust-lang#134372 - jieyouxu:disable-flaky-test, r=Nor…
7 remaining items