rustc_codegen_cranelift
                                
                                 rustc_codegen_cranelift copied to clipboard
                                
                                    rustc_codegen_cranelift copied to clipboard
                            
                            
                            
                        Running tests using Bevy 0.14.0 fails on Windows
Setup
Cargo.toml
[package]
name = "minimal_doctest_fail"
version = "0.1.0"
authors = ["Jan Hohenheim <[email protected]>"]
edition = "2021"
[dependencies]
bevy = { version = "0.14.0", features = ["dynamic_linking"] }
[profile.dev]
opt-level = 1
[profile.dev.package."*"]
opt-level = 3
lib.rs
/// ```
/// use bevy::prelude::*;
/// 
/// App::new().add_plugins(DefaultPlugins);
/// ```
pub struct Foo;
- Add the output of rustc-clif --print target-libdirto myPATHper https://github.com/rust-lang/rustc_codegen_cranelift/issues/1505
- Run cargo clif test --doc
Result
running 1 test
test src\lib.rs - Foo (line 1) ... FAILED
failures:
---- src\lib.rs - Foo (line 1) stdout ----
Test executable failed (exit code: 0xc000001d).
stderr:
thread 'main' panicked at C:\Users\conta\.cargo\registry\src\index.crates.io-6f17d22bba15001f\bevy_tasks-0.14.0\src\task_pool.rs:186:22:
Failed to spawn thread.: Os { code: 87, kind: InvalidInput, message: "The parameter is incorrect." }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
    src\lib.rs - Foo (line 1)
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.28s
error: doctest failed, to rerun pass `--doc`
Additional Notes
I don't know if the fact I'm using dynamic linking is relevant for this issue.