Skip to content

Run mir-opt panic=abort tests on CI - #160200

Open
Kobzol wants to merge 11 commits into
rust-lang:mainfrom
Kobzol:mir-opt-panic-abort-on-ci
Open

Run mir-opt panic=abort tests on CI#160200
Kobzol wants to merge 11 commits into
rust-lang:mainfrom
Kobzol:mir-opt-panic-abort-on-ci

Conversation

@Kobzol

@Kobzol Kobzol commented Jul 30, 2026

Copy link
Copy Markdown
Member

@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 30, 2026
@rustbot

rustbot commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

RalfJung is not on the review rotation at the moment.
They may take a while to respond.

@rust-log-analyzer

This comment has been minimized.

@jieyouxu

Copy link
Copy Markdown
Member

cf. #154607

@jieyouxu jieyouxu self-assigned this Jul 30, 2026
Comment thread src/bootstrap/src/core/build_steps/test.rs Outdated
@RalfJung

Copy link
Copy Markdown
Member

I don't know nearly enough about bootstrap to review this.^^
@rustbot reroll

@rustbot rustbot assigned jackh726 and unassigned RalfJung and jieyouxu Jul 30, 2026
// Now also run the tests for the host with panic=abort
let panic_abort_target = builder
.ensure(MirOptPanicAbortSyntheticTarget { compiler: self.compiler, base: self.target });
run(panic_abort_target);

@RalfJung RalfJung Jul 30, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be redundant with --bless I think?
mir-opt --bless already takes very long due to all the sysroots it is building, I'd prefer it not to become even slower.

View changes since the review

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is only redundant if the host target matches the hardcoded targets we have below. I can add an if condition to skip them if they match the host target.

That being said, if the stdlib it built, re-running the tests again should be very fast, they will just be ignored.

@RalfJung RalfJung Jul 30, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is always redundant. There are only 4 actually distinct configurations, so running more than 4 targets on --bless is redundant.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, so the target doesn't really matter, the only thing that matters is bitwidth and the panic strategy? Yeah, in that case I will try to optimize it to always run 2 targets when not blessing, and 4 targets when blessing.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah.

When checking it's good to check the actual self.target to ensure CI covers them all. But in principle only the bitwidth and panic strategy should matter.

@jieyouxu jieyouxu assigned jieyouxu and unassigned jackh726 Jul 30, 2026
@RalfJung

Copy link
Copy Markdown
Member

Cc @saethlin

@RalfJung

Copy link
Copy Markdown
Member

The existing behavior of --bless is kind of annoying since it takes so long to build all these sysroots... and it actually builds 5 sysroots when 4 should be enough. (With this PR as-is it'd become 6 sysroots!) Not sure if there is something we could improve there. Does bootstrap know whether self.target is a 32bit target or 64bit target? If yes, we could bless

  • current target
  • current target with panic=abort
  • target of other bitwidth
  • target of other bitwidth with panic=abort

And only run the first two steps for non-bless mode. That'd be nice.

@rust-log-analyzer

This comment has been minimized.

@jieyouxu jieyouxu added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 4, 2026
@Kobzol

Kobzol commented Aug 7, 2026

Copy link
Copy Markdown
Member Author

And only run the first two steps for non-bless mode. That'd be nice.

But when we do the check, we should test all 4 combinations, right? Otherwise we could get back into the same problem, where some of the combinations are not checked on CI, and thus bless becomes "dirty".

@RalfJung

RalfJung commented Aug 7, 2026 via email

Copy link
Copy Markdown
Member

@Kobzol

Kobzol commented Aug 7, 2026

Copy link
Copy Markdown
Member Author

Ah, I see, makes sense. Thanks.

@Kobzol
Kobzol force-pushed the mir-opt-panic-abort-on-ci branch from a65622e to b63868d Compare August 7, 2026 08:23
@rustbot

This comment has been minimized.

@Kobzol

Kobzol commented Aug 7, 2026

Copy link
Copy Markdown
Member Author

Ok, I refactored the whole thing. Now when checking, we run the current target, and then the current target with the "inverted" panic strategy. And when blessing, we run the current target + four fixed targets, as before (there was a comment saying that running also the current target when blessing is desired).

It is now possible to create synthetic targets with both panic abort/unwind strategies, and the generated miropt test steps are now created as separate step instances, which means that they will be more explicit tin the step trace, and they will also be properly cached.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@JonathanBrouwer

Copy link
Copy Markdown
Member

💔 I suspect this PR failed tests as part of a rollup
@bors r-

After fixing the problem, consider running a try job for the failed job before re-approving.

Link to failure: #162251 (comment)

@rust-bors rust-bors Bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Sep 3, 2026
@rust-bors

rust-bors Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

This pull request was unapproved.

This PR was contained in a rollup (#162251), which was unapproved.

View changes since this unapproval

@Kobzol

Kobzol commented Sep 3, 2026

Copy link
Copy Markdown
Member Author

@bors try jobs=test-various

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Sep 3, 2026
Run mir-opt panic=abort tests on CI


try-job: test-various
@rust-bors

rust-bors Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

💔 Test for 02565e3 failed: CI. Failed job:

@rust-log-analyzer

This comment has been minimized.

@Kobzol

Kobzol commented Sep 7, 2026

Copy link
Copy Markdown
Member Author

@bors try jobs=test-various

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Sep 7, 2026
Run mir-opt panic=abort tests on CI


try-job: test-various
@rust-log-analyzer

This comment has been minimized.

@Kobzol
Kobzol force-pushed the mir-opt-panic-abort-on-ci branch from a44dab2 to 373b59f Compare September 7, 2026 06:45
@rustbot

rustbot commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job test-aarch64-gnu-llvm-21-1 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)

##[endgroup]
[TIMING:end] test::Compiletest { test_compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu, mode: coverage-run, suite: "coverage", path: "tests/coverage", compare_mode: None } -- 0.086
[TIMING:end] test::Coverage { compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu, mode: coverage-run } -- 0.000
[TIMING:start] synthetic_targets::SyntheticTargetWithPanicStrategy { compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, base: aarch64-unknown-linux-gnu, strategy: Abort }
[TIMING:end] synthetic_targets::SyntheticTargetWithPanicStrategy { compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, base: aarch64-unknown-linux-gnu, strategy: Abort } -- 0.000
[TIMING:start] test::MirOpt { compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu }
[TIMING:start] test::Compiletest { test_compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu, mode: mir-opt, suite: "mir-opt", path: "tests/mir-opt", compare_mode: None }
[TIMING:start] compile::Std { target: aarch64-unknown-linux-gnu, build_compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, crates: [], force_recompile: false, extra_rust_args: [], is_for_mir_opt_tests: true }
[TIMING:start] compile::Std { target: aarch64-unknown-linux-gnu, build_compiler: Compiler { stage: 1, host: aarch64-unknown-linux-gnu, forced_compiler: false }, crates: [], force_recompile: false, extra_rust_args: [], is_for_mir_opt_tests: true }
##[group]Building stage1 library artifacts (stage1 -> stage1, aarch64-unknown-linux-gnu)
---

##[endgroup]
[TIMING:end] test::Compiletest { test_compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu, mode: mir-opt, suite: "mir-opt", path: "tests/mir-opt", compare_mode: None } -- 8.196
[TIMING:end] test::MirOpt { compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu } -- 0.000
[TIMING:start] test::MirOpt { compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json) }
[TIMING:start] test::Compiletest { test_compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json), mode: mir-opt, suite: "mir-opt", path: "tests/mir-opt", compare_mode: None }
[TIMING:start] compile::Std { target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json), build_compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, crates: [], force_recompile: false, extra_rust_args: [], is_for_mir_opt_tests: true }
[TIMING:start] compile::StartupObjects { compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json) }
[TIMING:end] compile::StartupObjects { compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json) } -- 0.000
[TIMING:start] compile::Std { target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json), build_compiler: Compiler { stage: 1, host: aarch64-unknown-linux-gnu, forced_compiler: false }, crates: [], force_recompile: false, extra_rust_args: [], is_for_mir_opt_tests: true }
[TIMING:start] compile::StartupObjects { compiler: Compiler { stage: 1, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json) }
[TIMING:end] compile::StartupObjects { compiler: Compiler { stage: 1, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json) } -- 0.000
##[group]Building stage1 library artifacts (stage1:aarch64-unknown-linux-gnu -> stage1:aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json))
[RUSTC-TIMING] build_script_build test:false 0.229
   Compiling compiler_builtins v0.1.160 (/checkout/library/compiler-builtins/compiler-builtins)
    Checking core v0.0.0 (/checkout/library/core)
[RUSTC-TIMING] build_script_build test:false 0.220
[RUSTC-TIMING] build_script_build test:false 0.130
---
[RUSTC-TIMING] test test:false 1.597
    Checking sysroot v0.0.0 (/checkout/library/sysroot)
[RUSTC-TIMING] sysroot test:false 0.026
    Finished `dist` profile [optimized] target(s) in 58.04s
[TIMING:start] compile::StdLink { compiler: Compiler { stage: 1, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target_compiler: Compiler { stage: 1, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json), crates: [], force_recompile: false }
[TIMING:start] builder::Libdir { compiler: Compiler { stage: 1, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json) }
[TIMING:end] builder::Libdir { compiler: Compiler { stage: 1, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json) } -- 0.000
[TIMING:end] compile::StdLink { compiler: Compiler { stage: 1, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target_compiler: Compiler { stage: 1, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json), crates: [], force_recompile: false } -- 0.000
##[endgroup]
[TIMING:end] compile::Std { target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json), build_compiler: Compiler { stage: 1, host: aarch64-unknown-linux-gnu, forced_compiler: false }, crates: [], force_recompile: false, extra_rust_args: [], is_for_mir_opt_tests: true } -- 58.051
Uplifting library (stage1:aarch64-unknown-linux-gnu -> stage2:aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json))
[TIMING:start] compile::StdLink { compiler: Compiler { stage: 1, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target_compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json), crates: [], force_recompile: false }
[TIMING:start] builder::Libdir { compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json) }
[TIMING:end] builder::Libdir { compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json) } -- 0.000
[TIMING:end] compile::StdLink { compiler: Compiler { stage: 1, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target_compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json), crates: [], force_recompile: false } -- 0.000
[TIMING:end] compile::Std { target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json), build_compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, crates: [], force_recompile: false, extra_rust_args: [], is_for_mir_opt_tests: true } -- 0.000
[TIMING:start] test::RemoteCopyLibs { build_compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json) }
[TIMING:end] test::RemoteCopyLibs { build_compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json) } -- 0.000
##[group]Testing stage2 with compiletest suite=mir-opt mode=mir-opt (aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json))

running 410 tests
test [mir-opt] tests/mir-opt/alignment_checks.rs ... ok
test [mir-opt] tests/mir-opt/asm_unwind_panic_abort.rs ... ok
test [mir-opt] tests/mir-opt/basic_assignment.rs ... ignored, ignored on targets without unwinding support
---

test result: ok. 377 passed; 0 failed; 33 ignored; 0 measured; 0 filtered out; finished in 9.40s

##[endgroup]
[TIMING:end] test::Compiletest { test_compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json), mode: mir-opt, suite: "mir-opt", path: "tests/mir-opt", compare_mode: None } -- 9.506
[TIMING:end] test::MirOpt { compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/aarch64-unknown-linux-gnu-synthetic-miropt-abort.json) } -- 0.000
[TIMING:start] test::CodegenLlvm { test_compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu }
[TIMING:start] test::Compiletest { test_compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu, mode: codegen, suite: "codegen-llvm", path: "tests/codegen-llvm", compare_mode: None }
##[group]Testing stage2 with compiletest suite=codegen-llvm mode=codegen (aarch64-unknown-linux-gnu)

running 1217 tests
---

error: cannot find macro `assert_eq` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/le.rs:49:5
   |
49 |     assert_eq!(buf[3], 0x100F0E0D);
   |     ^^^^^^^^^

error: cannot find macro `assert_eq` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/le.rs:53:5
   |
53 |     assert_eq!(buf[0], 0x05040302);
   |     ^^^^^^^^^

error: cannot find macro `assert_eq` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/le.rs:54:5
   |
54 |     assert_eq!(buf[2], 0x0D0C0B0A);
   |     ^^^^^^^^^

error: cannot find macro `assert_eq` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/le.rs:58:5
   |
58 |     assert_eq!(buf[0], 0x0807060504030201);
   |     ^^^^^^^^^

error: cannot find macro `assert_eq` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/le.rs:59:5
   |
59 |     assert_eq!(buf[1], 0x100F0E0D0C0B0A09);
   |     ^^^^^^^^^

error: cannot find macro `assert_eq` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/le.rs:63:5
   |
63 |     assert_eq!(buf[0], 0x0F0E0D0C0B0A0908);
   |     ^^^^^^^^^

error: cannot find macro `assert` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/le.rs:36:5
   |
36 |     assert!(src.len() >= 8 * dst.len());
   |     ^^^^^^

error: cannot find macro `assert` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/le.rs:22:5
   |
22 |     assert!(src.len() >= 4 * dst.len());
   |     ^^^^^^

error: cannot find macro `assert` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:341:9
    |
341 |         assert!(index < self.results.as_ref().len());
    |         ^^^^^^

error: cannot find attribute `derive` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:283:3
    |
283 | #[derive(Clone)]
    |   ^^^^^^

error: cannot find macro `assert` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:178:9
    |
178 |         assert!(index < self.results.as_ref().len());
    |         ^^^^^^

error: cannot find attribute `derive` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:118:3
    |
118 | #[derive(Clone)]
    |   ^^^^^^

error[E0405]: cannot find trait `AsRef` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:73:19
   |
73 |     type Results: AsRef<[Self::Item]> + AsMut<[Self::Item]> + Default;
   |                   ^^^^^ not found in this scope

error[E0405]: cannot find trait `AsMut` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:73:41
   |
73 |     type Results: AsRef<[Self::Item]> + AsMut<[Self::Item]> + Default;
   |                                         ^^^^^ not found in this scope

error[E0405]: cannot find trait `Default` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:73:63
   |
73 |     type Results: AsRef<[Self::Item]> + AsMut<[Self::Item]> + Default;
   |                                                               ^^^^^^^ not found in this scope

error[E0425]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:256:52
    |
256 |     fn try_from_rng<S: TryRngCore>(rng: &mut S) -> Result<Self, S::Error> {
    |                                                    ^^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:285:42
    |
285 | pub struct BlockRng64<R: BlockRngCore + ?Sized> {
    |                                          ^^^^^ not found in this scope

error[E0425]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:419:52
    |
419 |     fn try_from_rng<S: TryRngCore>(rng: &mut S) -> Result<Self, S::Error> {
    |                                                    ^^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/impls.rs:23:39
   |
23 | pub fn next_u64_via_u32<R: RngCore + ?Sized>(rng: &mut R) -> u64 {
   |                                       ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/impls.rs:36:42
   |
36 | pub fn fill_bytes_via_next<R: RngCore + ?Sized>(rng: &mut R, dest: &mut [u8]) {
   |                                          ^^^^^ not found in this scope

error[E0405]: cannot find trait `Copy` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/impls.rs:54:30
   |
54 | pub(crate) trait Observable: Copy {
   |                              ^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/impls.rs:55:17
   |
55 |     type Bytes: Sized + AsRef<[u8]>;
   |                 ^^^^^ not found in this scope

error[E0405]: cannot find trait `AsRef` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/impls.rs:55:25
   |
55 |     type Bytes: Sized + AsRef<[u8]>;
   |                         ^^^^^ not found in this scope

error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/impls.rs:91:12
   |
91 |     if let Some(src) = src.next() {
   |            ^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/impls.rs:161:40
    |
161 | pub fn next_u32_via_fill<R: RngCore + ?Sized>(rng: &mut R) -> u32 {
    |                                        ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/impls.rs:168:40
    |
168 | pub fn next_u64_via_fill<R: RngCore + ?Sized>(rng: &mut R) -> u64 {
    |                                        ^^^^^ not found in this scope

error[E0425]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:225:35
    |
225 |     fn try_next_u32(&mut self) -> Result<u32, Self::Error>;
    |                                   ^^^^^^ not found in this scope

error[E0425]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:227:35
    |
227 |     fn try_next_u64(&mut self) -> Result<u64, Self::Error>;
    |                                   ^^^^^^ not found in this scope

error[E0425]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:229:53
    |
---

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:257:20
    |
257 | impl<R: RngCore + ?Sized> TryRngCore for R {
    |                    ^^^^^ not found in this scope

error[E0425]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:261:35
    |
261 |     fn try_next_u32(&mut self) -> Result<u32, Self::Error> {
    |                                   ^^^^^^ not found in this scope

error[E0425]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:266:35
    |
266 |     fn try_next_u64(&mut self) -> Result<u64, Self::Error> {
    |                                   ^^^^^^ not found in this scope

error[E0425]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:271:53
    |
271 |     fn try_fill_bytes(&mut self, dst: &mut [u8]) -> Result<(), Self::Error> {
    |                                                     ^^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:293:22
    |
293 | impl<R: CryptoRng + ?Sized> TryCryptoRng for R {}
    |                      ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:322:43
    |
322 | pub struct UnwrapMut<'r, R: TryRngCore + ?Sized>(pub &'r mut R);
    |                                           ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:324:27
    |
324 | impl<'r, R: TryRngCore + ?Sized> UnwrapMut<'r, R> {
    |                           ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:339:23
    |
339 | impl<R: TryRngCore + ?Sized> RngCore for UnwrapMut<'_, R> {
    |                       ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:356:25
    |
356 | impl<R: TryCryptoRng + ?Sized> CryptoRng for UnwrapMut<'_, R> {}
    |                         ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:371:24
    |
371 | pub trait SeedableRng: Sized {
    |                        ^^^^^ not found in this scope

error[E0405]: cannot find trait `Clone` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:423:16
    |
423 |     type Seed: Clone + Default + AsRef<[u8]> + AsMut<[u8]>;
    |                ^^^^^ not found in this scope

error[E0405]: cannot find trait `Default` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:423:24
    |
423 |     type Seed: Clone + Default + AsRef<[u8]> + AsMut<[u8]>;
    |                        ^^^^^^^ not found in this scope

error[E0405]: cannot find trait `AsRef` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:423:34
    |
423 |     type Seed: Clone + Default + AsRef<[u8]> + AsMut<[u8]>;
    |                                  ^^^^^ not found in this scope

error[E0405]: cannot find trait `AsMut` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:423:48
    |
423 |     type Seed: Clone + Default + AsRef<[u8]> + AsMut<[u8]>;
    |                                                ^^^^^ not found in this scope

error[E0425]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:530:52
    |
530 |     fn try_from_rng<R: TryRngCore>(rng: &mut R) -> Result<Self, R::Error> {
    |                                                    ^^^^^^ not found in this scope

error[E0464]: multiple candidates for `rmeta` dependency `compiler_builtins` found
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:10:1
   |
---

error: requires `range_inclusive_new` lang_item
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:199:33
    |
199 |             let data = &results[index..=index + 1];
    |                                 ^^^^^^^^^^^^^^^^^

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:262:9
    |
---

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:533:9
    |
533 |         Ok(Self::from_seed(seed))
    |         ^^ not found in this scope

Some errors have detailed explanations: E0405, E0425, E0464, E0531.
For more information about an error, try `rustc --explain E0405`.
[RUSTC-TIMING] rand_core test:false 0.086

@rust-bors

rust-bors Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

💔 Test for 0d3b149 failed: CI. Failed job:

@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job test-various failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)

##[endgroup]
[TIMING:end] test::Compiletest { test_compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1, mode: ui, suite: "ui", path: "tests/ui", compare_mode: None } -- 491.898
[TIMING:end] test::Ui { test_compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1 } -- 0.000
[TIMING:start] synthetic_targets::SyntheticTargetWithPanicStrategy { compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, base: wasm32-wasip1, strategy: Unwind }
[TIMING:end] synthetic_targets::SyntheticTargetWithPanicStrategy { compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, base: wasm32-wasip1, strategy: Unwind } -- 0.000
[TIMING:start] test::MirOpt { compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1 }
[TIMING:start] test::Compiletest { test_compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1, mode: mir-opt, suite: "mir-opt", path: "tests/mir-opt", compare_mode: None }
[TIMING:start] compile::Std { target: x86_64-unknown-linux-gnu, build_compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, crates: [], force_recompile: false, extra_rust_args: [], is_for_mir_opt_tests: true }
[TIMING:start] compile::Std { target: x86_64-unknown-linux-gnu, build_compiler: Compiler { stage: 1, host: x86_64-unknown-linux-gnu, forced_compiler: false }, crates: [], force_recompile: false, extra_rust_args: [], is_for_mir_opt_tests: true }
##[group]Building stage1 library artifacts (stage1 -> stage1, x86_64-unknown-linux-gnu)
---

##[endgroup]
[TIMING:end] test::Compiletest { test_compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1, mode: mir-opt, suite: "mir-opt", path: "tests/mir-opt", compare_mode: None } -- 6.045
[TIMING:end] test::MirOpt { compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1 } -- 0.000
[TIMING:start] test::MirOpt { compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json) }
[TIMING:start] test::Compiletest { test_compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json), mode: mir-opt, suite: "mir-opt", path: "tests/mir-opt", compare_mode: None }
[TIMING:start] compile::Std { target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json), build_compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, crates: [], force_recompile: false, extra_rust_args: [], is_for_mir_opt_tests: true }
[TIMING:start] compile::StartupObjects { compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json) }
[TIMING:end] compile::StartupObjects { compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json) } -- 0.000
[TIMING:start] compile::Std { target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json), build_compiler: Compiler { stage: 1, host: x86_64-unknown-linux-gnu, forced_compiler: false }, crates: [], force_recompile: false, extra_rust_args: [], is_for_mir_opt_tests: true }
[TIMING:start] compile::StartupObjects { compiler: Compiler { stage: 1, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json) }
[TIMING:end] compile::StartupObjects { compiler: Compiler { stage: 1, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json) } -- 0.000
##[group]Building stage1 library artifacts (stage1:x86_64-unknown-linux-gnu -> stage1:wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json))
[RUSTC-TIMING] build_script_build test:false 0.184
   Compiling compiler_builtins v0.1.160 (/checkout/library/compiler-builtins/compiler-builtins)
    Checking core v0.0.0 (/checkout/library/core)
[RUSTC-TIMING] build_script_build test:false 0.210
[RUSTC-TIMING] build_script_build test:false 0.100
---
[RUSTC-TIMING] proc_macro test:false 1.304
    Checking sysroot v0.0.0 (/checkout/library/sysroot)
[RUSTC-TIMING] sysroot test:false 0.024
    Finished `dist` profile [optimized] target(s) in 28.92s
[TIMING:start] compile::StdLink { compiler: Compiler { stage: 1, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target_compiler: Compiler { stage: 1, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json), crates: [], force_recompile: false }
[TIMING:start] builder::Libdir { compiler: Compiler { stage: 1, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json) }
[TIMING:end] builder::Libdir { compiler: Compiler { stage: 1, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json) } -- 0.000
[TIMING:end] compile::StdLink { compiler: Compiler { stage: 1, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target_compiler: Compiler { stage: 1, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json), crates: [], force_recompile: false } -- 0.000
##[endgroup]
[TIMING:end] compile::Std { target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json), build_compiler: Compiler { stage: 1, host: x86_64-unknown-linux-gnu, forced_compiler: false }, crates: [], force_recompile: false, extra_rust_args: [], is_for_mir_opt_tests: true } -- 28.930
Uplifting library (stage1:x86_64-unknown-linux-gnu -> stage2:wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json))
[TIMING:start] compile::StdLink { compiler: Compiler { stage: 1, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target_compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json), crates: [], force_recompile: false }
[TIMING:start] builder::Libdir { compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json) }
[TIMING:end] builder::Libdir { compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json) } -- 0.000
[TIMING:end] compile::StdLink { compiler: Compiler { stage: 1, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target_compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json), crates: [], force_recompile: false } -- 0.000
[TIMING:end] compile::Std { target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json), build_compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, crates: [], force_recompile: false, extra_rust_args: [], is_for_mir_opt_tests: true } -- 0.000
[TIMING:start] test::RemoteCopyLibs { build_compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json) }
[TIMING:end] test::RemoteCopyLibs { build_compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json) } -- 0.000
##[group]Testing stage2 with compiletest suite=mir-opt mode=mir-opt (wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json))

running 410 tests
test [mir-opt] tests/mir-opt/alignment_checks.rs ... ignored, only executed when the pointer width is 64bit
test [mir-opt] tests/mir-opt/asm_unwind_panic_abort.rs ... ignored, ignored on targets without inline assembly support
test [mir-opt] tests/mir-opt/array_index_is_temporary.rs ... ok
---

test result: ok. 401 passed; 0 failed; 9 ignored; 0 measured; 0 filtered out; finished in 9.01s

##[endgroup]
[TIMING:end] test::Compiletest { test_compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json), mode: mir-opt, suite: "mir-opt", path: "tests/mir-opt", compare_mode: None } -- 9.117
[TIMING:end] test::MirOpt { compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1-synthetic-miropt-abort(/checkout/obj/build/synthetic-target-specs/wasm32-wasip1-synthetic-miropt-abort.json) } -- 0.000
[TIMING:start] test::CodegenUnits { test_compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1 }
[TIMING:start] test::Compiletest { test_compiler: Compiler { stage: 2, host: x86_64-unknown-linux-gnu, forced_compiler: false }, target: wasm32-wasip1, mode: codegen-units, suite: "codegen-units", path: "tests/codegen-units", compare_mode: None }
##[group]Testing stage2 with compiletest suite=codegen-units mode=codegen-units (wasm32-wasip1)

running 46 tests
---

error: cannot find macro `assert_eq` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/le.rs:49:5
   |
49 |     assert_eq!(buf[3], 0x100F0E0D);
   |     ^^^^^^^^^

error: cannot find macro `assert_eq` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/le.rs:53:5
   |
53 |     assert_eq!(buf[0], 0x05040302);
   |     ^^^^^^^^^

error: cannot find macro `assert_eq` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/le.rs:54:5
   |
54 |     assert_eq!(buf[2], 0x0D0C0B0A);
   |     ^^^^^^^^^

error: cannot find macro `assert_eq` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/le.rs:58:5
   |
58 |     assert_eq!(buf[0], 0x0807060504030201);
   |     ^^^^^^^^^

error: cannot find macro `assert_eq` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/le.rs:59:5
   |
59 |     assert_eq!(buf[1], 0x100F0E0D0C0B0A09);
   |     ^^^^^^^^^

error: cannot find macro `assert_eq` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/le.rs:63:5
   |
63 |     assert_eq!(buf[0], 0x0F0E0D0C0B0A0908);
   |     ^^^^^^^^^

error: cannot find macro `assert` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/le.rs:36:5
   |
36 |     assert!(src.len() >= 8 * dst.len());
   |     ^^^^^^

error: cannot find macro `assert` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/le.rs:22:5
   |
22 |     assert!(src.len() >= 4 * dst.len());
   |     ^^^^^^

error: cannot find macro `assert` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:341:9
    |
341 |         assert!(index < self.results.as_ref().len());
    |         ^^^^^^

error: cannot find attribute `derive` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:283:3
    |
283 | #[derive(Clone)]
    |   ^^^^^^

error: cannot find macro `assert` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:178:9
    |
178 |         assert!(index < self.results.as_ref().len());
    |         ^^^^^^

error: cannot find attribute `derive` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:118:3
    |
118 | #[derive(Clone)]
    |   ^^^^^^

error[E0405]: cannot find trait `AsRef` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:73:19
   |
73 |     type Results: AsRef<[Self::Item]> + AsMut<[Self::Item]> + Default;
   |                   ^^^^^ not found in this scope

error[E0405]: cannot find trait `AsMut` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:73:41
   |
73 |     type Results: AsRef<[Self::Item]> + AsMut<[Self::Item]> + Default;
   |                                         ^^^^^ not found in this scope

error[E0405]: cannot find trait `Default` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:73:63
   |
73 |     type Results: AsRef<[Self::Item]> + AsMut<[Self::Item]> + Default;
   |                                                               ^^^^^^^ not found in this scope

error[E0425]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:256:52
    |
256 |     fn try_from_rng<S: TryRngCore>(rng: &mut S) -> Result<Self, S::Error> {
    |                                                    ^^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:285:42
    |
285 | pub struct BlockRng64<R: BlockRngCore + ?Sized> {
    |                                          ^^^^^ not found in this scope

error[E0425]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:419:52
    |
419 |     fn try_from_rng<S: TryRngCore>(rng: &mut S) -> Result<Self, S::Error> {
    |                                                    ^^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/impls.rs:23:39
   |
23 | pub fn next_u64_via_u32<R: RngCore + ?Sized>(rng: &mut R) -> u64 {
   |                                       ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/impls.rs:36:42
   |
36 | pub fn fill_bytes_via_next<R: RngCore + ?Sized>(rng: &mut R, dest: &mut [u8]) {
   |                                          ^^^^^ not found in this scope

error[E0405]: cannot find trait `Copy` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/impls.rs:54:30
   |
54 | pub(crate) trait Observable: Copy {
   |                              ^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/impls.rs:55:17
   |
55 |     type Bytes: Sized + AsRef<[u8]>;
   |                 ^^^^^ not found in this scope

error[E0405]: cannot find trait `AsRef` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/impls.rs:55:25
   |
55 |     type Bytes: Sized + AsRef<[u8]>;
   |                         ^^^^^ not found in this scope

error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/impls.rs:91:12
   |
91 |     if let Some(src) = src.next() {
   |            ^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/impls.rs:161:40
    |
161 | pub fn next_u32_via_fill<R: RngCore + ?Sized>(rng: &mut R) -> u32 {
    |                                        ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/impls.rs:168:40
    |
168 | pub fn next_u64_via_fill<R: RngCore + ?Sized>(rng: &mut R) -> u64 {
    |                                        ^^^^^ not found in this scope

error[E0425]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:225:35
    |
225 |     fn try_next_u32(&mut self) -> Result<u32, Self::Error>;
    |                                   ^^^^^^ not found in this scope

error[E0425]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:227:35
    |
227 |     fn try_next_u64(&mut self) -> Result<u64, Self::Error>;
    |                                   ^^^^^^ not found in this scope

error[E0425]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:229:53
    |
---

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:257:20
    |
257 | impl<R: RngCore + ?Sized> TryRngCore for R {
    |                    ^^^^^ not found in this scope

error[E0425]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:261:35
    |
261 |     fn try_next_u32(&mut self) -> Result<u32, Self::Error> {
    |                                   ^^^^^^ not found in this scope

error[E0425]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:266:35
    |
266 |     fn try_next_u64(&mut self) -> Result<u64, Self::Error> {
    |                                   ^^^^^^ not found in this scope

error[E0425]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:271:53
    |
271 |     fn try_fill_bytes(&mut self, dst: &mut [u8]) -> Result<(), Self::Error> {
    |                                                     ^^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:293:22
    |
293 | impl<R: CryptoRng + ?Sized> TryCryptoRng for R {}
    |                      ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:322:43
    |
322 | pub struct UnwrapMut<'r, R: TryRngCore + ?Sized>(pub &'r mut R);
    |                                           ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:324:27
    |
324 | impl<'r, R: TryRngCore + ?Sized> UnwrapMut<'r, R> {
    |                           ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:339:23
    |
339 | impl<R: TryRngCore + ?Sized> RngCore for UnwrapMut<'_, R> {
    |                       ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:356:25
    |
356 | impl<R: TryCryptoRng + ?Sized> CryptoRng for UnwrapMut<'_, R> {}
    |                         ^^^^^ not found in this scope

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:371:24
    |
371 | pub trait SeedableRng: Sized {
    |                        ^^^^^ not found in this scope

error[E0405]: cannot find trait `Clone` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:423:16
    |
423 |     type Seed: Clone + Default + AsRef<[u8]> + AsMut<[u8]>;
    |                ^^^^^ not found in this scope

error[E0405]: cannot find trait `Default` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:423:24
    |
423 |     type Seed: Clone + Default + AsRef<[u8]> + AsMut<[u8]>;
    |                        ^^^^^^^ not found in this scope

error[E0405]: cannot find trait `AsRef` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:423:34
    |
423 |     type Seed: Clone + Default + AsRef<[u8]> + AsMut<[u8]>;
    |                                  ^^^^^ not found in this scope

error[E0405]: cannot find trait `AsMut` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:423:48
    |
423 |     type Seed: Clone + Default + AsRef<[u8]> + AsMut<[u8]>;
    |                                                ^^^^^ not found in this scope

error[E0425]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:530:52
    |
530 |     fn try_from_rng<R: TryRngCore>(rng: &mut R) -> Result<Self, R::Error> {
    |                                                    ^^^^^^ not found in this scope

error[E0464]: multiple candidates for `rmeta` dependency `compiler_builtins` found
  --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:10:1
   |
---

error: requires `range_inclusive_new` lang_item
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/block.rs:199:33
    |
199 |             let data = &results[index..=index + 1];
    |                                 ^^^^^^^^^^^^^^^^^

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:262:9
    |
---

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand_core-0.9.5/src/lib.rs:533:9
    |
533 |         Ok(Self::from_seed(seed))
    |         ^^ not found in this scope

Some errors have detailed explanations: E0405, E0425, E0464, E0531.
For more information about an error, try `rustc --explain E0405`.
[RUSTC-TIMING] rand_core test:false 0.053

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

Labels

A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants