We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61097c7 commit d720298Copy full SHA for d720298
src/tools/compiletest/src/runtest.rs
@@ -3530,6 +3530,10 @@ impl<'test> TestCx<'test> {
3530
.env_remove("MFLAGS")
3531
.env_remove("CARGO_MAKEFLAGS");
3532
3533
+ // In test code we want to be very pedantic about values being silently discarded that are
3534
+ // annotated with `#[must_use]`.
3535
+ cmd.arg("-Dunused_must_use");
3536
+
3537
if std::env::var_os("COMPILETEST_FORCE_STAGE0").is_some() {
3538
let mut stage0_sysroot = build_root.clone();
3539
stage0_sysroot.push("stage0-sysroot");
0 commit comments