Closed
Description
Doc-tests mac
running 12 tests
test format_if_0 ... FAILED
test do_while_1 ... ok
test addrs_of_0 ... ok
test do_while_0 ... ok
test inspect_1 ... ignored
test if_cfg_0 ... ok
test if_cfg_1 ... ok
test match_cfg_0 ... ok
test inspect_0 ... ok
test matches_0 ... ok
test unwrap_or_return_0 ... ok
test test_eq_0 ... ok
failures:
---- format_if_0 stdout ----
error[E0283]: type annotations required: cannot resolve `_: std::borrow::ToOwned`
--> <anon>:11:21
|
11 | let not_formatted = format_if!(false, "Vague error", "Error code {:?}", {
| _____________________^ starting here...
12 | | // Note that the argument is not evaluated.
13 | | panic!("oops");
14 | | });
| |__^ ...ending here
|
= note: required by `std::borrow::Cow::Owned`
= note: this error originates in a macro outside of the current crate
error: aborting due to previous error(s)
thread 'format_if_0' panicked at 'Box<Any>', /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/librustc/session/mod.rs:201
note: Run with `RUST_BACKTRACE=1` for a backtrace.
https://github.com/reem/rust-mac dcc9155e9d23a81e92e325899d4b6bed098bcded
failures:
format_if_0
test result: FAILED. 10 passed; 1 failed; 1 ignored; 0 measured
error: test failed
This is on 1.15. Not 1.14.
cc @reem