Skip to content

Execution of a test case in flatten.rs at a particular compilation optimization level appears to be failed #538

Description

@cicilzx

I find that when using -C opt-level=0 as the compilation optimization level, all of the test cases can pass. However, if we use -C opt-level=1/2/3/s/z, an error would be triggered.

For example, using the command:

RUSTFLAGS="-Z mir-opt-level=0 -C opt-level=1" cargo test

The output is as below:

Running tests/flatten.rs (target/debug/deps/flatten-01ee475df42d1a15)

running 6 tests
error: The argument '<arg>' was provided more than once, but cannot be used multiple times

USAGE:
    test <arg>

For more information try --help
error: test failed, to rerun pass `--test flatten`

Caused by:
  process didn't exit successfully: `/local/home/zixliu/crates/structopt/target/debug/deps/flatten-01ee475df42d1a15` (exit status: 1)
note: test exited abnormally; to see the full output pass --nocapture to the harness.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions