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
I don't know if --message-format is supposed to be supported at all or not, but the message is not very nice. Feel free to close this if it doesn't feel important enough.
The text was updated successfully, but these errors were encountered:
kadiwa4
changed the title
--message-format short doesn't work with doctest--message-format short triggers internal cargo-miri panic
Aug 29, 2023
That is strange, but maybe cargo parses and re-serializes the argument.
The issue is that here we only support arguments with the value passed via =, not via separate arguments for flag and value. This should be fairly easy to fix: if the suffix is empty, also drop the next argument.
Though thinking about it, that might just show up as the next bug where we don't respect --mesage-format for doctests. Looks like we should maybe just not mess with --message-format and --json when phase is Rustdoc? Not sure if the --extern patching is still needed, but it probably is.
Running
cargo +nightly miri test --message-format short
results in an internalcargo-miri
panic.Example
lib.rs
:Output
I don't know if
--message-format
is supposed to be supported at all or not, but the message is not very nice. Feel free to close this if it doesn't feel important enough.The text was updated successfully, but these errors were encountered: