cc-rs icon indicating copy to clipboard operation
cc-rs copied to clipboard

Tracking issue for changes to target triples

Open madsmtm opened this issue 10 months ago • 9 comments

Since https://github.com/rust-lang/cc-rs/pull/1413, cc-rs parses the rustc target when running outside build scripts. To ensure that this is kept up-to-date with changes to rustc, there's a CI step that runs every so often, and adds a comment here if the latest nightly failed.

Resolving this requires a code change (which is why we don't open a PR to do it automatically). Resolved comments will be hidden.

madsmtm avatar Feb 28 '25 02:02 madsmtm

Failed parsing rustc target on rustc 1.87.0-nightly (249cb8431 2025-03-12).

Test output:

  Compiling cc v1.2.16 (/home/runner/work/cc-rs/cc-rs)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.66s
     Running unittests src/lib.rs (target/debug/deps/cc-ca5935360bf07387)

running 15 tests
test flags::tests::all_rustc_flags ... ok
test flags::tests::precedence ... ok
test flags::tests::codegen_type ... ok
test flags::tests::three_valid_prefixes ... ok
test target::llvm::tests::llvm_for_all_rustc_targets ... ignored, not yet done
test flags::tests::two_valid_prefixes ... ok
test target::llvm::tests::basic_llvm_triple_guessing ... ok
test target::llvm::tests::llvm_version ... ok
test target::llvm::tests::test_old_ios_target ... ok
test target::llvm::tests::uefi ... ok
test target::parser::tests::parse_extra ... ok
test target::parser::tests::tier1 ... ok
test target::parser::tests::unknown_env_determined_as_unknown ... ok
test tests::test_android_clang_compiler_uses_target_arg_internally ... ok
test target::parser::tests::parse_rustc_targets ... FAILED

failures:

---- target::parser::tests::parse_rustc_targets stdout ----
failed comparing wasm32-wali-linux-musl:
  expected: Ok(TargetInfo { full_arch: "wasm32", arch: "wasm32", vendor: "unknown", os: "linux", env: "musl", abi: "" })
    actual: Ok(TargetInfo { full_arch: "wasm32", arch: "wasm32", vendor: "wali", os: "linux", env: "musl", abi: "" })


thread 'target::parser::tests::parse_rustc_targets' panicked at src/target/parser.rs:558:13:
failed comparing targets
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    target::parser::tests::parse_rustc_targets

test result: FAILED. 13 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out; finished in 14.01s

error: test failed, to rerun pass `--lib`

EDIT: Done in https://github.com/rust-lang/cc-rs/pull/1434.

github-actions[bot] avatar Mar 13 '25 14:03 github-actions[bot]

Failed parsing rustc target on rustc 1.88.0-nightly (fedf10752 2025-03-30).

Test output:

 Downloading crates ...
  Downloaded once_cell v1.21.3
  Downloaded bitflags v2.9.0
  Downloaded shlex v1.3.0
  Downloaded fastrand v2.3.0
  Downloaded getrandom v0.3.2
  Downloaded cfg-if v1.0.0
  Downloaded tempfile v3.19.1
  Downloaded rustix v1.0.3
  Downloaded libc v0.2.171
  Downloaded linux-raw-sys v0.9.3
  Downloaded errno v0.3.10
   Compiling libc v0.2.171
   Compiling getrandom v0.3.2
   Compiling rustix v1.0.3
   Compiling bitflags v2.9.0
   Compiling linux-raw-sys v0.9.3
   Compiling cfg-if v1.0.0
   Compiling fastrand v2.3.0
   Compiling once_cell v1.21.3
   Compiling shlex v1.3.0
   Compiling tempfile v3.19.1
   Compiling cc v1.2.17 (/home/runner/work/cc-rs/cc-rs)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 2.76s
     Running unittests src/lib.rs (target/debug/deps/cc-3ae1d9cda3f61f9b)

running 15 tests
test flags::tests::precedence ... ok
test flags::tests::three_valid_prefixes ... ok
test flags::tests::all_rustc_flags ... ok
test flags::tests::codegen_type ... ok
test flags::tests::two_valid_prefixes ... ok
test target::llvm::tests::basic_llvm_triple_guessing ... ok
test target::llvm::tests::llvm_for_all_rustc_targets ... ignored, not yet done
test target::llvm::tests::llvm_version ... ok
test target::llvm::tests::test_old_ios_target ... ok
test target::llvm::tests::uefi ... ok
test target::parser::tests::parse_extra ... ok
test target::parser::tests::tier1 ... ok
test target::parser::tests::unknown_env_determined_as_unknown ... ok
test tests::test_android_clang_compiler_uses_target_arg_internally ... ok
test target::parser::tests::parse_rustc_targets ... FAILED

failures:

---- target::parser::tests::parse_rustc_targets stdout ----
failed comparing mips64-openwrt-linux-musl:
  expected: Ok(TargetInfo { full_arch: "mips64", arch: "mips64", vendor: "openwrt", os: "linux", env: "musl", abi: "abi64" })
    actual: Ok(TargetInfo { full_arch: "mips64", arch: "mips64", vendor: "unknown", os: "linux", env: "musl", abi: "abi64" })


thread 'target::parser::tests::parse_rustc_targets' panicked at src/target/parser.rs:561:13:
failed comparing targets
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    target::parser::tests::parse_rustc_targets

test result: FAILED. 13 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out; finished in 13.80s

error: test failed, to rerun pass `--lib`

github-actions[bot] avatar Mar 31 '25 03:03 github-actions[bot]

Failed parsing rustc target on rustc 1.88.0-nightly (d5b4c2e4f 2025-04-02).

Test output:

 Downloading crates ...
  Downloaded fastrand v2.3.0
  Downloaded tempfile v3.19.1
  Downloaded getrandom v0.3.2
  Downloaded errno v0.3.10
  Downloaded shlex v1.3.0
  Downloaded cfg-if v1.0.0
  Downloaded bitflags v2.9.0
  Downloaded libc v0.2.171
  Downloaded once_cell v1.21.3
  Downloaded linux-raw-sys v0.9.3
  Downloaded rustix v1.0.5
   Compiling libc v0.2.171
   Compiling getrandom v0.3.2
   Compiling rustix v1.0.5
   Compiling cfg-if v1.0.0
   Compiling bitflags v2.9.0
   Compiling linux-raw-sys v0.9.3
   Compiling fastrand v2.3.0
   Compiling once_cell v1.21.3
   Compiling shlex v1.3.0
   Compiling tempfile v3.19.1
   Compiling cc v1.2.17 (/home/runner/work/cc-rs/cc-rs)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 2.65s
     Running unittests src/lib.rs (target/debug/deps/cc-b05804dd69f22a1d)

running 15 tests
test flags::tests::codegen_type ... ok
test flags::tests::three_valid_prefixes ... ok
test flags::tests::precedence ... ok
test flags::tests::all_rustc_flags ... ok
test flags::tests::two_valid_prefixes ... ok
test target::llvm::tests::llvm_for_all_rustc_targets ... ignored, not yet done
test target::llvm::tests::basic_llvm_triple_guessing ... ok
test target::llvm::tests::uefi ... ok
test target::llvm::tests::llvm_version ... ok
test target::llvm::tests::test_old_ios_target ... ok
test target::parser::tests::parse_extra ... ok
test target::parser::tests::tier1 ... ok
test target::parser::tests::unknown_env_determined_as_unknown ... ok
test tests::test_android_clang_compiler_uses_target_arg_internally ... ok
test target::parser::tests::parse_rustc_targets ... FAILED

failures:

---- target::parser::tests::parse_rustc_targets stdout ----
failed comparing mips64-openwrt-linux-musl:
  expected: Ok(TargetInfo { full_arch: "mips64", arch: "mips64", vendor: "openwrt", os: "linux", env: "musl", abi: "abi64" })
    actual: Ok(TargetInfo { full_arch: "mips64", arch: "mips64", vendor: "unknown", os: "linux", env: "musl", abi: "abi64" })


thread 'target::parser::tests::parse_rustc_targets' panicked at src/target/parser.rs:561:13:
failed comparing targets
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    target::parser::tests::parse_rustc_targets

test result: FAILED. 13 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out; finished in 13.76s

error: test failed, to rerun pass `--lib`

github-actions[bot] avatar Apr 03 '25 03:04 github-actions[bot]

Failed parsing rustc target on rustc 1.88.0-nightly (b8c54d635 2025-04-20).

Test output:

 Downloading crates ...
  Downloaded shlex v1.3.0
  Downloaded bitflags v2.9.0
  Downloaded getrandom v0.3.2
  Downloaded fastrand v2.3.0
  Downloaded tempfile v3.19.1
  Downloaded once_cell v1.21.3
  Downloaded cfg-if v1.0.0
  Downloaded errno v0.3.11
  Downloaded rustix v1.0.5
  Downloaded libc v0.2.172
  Downloaded linux-raw-sys v0.9.4
   Compiling libc v0.2.172
   Compiling rustix v1.0.5
   Compiling getrandom v0.3.2
   Compiling linux-raw-sys v0.9.4
   Compiling bitflags v2.9.0
   Compiling cfg-if v1.0.0
   Compiling once_cell v1.21.3
   Compiling fastrand v2.3.0
   Compiling shlex v1.3.0
   Compiling tempfile v3.19.1
   Compiling cc v1.2.19 (/home/runner/work/cc-rs/cc-rs)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 2.75s
     Running unittests src/lib.rs (target/debug/deps/cc-c551016cfe12ae6f)

running 15 tests
test flags::tests::codegen_type ... ok
test flags::tests::three_valid_prefixes ... ok
test flags::tests::all_rustc_flags ... ok
test flags::tests::precedence ... ok
test flags::tests::two_valid_prefixes ... ok
test target::llvm::tests::basic_llvm_triple_guessing ... ok
test target::llvm::tests::llvm_for_all_rustc_targets ... ignored, not yet done
test target::llvm::tests::llvm_version ... ok
test target::llvm::tests::test_old_ios_target ... ok
test target::llvm::tests::uefi ... ok
test target::parser::tests::parse_extra ... ok
test target::parser::tests::unknown_env_determined_as_unknown ... ok
test tests::test_android_clang_compiler_uses_target_arg_internally ... ok
test target::parser::tests::tier1 ... ok
test target::parser::tests::parse_rustc_targets ... FAILED

failures:

---- target::parser::tests::parse_rustc_targets stdout ----
failed comparing x86_64-lynx-lynxos178:
  expected: Ok(TargetInfo { full_arch: "x86_64", arch: "x86_64", vendor: "unknown", os: "lynxos178", env: "", abi: "" })
    actual: Ok(TargetInfo { full_arch: "x86_64", arch: "x86_64", vendor: "lynx", os: "lynxos178", env: "", abi: "" })


thread 'target::parser::tests::parse_rustc_targets' panicked at src/target/parser.rs:559:13:
failed comparing targets
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    target::parser::tests::parse_rustc_targets

test result: FAILED. 13 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out; finished in 13.91s

error: test failed, to rerun pass `--lib`

github-actions[bot] avatar Apr 21 '25 03:04 github-actions[bot]

Failed parsing rustc target on rustc 1.90.0-nightly (667787527 2025-07-02).

Test output:

 Downloading crates ...
  Downloaded tempfile v3.20.0
  Downloaded once_cell v1.21.3
  Downloaded errno v0.3.13
  Downloaded shlex v1.3.0
  Downloaded fastrand v2.3.0
  Downloaded cfg-if v1.0.1
  Downloaded getrandom v0.3.3
  Downloaded bitflags v2.9.1
  Downloaded rustix v1.0.7
  Downloaded libc v0.2.174
  Downloaded linux-raw-sys v0.9.4
   Compiling libc v0.2.174
   Compiling getrandom v0.3.3
   Compiling rustix v1.0.7
   Compiling bitflags v2.9.1
   Compiling cfg-if v1.0.1
   Compiling linux-raw-sys v0.9.4
   Compiling fastrand v2.3.0
   Compiling once_cell v1.21.3
   Compiling shlex v1.3.0
   Compiling tempfile v3.20.0
   Compiling cc v1.2.27 (/home/runner/work/cc-rs/cc-rs)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 2.44s
     Running unittests src/lib.rs (target/debug/deps/cc-9d84fce4bcff6413)

running 15 tests
test flags::tests::precedence ... ok
test flags::tests::all_rustc_flags ... ok
test flags::tests::three_valid_prefixes ... ok
test flags::tests::two_valid_prefixes ... ok
test flags::tests::codegen_type ... ok
test target::llvm::tests::llvm_for_all_rustc_targets ... ignored, not yet done
test target::llvm::tests::basic_llvm_triple_guessing ... ok
test target::llvm::tests::llvm_version ... ok
test target::llvm::tests::test_old_ios_target ... ok
test target::llvm::tests::uefi ... ok
test target::parser::tests::parse_extra ... ok
test target::parser::tests::tier1 ... ok
test target::parser::tests::unknown_env_determined_as_unknown ... ok
test tests::test_android_clang_compiler_uses_target_arg_internally ... ok
test target::parser::tests::parse_rustc_targets ... FAILED

failures:

---- target::parser::tests::parse_rustc_targets stdout ----
failed comparing powerpc64-unknown-freebsd:
  expected: Ok(TargetInfo { full_arch: "powerpc64", arch: "powerpc64", vendor: "unknown", os: "freebsd", env: "", abi: "elfv2" })
    actual: Ok(TargetInfo { full_arch: "powerpc64", arch: "powerpc64", vendor: "unknown", os: "freebsd", env: "", abi: "" })

failed comparing powerpc64-unknown-linux-gnu:
  expected: Ok(TargetInfo { full_arch: "powerpc64", arch: "powerpc64", vendor: "unknown", os: "linux", env: "gnu", abi: "elfv1" })
    actual: Ok(TargetInfo { full_arch: "powerpc64", arch: "powerpc64", vendor: "unknown", os: "linux", env: "gnu", abi: "" })

failed comparing powerpc64-unknown-linux-musl:
  expected: Ok(TargetInfo { full_arch: "powerpc64", arch: "powerpc64", vendor: "unknown", os: "linux", env: "musl", abi: "elfv2" })
    actual: Ok(TargetInfo { full_arch: "powerpc64", arch: "powerpc64", vendor: "unknown", os: "linux", env: "musl", abi: "" })

failed comparing powerpc64-unknown-openbsd:
  expected: Ok(TargetInfo { full_arch: "powerpc64", arch: "powerpc64", vendor: "unknown", os: "openbsd", env: "", abi: "elfv2" })
    actual: Ok(TargetInfo { full_arch: "powerpc64", arch: "powerpc64", vendor: "unknown", os: "openbsd", env: "", abi: "" })

failed comparing powerpc64-wrs-vxworks:
  expected: Ok(TargetInfo { full_arch: "powerpc64", arch: "powerpc64", vendor: "wrs", os: "vxworks", env: "gnu", abi: "elfv1" })
    actual: Ok(TargetInfo { full_arch: "powerpc64", arch: "powerpc64", vendor: "wrs", os: "vxworks", env: "gnu", abi: "" })

failed comparing powerpc64le-unknown-freebsd:
  expected: Ok(TargetInfo { full_arch: "powerpc64le", arch: "powerpc64", vendor: "unknown", os: "freebsd", env: "", abi: "elfv2" })
    actual: Ok(TargetInfo { full_arch: "powerpc64le", arch: "powerpc64", vendor: "unknown", os: "freebsd", env: "", abi: "" })

failed comparing powerpc64le-unknown-linux-gnu:
  expected: Ok(TargetInfo { full_arch: "powerpc64le", arch: "powerpc64", vendor: "unknown", os: "linux", env: "gnu", abi: "elfv2" })
    actual: Ok(TargetInfo { full_arch: "powerpc64le", arch: "powerpc64", vendor: "unknown", os: "linux", env: "gnu", abi: "" })

failed comparing powerpc64le-unknown-linux-musl:
  expected: Ok(TargetInfo { full_arch: "powerpc64le", arch: "powerpc64", vendor: "unknown", os: "linux", env: "musl", abi: "elfv2" })
    actual: Ok(TargetInfo { full_arch: "powerpc64le", arch: "powerpc64", vendor: "unknown", os: "linux", env: "musl", abi: "" })


thread 'target::parser::tests::parse_rustc_targets' panicked at src/target/parser.rs:562:13:
failed comparing targets
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    target::parser::tests::parse_rustc_targets

test result: FAILED. 13 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out; finished in 15.82s

error: test failed, to rerun pass `--lib`

github-actions[bot] avatar Jul 03 '25 03:07 github-actions[bot]

Opened #1490

NobodyXu avatar Jul 03 '25 14:07 NobodyXu

Failed parsing rustc target on rustc 1.91.0-nightly (c8ca44c98 2025-08-10).

Test output:

 Downloading crates ...
  Downloaded once_cell v1.21.3
  Downloaded getrandom v0.3.3
  Downloaded errno v0.3.13
  Downloaded tempfile v3.20.0
  Downloaded shlex v1.3.0
  Downloaded bitflags v2.9.1
  Downloaded fastrand v2.3.0
  Downloaded cfg-if v1.0.1
  Downloaded rustix v1.0.8
  Downloaded libc v0.2.174
  Downloaded linux-raw-sys v0.9.4
   Compiling libc v0.2.174
   Compiling getrandom v0.3.3
   Compiling rustix v1.0.8
   Compiling linux-raw-sys v0.9.4
   Compiling cfg-if v1.0.1
   Compiling bitflags v2.9.1
   Compiling once_cell v1.21.3
   Compiling fastrand v2.3.0
   Compiling shlex v1.3.0
   Compiling tempfile v3.20.0
   Compiling cc v1.2.32 (/home/runner/work/cc-rs/cc-rs)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 2.71s
     Running unittests src/lib.rs (target/debug/deps/cc-aa925e402f39b17f)

running 15 tests
test flags::tests::codegen_type ... ok
test flags::tests::precedence ... ok
test flags::tests::all_rustc_flags ... ok
test flags::tests::three_valid_prefixes ... ok
test target::llvm::tests::llvm_for_all_rustc_targets ... ignored, not yet done
test flags::tests::two_valid_prefixes ... ok
test target::llvm::tests::basic_llvm_triple_guessing ... ok
test target::llvm::tests::llvm_version ... ok
test target::llvm::tests::test_old_ios_target ... ok
test target::llvm::tests::uefi ... ok
test target::parser::tests::parse_extra ... ok
test target::parser::tests::tier1 ... ok
test target::parser::tests::unknown_env_determined_as_unknown ... ok
test tests::test_android_clang_compiler_uses_target_arg_internally ... ok
test target::parser::tests::parse_rustc_targets ... FAILED

failures:

---- target::parser::tests::parse_rustc_targets stdout ----
failed comparing aarch64-apple-ios-macabi:
  expected: Ok(TargetInfo { full_arch: "aarch64", arch: "aarch64", vendor: "apple", os: "ios", env: "macabi", abi: "macabi" })
    actual: Ok(TargetInfo { full_arch: "aarch64", arch: "aarch64", vendor: "apple", os: "ios", env: "", abi: "macabi" })

failed comparing aarch64-apple-ios-sim:
  expected: Ok(TargetInfo { full_arch: "aarch64", arch: "aarch64", vendor: "apple", os: "ios", env: "sim", abi: "sim" })
    actual: Ok(TargetInfo { full_arch: "aarch64", arch: "aarch64", vendor: "apple", os: "ios", env: "", abi: "sim" })

failed comparing aarch64-apple-tvos-sim:
  expected: Ok(TargetInfo { full_arch: "aarch64", arch: "aarch64", vendor: "apple", os: "tvos", env: "sim", abi: "sim" })
    actual: Ok(TargetInfo { full_arch: "aarch64", arch: "aarch64", vendor: "apple", os: "tvos", env: "", abi: "sim" })

failed comparing aarch64-apple-visionos-sim:
  expected: Ok(TargetInfo { full_arch: "aarch64", arch: "aarch64", vendor: "apple", os: "visionos", env: "sim", abi: "sim" })
    actual: Ok(TargetInfo { full_arch: "aarch64", arch: "aarch64", vendor: "apple", os: "visionos", env: "", abi: "sim" })

failed comparing aarch64-apple-watchos-sim:
  expected: Ok(TargetInfo { full_arch: "aarch64", arch: "aarch64", vendor: "apple", os: "watchos", env: "sim", abi: "sim" })
    actual: Ok(TargetInfo { full_arch: "aarch64", arch: "aarch64", vendor: "apple", os: "watchos", env: "", abi: "sim" })

failed comparing armv7a-vex-v5:
  expected: Ok(TargetInfo { full_arch: "armv7a", arch: "arm", vendor: "vex", os: "vexos", env: "v5", abi: "eabihf" })
    actual: Ok(TargetInfo { full_arch: "armv7a", arch: "arm", vendor: "vex", os: "v5", env: "", abi: "" })

failed comparing i386-apple-ios:
  expected: Ok(TargetInfo { full_arch: "i386", arch: "x86", vendor: "apple", os: "ios", env: "sim", abi: "sim" })
    actual: Ok(TargetInfo { full_arch: "i386", arch: "x86", vendor: "apple", os: "ios", env: "", abi: "sim" })

failed comparing x86_64-apple-ios:
  expected: Ok(TargetInfo { full_arch: "x86_64", arch: "x86_64", vendor: "apple", os: "ios", env: "sim", abi: "sim" })
    actual: Ok(TargetInfo { full_arch: "x86_64", arch: "x86_64", vendor: "apple", os: "ios", env: "", abi: "sim" })

failed comparing x86_64-apple-ios-macabi:
  expected: Ok(TargetInfo { full_arch: "x86_64", arch: "x86_64", vendor: "apple", os: "ios", env: "macabi", abi: "macabi" })
    actual: Ok(TargetInfo { full_arch: "x86_64", arch: "x86_64", vendor: "apple", os: "ios", env: "", abi: "macabi" })

failed comparing x86_64-apple-tvos:
  expected: Ok(TargetInfo { full_arch: "x86_64", arch: "x86_64", vendor: "apple", os: "tvos", env: "sim", abi: "sim" })
    actual: Ok(TargetInfo { full_arch: "x86_64", arch: "x86_64", vendor: "apple", os: "tvos", env: "", abi: "sim" })

failed comparing x86_64-apple-watchos-sim:
  expected: Ok(TargetInfo { full_arch: "x86_64", arch: "x86_64", vendor: "apple", os: "watchos", env: "sim", abi: "sim" })
    actual: Ok(TargetInfo { full_arch: "x86_64", arch: "x86_64", vendor: "apple", os: "watchos", env: "", abi: "sim" })


thread 'target::parser::tests::parse_rustc_targets' (2325) panicked at src/target/parser.rs:581:13:
failed comparing targets
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    target::parser::tests::parse_rustc_targets

test result: FAILED. 13 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out; finished in 16.21s

error: test failed, to rerun pass `--lib`

github-actions[bot] avatar Aug 11 '25 03:08 github-actions[bot]

Failed parsing rustc target on rustc 1.91.0-nightly (c8ca44c98 2025-08-10).

Test output:

    Updating crates.io index
 Downloading crates ...
  Downloaded libc v0.2.175
   Compiling libc v0.2.175
   Compiling getrandom v0.3.3
   Compiling tempfile v3.20.0
   Compiling cc v1.2.32 (/home/runner/work/cc-rs/cc-rs)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 1.72s
     Running unittests src/lib.rs (target/debug/deps/cc-d496fbdbe522e558)

running 15 tests
test flags::tests::codegen_type ... ok
test flags::tests::precedence ... ok
test flags::tests::all_rustc_flags ... ok
test flags::tests::three_valid_prefixes ... ok
test flags::tests::two_valid_prefixes ... ok
test target::llvm::tests::llvm_for_all_rustc_targets ... ignored, not yet done
test target::llvm::tests::basic_llvm_triple_guessing ... ok
test target::llvm::tests::llvm_version ... ok
test target::llvm::tests::uefi ... ok
test target::llvm::tests::test_old_ios_target ... ok
test target::parser::tests::parse_extra ... ok
test target::parser::tests::unknown_env_determined_as_unknown ... ok
test target::parser::tests::tier1 ... ok
test tests::test_android_clang_compiler_uses_target_arg_internally ... ok
test target::parser::tests::parse_rustc_targets ... FAILED

failures:

---- target::parser::tests::parse_rustc_targets stdout ----
failed comparing i386-apple-ios:
  expected: Ok(TargetInfo { full_arch: "i386", arch: "x86", vendor: "apple", os: "ios", env: "sim", abi: "sim" })
    actual: Ok(TargetInfo { full_arch: "i386", arch: "x86", vendor: "apple", os: "ios", env: "", abi: "sim" })

failed comparing x86_64-apple-ios:
  expected: Ok(TargetInfo { full_arch: "x86_64", arch: "x86_64", vendor: "apple", os: "ios", env: "sim", abi: "sim" })
    actual: Ok(TargetInfo { full_arch: "x86_64", arch: "x86_64", vendor: "apple", os: "ios", env: "", abi: "sim" })

failed comparing x86_64-apple-tvos:
  expected: Ok(TargetInfo { full_arch: "x86_64", arch: "x86_64", vendor: "apple", os: "tvos", env: "sim", abi: "sim" })
    actual: Ok(TargetInfo { full_arch: "x86_64", arch: "x86_64", vendor: "apple", os: "tvos", env: "", abi: "sim" })


thread 'target::parser::tests::parse_rustc_targets' (2284) panicked at src/target/parser.rs:596:13:
failed comparing targets
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    target::parser::tests::parse_rustc_targets

test result: FAILED. 13 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out; finished in 16.16s

error: test failed, to rerun pass `--lib`

github-actions[bot] avatar Aug 11 '25 09:08 github-actions[bot]

Fixed in #1517

NobodyXu avatar Aug 11 '25 12:08 NobodyXu