You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: test run failed!
command: x86_64-unknown-linux-gnu/test/run-pass/conditional-debug-macro-off.stage2-x86_64-unknown-linux-gnu
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
rust: task failed at 'explicit failure', /home/huon/rust/src/test/run-pass/conditional-debug-macro-off.rs:16
rust: domain main @0xc6d230 root task failed
------------------------------------------
rust: task failed at 'explicit failure', /home/huon/rust/src/compiletest/runtest.rs:723test[run-pass] run-pass/conditional-debug-macro-off.rs ... FAILED
All of the old debug! statements have been converted to info!, so tests should be able to choose --cfg debug or not themselves, as the info! statements are unconditionally in the output.
Got clarification from huonw about this bug: the test runner is currently deciding, based on the build configure flag --enable-debug, whether to pass --cfg debug or not to the tests; huonw is suggesting that the test runner should not make that decision based on the build configure state, but rather based on meta-data in the test itself.
…debug-to-tests, r=huonw
Remove directive, if present, from CFG_RUSTC_FLAGS.
r? @huonwFix#7898.
(One alternative tack is to build up distinct CFG_TEST_RUSTC_FLAGS
alongside CFG_RUSTC_FLAGS; but currently debug is the only --cfg flag
ever added to CFG_RUSTC_FLAGS; the other contents of CFG_RUSTC_FLAGS
are a mix of -Z flags and a few other switches like O, which seem to
make sense to propogate to the tests.)
Don't show no_effect warning on unit structs implementing fn_once
Fixesrust-lang#7792
changelog: Don't show [`no_effect`] or [`unecessary_operation`] warning for unit struct implementing FnOnce
All of the old
debug!
statements have been converted toinfo!
, so tests should be able to choose--cfg debug
or not themselves, as theinfo!
statements are unconditionally in the output.cc @graydon
The text was updated successfully, but these errors were encountered: