Skip to content

crashes: more tests - #147857

Open
matthiaskrgr wants to merge 1 commit into
rust-lang:mainfrom
matthiaskrgr:crash_tests_oct_18
Open

crashes: more tests#147857
matthiaskrgr wants to merge 1 commit into
rust-lang:mainfrom
matthiaskrgr:crash_tests_oct_18

Conversation

@matthiaskrgr

@matthiaskrgr matthiaskrgr commented Oct 18, 2025

Copy link
Copy Markdown
Member

View all comments

not all of them but at least some of them..

try-job: aarch64-apple
try-job: x86_64-msvc-1
try-job: x86_64-gnu
try-job: dist-i586-gnu-i586-i686-musl
try-job: test-various

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 18, 2025
@matthiaskrgr

Copy link
Copy Markdown
Member Author

@bors try

@rust-bors

This comment has been minimized.

rust-bors Bot added a commit that referenced this pull request Oct 18, 2025
crashes: more tests

try-job: aarch64-apple
try-job: x86_64-msvc-1
try-job: x86_64-gnu
try-job: dist-i586-gnu-i586-i686-musl
try-job: test-various
@rust-log-analyzer

This comment has been minimized.

@rust-bors

rust-bors Bot commented Oct 18, 2025

Copy link
Copy Markdown
Contributor

💔 Test for 8b4da8e failed: CI. Failed jobs:

@matthiaskrgr

Copy link
Copy Markdown
Member Author

@bors try

@rust-bors

This comment has been minimized.

rust-bors Bot added a commit that referenced this pull request Oct 19, 2025
crashes: more tests

try-job: aarch64-apple
try-job: x86_64-msvc-1
try-job: x86_64-gnu
try-job: dist-i586-gnu-i586-i686-musl
try-job: test-various
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-bors

rust-bors Bot commented Oct 19, 2025

Copy link
Copy Markdown
Contributor

💔 Test for 322c270 failed: CI. Failed jobs:

@matthiaskrgr

Copy link
Copy Markdown
Member Author

@bors try

@rust-bors

This comment has been minimized.

rust-bors Bot added a commit that referenced this pull request Oct 19, 2025
crashes: more tests

try-job: aarch64-apple
try-job: x86_64-msvc-1
try-job: x86_64-gnu
try-job: dist-i586-gnu-i586-i686-musl
try-job: test-various
@rust-bors

rust-bors Bot commented Oct 19, 2025

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: bda2c67 (bda2c674305762f474b2d1857eb10a5afd1ed925, parent: c6efb9019b3169fc672248339dbbf13e6a134de3)

@matthiaskrgr

Copy link
Copy Markdown
Member Author

@bors try

@rust-bors

This comment has been minimized.

rust-bors Bot added a commit that referenced this pull request Oct 23, 2025
crashes: more tests

try-job: aarch64-apple
try-job: x86_64-msvc-1
try-job: x86_64-gnu
try-job: dist-i586-gnu-i586-i686-musl
try-job: test-various
@rust-bors

rust-bors Bot commented Oct 23, 2025

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 8887f00 (8887f0073f2ee36b581a4166021d0f193677eb36, parent: 11d2046fe9962720558cb15f72541f7fd170dec9)

@matthiaskrgr
matthiaskrgr marked this pull request as ready for review October 24, 2025 06:05
@rustbot

rustbot commented Oct 24, 2025

Copy link
Copy Markdown
Collaborator

This PR changes a file inside tests/crashes. If a crash was fixed, please move into the corresponding ui subdir and add 'Fixes #' to the PR description to autoclose the issue upon merge.

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

rustbot commented Oct 24, 2025

Copy link
Copy Markdown
Collaborator

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@jieyouxu jieyouxu left a comment

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.

Thanks, there's 2 crashes tests in here that I think we should drop, but the other ones look good. lmw what you think.

View changes since this review

Comment thread tests/crashes/141916.rs
Comment on lines +1 to +4
//@ known-bug: rust-lang/rust#141916
//@ edition: 2024
#![allow(incomplete_features)]
#![feature(ergonomic_clones)]

@jieyouxu jieyouxu Nov 1, 2025

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.

Question: does it make sense to add a crashes test for an incomplete feature? I don't think this would be particularly useful, since the people working said feature is already aware of the ICE.

Comment thread tests/crashes/143498.rs

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.

Suggestion: fmease has an MCVE #143498 (comment), so I rather not add this version with a ton of feature gates...

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.

eh, not in the mood for dealing with aux/flags stuff right now .. :)

@jieyouxu jieyouxu assigned jieyouxu and unassigned Mark-Simulacrum Nov 1, 2025
@jieyouxu

jieyouxu commented Nov 1, 2025

Copy link
Copy Markdown
Member

@rustbot author

@rustbot rustbot 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 Nov 1, 2025
@rustbot

rustbot commented Nov 9, 2025

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different master 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.

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

Copy link
Copy Markdown
Member Author

@bors try

@rust-bors

This comment has been minimized.

rust-bors Bot added a commit that referenced this pull request Nov 9, 2025
crashes: more tests

try-job: aarch64-apple
try-job: x86_64-msvc-1
try-job: x86_64-gnu
try-job: dist-i586-gnu-i586-i686-musl
try-job: test-various
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job x86_64-gnu-gcc failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
test [crashes] tests/crashes/142529.rs ... ok
test [crashes] tests/crashes/142382.rs ... ok
test [crashes] tests/crashes/142559.rs ... ok
test [crashes] tests/crashes/142560.rs ... ok
2025-11-09T21:19:06.322548Z ERROR compiletest::runtest: fatal error, panic: "crashtest no longer crashes/triggers ICE, hooray! Please give it a meaningful name, add a doc-comment to the start of the test explaining why it exists and move it to tests/ui or wherever you see fit. Adding 'Fixes #<issueNr>' to your PR description ensures that the corresponding ticket is auto-closed upon merge. If you want to see verbose output, set `COMPILETEST_VERBOSE_CRASHES=1`."
test [crashes] tests/crashes/142866.rs ... ok
test [crashes] tests/crashes/142773.rs ... FAILED
test [crashes] tests/crashes/142717.rs ... ok
test [crashes] tests/crashes/142913.rs ... ok
test [crashes] tests/crashes/143174.rs ... ok
test [crashes] tests/crashes/143117.rs ... ok
test [crashes] tests/crashes/143094.rs ... ok
test [crashes] tests/crashes/143358.rs ... ok
test [crashes] tests/crashes/143205.rs ... ok
2025-11-09T21:19:06.712376Z ERROR compiletest::runtest: fatal error, panic: "crashtest no longer crashes/triggers ICE, hooray! Please give it a meaningful name, add a doc-comment to the start of the test explaining why it exists and move it to tests/ui or wherever you see fit. Adding 'Fixes #<issueNr>' to your PR description ensures that the corresponding ticket is auto-closed upon merge. If you want to see verbose output, set `COMPILETEST_VERBOSE_CRASHES=1`."
test [crashes] tests/crashes/143506.rs ... FAILED
test [crashes] tests/crashes/143498.rs ... ok
test [crashes] tests/crashes/143872.rs ... ignored, ignored if rustc wasn't built with debug assertions
test [crashes] tests/crashes/143787.rs ... ok
test [crashes] tests/crashes/143806.rs ... ok
2025-11-09T21:19:06.860689Z ERROR compiletest::runtest: fatal error, panic: "crashtest no longer crashes/triggers ICE, hooray! Please give it a meaningful name, add a doc-comment to the start of the test explaining why it exists and move it to tests/ui or wherever you see fit. Adding 'Fixes #<issueNr>' to your PR description ensures that the corresponding ticket is auto-closed upon merge. If you want to see verbose output, set `COMPILETEST_VERBOSE_CRASHES=1`."
test [crashes] tests/crashes/143896.rs ... FAILED
test [crashes] tests/crashes/144033.rs ... ok
test [crashes] tests/crashes/144501.rs ... ignored, ignored if rustc wasn't built with debug assertions
test [crashes] tests/crashes/144241.rs ... ok
test [crashes] tests/crashes/144564.rs ... ignored, ignored if rustc wasn't built with debug assertions
---
test [crashes] tests/crashes/146706.rs ... ignored, ignored if rustc wasn't built with debug assertions
test [crashes] tests/crashes/146384.rs ... ok
test [crashes] tests/crashes/146514.rs ... ok
test [crashes] tests/crashes/146755.rs ... ok
2025-11-09T21:19:08.157327Z ERROR compiletest::runtest: fatal error, panic: "crashtest no longer crashes/triggers ICE, hooray! Please give it a meaningful name, add a doc-comment to the start of the test explaining why it exists and move it to tests/ui or wherever you see fit. Adding 'Fixes #<issueNr>' to your PR description ensures that the corresponding ticket is auto-closed upon merge. If you want to see verbose output, set `COMPILETEST_VERBOSE_CRASHES=1`."
test [crashes] tests/crashes/146834.rs ... FAILED
test [crashes] tests/crashes/146754.rs ... ok
test [crashes] tests/crashes/146903.rs ... ok
test [crashes] tests/crashes/146908.rs ... ok
test [crashes] tests/crashes/146906.rs ... ok
---

---- [crashes] tests/crashes/142773.rs stdout ----
------rustc stdout------------------------------

------rustc stderr------------------------------
warning: the feature `min_generic_const_args` is incomplete and may not be safe to use and/or cause compiler crashes
##[warning] --> /checkout/tests/crashes/142773.rs:3:12
  |
3 | #![feature(min_generic_const_args)]
  |            ^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #132980 <https://github.com/rust-lang/rust/issues/132980> for more information
---

error: use of trait associated const without `#[type_const]`
##[error] --> /checkout/tests/crashes/142773.rs:5:36
  |
5 | pub struct EntriesBuffer(Box<[[u8; HashesEntry::LEN]; 5]>);
  |                                    ^^^^^^^^^^^^^^^^
  |
  = note: the declaration in the trait must be marked with `#[type_const]`

error: aborting due to 1 previous error; 2 warnings emitted


------------------------------------------

error: crashtest no longer crashes/triggers ICE, hooray! Please give it a meaningful name, add a doc-comment to the start of the test explaining why it exists and move it to tests/ui or wherever you see fit. Adding 'Fixes #<issueNr>' to your PR description ensures that the corresponding ticket is auto-closed upon merge. If you want to see verbose output, set `COMPILETEST_VERBOSE_CRASHES=1`.

thread '[crashes] tests/crashes/142773.rs' panicked at src/tools/compiletest/src/runtest/crashes.rs:17:18:
fatal error
stack backtrace:
   5: __rustc::rust_begin_unwind
---
---- [crashes] tests/crashes/142773.rs stdout end ----
---- [crashes] tests/crashes/143506.rs stdout ----
------rustc stdout------------------------------

------rustc stderr------------------------------
warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
##[warning] --> /checkout/tests/crashes/143506.rs:2:12
  |
2 | #![feature(generic_const_exprs)]
  |            ^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
---

error: the constant `C` is not of type `u32`
##[error] --> /checkout/tests/crashes/143506.rs:9:11
  |
9 |     foo::<C>();
  |           ^ expected `u32`, found `f32`
  |
note: required by a const generic parameter in `foo`
 --> /checkout/tests/crashes/143506.rs:4:8
  |
4 | fn foo<const N: u32>(a: [(); N as usize]) {}
  |        ^^^^^^^^^^^^ required by this const generic parameter in `foo`

error[E0061]: this function takes 1 argument but 0 arguments were supplied
##[error] --> /checkout/tests/crashes/143506.rs:9:5
  |
9 |     foo::<C>();
  |     ^^^^^^^^-- argument #1 of type `[(); N as usize]` is missing
  |
note: function defined here
 --> /checkout/tests/crashes/143506.rs:4:4
  |
4 | fn foo<const N: u32>(a: [(); N as usize]) {}
  |    ^^^               -------------------
help: provide the argument
  |
9 |     foo::<C>(/* [(); N as usize] */);
  |              ++++++++++++++++++++++

warning: unused variable: `a`
##[warning] --> /checkout/tests/crashes/143506.rs:4:22
  |
4 | fn foo<const N: u32>(a: [(); N as usize]) {}
  |                      ^ help: if this is intentional, prefix it with an underscore: `_a`
  |
  = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default

error: aborting due to 2 previous errors; 3 warnings emitted

For more information about this error, try `rustc --explain E0061`.

------------------------------------------

error: crashtest no longer crashes/triggers ICE, hooray! Please give it a meaningful name, add a doc-comment to the start of the test explaining why it exists and move it to tests/ui or wherever you see fit. Adding 'Fixes #<issueNr>' to your PR description ensures that the corresponding ticket is auto-closed upon merge. If you want to see verbose output, set `COMPILETEST_VERBOSE_CRASHES=1`.

thread '[crashes] tests/crashes/143506.rs' panicked at src/tools/compiletest/src/runtest/crashes.rs:17:18:
fatal error
stack backtrace:
   5: __rustc::rust_begin_unwind
---
---- [crashes] tests/crashes/143506.rs stdout end ----
---- [crashes] tests/crashes/143896.rs stdout ----
------rustc stdout------------------------------

------rustc stderr------------------------------
error[E0261]: use of undeclared lifetime name `'a`
##[error] --> /checkout/tests/crashes/143896.rs:7:38
  |
7 | impl dyn TraitA<'_> where (): TraitA<'a,K = 0> {}
  |                                      ^^ undeclared lifetime
  |
  = note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
help: consider making the bound lifetime-generic with a new `'a` lifetime
  |
7 | impl dyn TraitA<'_> where (): for<'a> TraitA<'a,K = 0> {}
  |                               +++++++
help: consider making the bound lifetime-generic with a new `'a` lifetime
  |
7 | impl dyn TraitA<'_> where for<'a> (): TraitA<'a,K = 0> {}
  |                           +++++++
help: consider introducing lifetime `'a` here
  |
7 | impl<'a> dyn TraitA<'_> where (): TraitA<'a,K = 0> {}
  |     ++++

error[E0207]: the type parameter `T` is not constrained by the impl trait, self type, or predicates
##[error] --> /checkout/tests/crashes/143896.rs:6:6
  |
6 | impl<T> TraitA<'_> for () {}
  |      ^ unconstrained type parameter

error: use of trait associated const without `#[type_const]`
##[error] --> /checkout/tests/crashes/143896.rs:7:41
  |
7 | impl dyn TraitA<'_> where (): TraitA<'a,K = 0> {}
  |                                         ^^^^^
  |
  = note: the declaration in the trait must be marked with `#[type_const]`

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0207, E0261.
For more information about an error, try `rustc --explain E0207`.

------------------------------------------

error: crashtest no longer crashes/triggers ICE, hooray! Please give it a meaningful name, add a doc-comment to the start of the test explaining why it exists and move it to tests/ui or wherever you see fit. Adding 'Fixes #<issueNr>' to your PR description ensures that the corresponding ticket is auto-closed upon merge. If you want to see verbose output, set `COMPILETEST_VERBOSE_CRASHES=1`.

thread '[crashes] tests/crashes/143896.rs' panicked at src/tools/compiletest/src/runtest/crashes.rs:17:18:
fatal error
stack backtrace:
   5: __rustc::rust_begin_unwind
---
---- [crashes] tests/crashes/143896.rs stdout end ----
---- [crashes] tests/crashes/146834.rs stdout ----
------rustc stdout------------------------------

------rustc stderr------------------------------
error[E0658]: use of unstable library feature `contracts`
##[error] --> /checkout/tests/crashes/146834.rs:3:4
  |
3 | #![core::contracts::ensures]
  |    ^^^^^^^^^^^^^^^^^^^^^^^^
---
  |   expected named lifetime parameter
  |  _expected named lifetime parameter
  | |
4 | |
5 | | fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
6 | |     loop {}
7 | | }
  | |_-
  |
  = help: this function's return type contains a borrowed value with an elided lifetime, but the lifetime cannot be derived from the arguments
note: these named lifetimes are available to use
 --> /checkout/tests/crashes/146834.rs:3:1
  |
3 | / #![core::contracts::ensures]
4 | |
5 | | fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
6 | |     loop {}
7 | | }
  | |_^
help: consider using one of the available lifetimes here
  |
3 | #'lifetime ![core::contracts::ensures]
  |  +++++++++

error[E0658]: `#[prelude_import]` is for use by rustc only
##[error] --> /checkout/tests/crashes/146834.rs:3:1
  |
3 | / #![core::contracts::ensures]
4 | |
5 | | fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
6 | |     loop {}
7 | | }
  | |_^
  |
  = help: add `#![feature(prelude_import)]` to the crate attributes to enable
  = note: this compiler was built on 2025-11-09; consider upgrading it if it is out of date

warning: unused `#[macro_use]` import
##[warning] --> /checkout/tests/crashes/146834.rs:3:1
  |
3 | / #![core::contracts::ensures]
4 | |
5 | | fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
6 | |     loop {}
7 | | }
  | |_^
  |
  = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

warning: unused import: `#![core::contracts::ensures]
         
         fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
             loop {}
         }`
 --> /checkout/tests/crashes/146834.rs:3:1
  |
3 | / #![core::contracts::ensures]
4 | |
5 | | fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
6 | |     loop {}
7 | | }
  | |_^

warning: lifetime parameter `'a` only used once
##[warning] --> /checkout/tests/crashes/146834.rs:3:1
  |
3 | / #![core::contracts::ensures]
4 | |
5 | | fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
6 | |     loop {}
7 | | }
  | | ^
  | | |
  | |_this lifetime...
  |   ...is used only here
  |
  = note: requested on the command line with `-W single-use-lifetimes`
help: elide the single-use lifetime
  |
3 - #![core::contracts::ensures]
4 - 
5 - fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
6 -     loop {}
7 - }
  |

warning: lifetime parameter `'b` only used once
##[warning] --> /checkout/tests/crashes/146834.rs:3:1
  |
3 | / #![core::contracts::ensures]
4 | |
5 | | fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
6 | |     loop {}
7 | | }
  | | ^
  | | |
  | |_this lifetime...
  |   ...is used only here
  |
help: elide the single-use lifetime
  |
3 - #![core::contracts::ensures]
4 - 
5 - fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
6 -     loop {}
7 - }
  |

error[E0601]: `main` function not found in crate `146834`
##[error] --> /checkout/tests/crashes/146834.rs:7:2
  |
7 | }
  |  ^ consider adding a `main` function to `/checkout/tests/crashes/146834.rs`

error[E0277]: expected a `Fn(&_)` closure, found `()`
##[error] --> /checkout/tests/crashes/146834.rs:3:1
  |
3 | #![core::contracts::ensures]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  | |
  | expected an `Fn(&_)` closure, found `()`
  | required by a bound introduced by this call
  |
  = help: the trait `for<'a> Fn(&'a _)` is not implemented for `()`
note: required by a bound in `build_check_ensures`
 --> /rustc/FAKE_PREFIX/library/core/src/contracts.rs:19:0

error: aborting due to 6 previous errors; 4 warnings emitted

Some errors have detailed explanations: E0106, E0277, E0601, E0658.
For more information about an error, try `rustc --explain E0106`.

------------------------------------------

error: crashtest no longer crashes/triggers ICE, hooray! Please give it a meaningful name, add a doc-comment to the start of the test explaining why it exists and move it to tests/ui or wherever you see fit. Adding 'Fixes #<issueNr>' to your PR description ensures that the corresponding ticket is auto-closed upon merge. If you want to see verbose output, set `COMPILETEST_VERBOSE_CRASHES=1`.

thread '[crashes] tests/crashes/146834.rs' panicked at src/tools/compiletest/src/runtest/crashes.rs:17:18:
fatal error
stack backtrace:
   5: __rustc::rust_begin_unwind

For more information how to resolve CI failures of this job, visit this link.

@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job dist-i586-gnu-i586-i686-musl failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
test [crashes] tests/crashes/142209.rs ... ok
test [crashes] tests/crashes/142529.rs ... ok
test [crashes] tests/crashes/142559.rs ... ok
test [crashes] tests/crashes/142560.rs ... ok
2025-11-09T21:52:05.720312Z ERROR compiletest::runtest: fatal error, panic: "crashtest no longer crashes/triggers ICE, hooray! Please give it a meaningful name, add a doc-comment to the start of the test explaining why it exists and move it to tests/ui or wherever you see fit. Adding 'Fixes #<issueNr>' to your PR description ensures that the corresponding ticket is auto-closed upon merge. If you want to see verbose output, set `COMPILETEST_VERBOSE_CRASHES=1`."
test [crashes] tests/crashes/142773.rs ... FAILED
test [crashes] tests/crashes/142717.rs ... ok
test [crashes] tests/crashes/142866.rs ... ok
test [crashes] tests/crashes/142913.rs ... ok
test [crashes] tests/crashes/143117.rs ... ok
test [crashes] tests/crashes/143174.rs ... ok
test [crashes] tests/crashes/143205.rs ... ok
test [crashes] tests/crashes/143094.rs ... ok
test [crashes] tests/crashes/143358.rs ... ok
2025-11-09T21:52:05.986394Z ERROR compiletest::runtest: fatal error, panic: "crashtest no longer crashes/triggers ICE, hooray! Please give it a meaningful name, add a doc-comment to the start of the test explaining why it exists and move it to tests/ui or wherever you see fit. Adding 'Fixes #<issueNr>' to your PR description ensures that the corresponding ticket is auto-closed upon merge. If you want to see verbose output, set `COMPILETEST_VERBOSE_CRASHES=1`."
test [crashes] tests/crashes/143506.rs ... FAILED
test [crashes] tests/crashes/143498.rs ... ok
test [crashes] tests/crashes/143872.rs ... ignored, ignored if rustc wasn't built with debug assertions
test [crashes] tests/crashes/143806.rs ... ok
test [crashes] tests/crashes/144033.rs ... ok
test [crashes] tests/crashes/143787.rs ... ok
2025-11-09T21:52:06.117693Z ERROR compiletest::runtest: fatal error, panic: "crashtest no longer crashes/triggers ICE, hooray! Please give it a meaningful name, add a doc-comment to the start of the test explaining why it exists and move it to tests/ui or wherever you see fit. Adding 'Fixes #<issueNr>' to your PR description ensures that the corresponding ticket is auto-closed upon merge. If you want to see verbose output, set `COMPILETEST_VERBOSE_CRASHES=1`."
test [crashes] tests/crashes/143896.rs ... FAILED
test [crashes] tests/crashes/144501.rs ... ignored, ignored if rustc wasn't built with debug assertions
test [crashes] tests/crashes/144241.rs ... ok
test [crashes] tests/crashes/144564.rs ... ignored, ignored if rustc wasn't built with debug assertions
test [crashes] tests/crashes/144547.rs ... ok
---
test [crashes] tests/crashes/146706.rs ... ignored, ignored if rustc wasn't built with debug assertions
test [crashes] tests/crashes/146384.rs ... ok
test [crashes] tests/crashes/146754.rs ... ok
test [crashes] tests/crashes/146371.rs ... ok
2025-11-09T21:52:06.673158Z ERROR compiletest::runtest: fatal error, panic: "crashtest no longer crashes/triggers ICE, hooray! Please give it a meaningful name, add a doc-comment to the start of the test explaining why it exists and move it to tests/ui or wherever you see fit. Adding 'Fixes #<issueNr>' to your PR description ensures that the corresponding ticket is auto-closed upon merge. If you want to see verbose output, set `COMPILETEST_VERBOSE_CRASHES=1`."
test [crashes] tests/crashes/146834.rs ... FAILED
test [crashes] tests/crashes/146755.rs ... ok
test [crashes] tests/crashes/146906.rs ... ok
test [crashes] tests/crashes/146903.rs ... ok
test [crashes] tests/crashes/146985.rs ... ok
---

---- [crashes] tests/crashes/142773.rs stdout ----
------rustc stdout------------------------------

------rustc stderr------------------------------
warning: the feature `min_generic_const_args` is incomplete and may not be safe to use and/or cause compiler crashes
##[warning] --> /checkout/tests/crashes/142773.rs:3:12
  |
3 | #![feature(min_generic_const_args)]
  |            ^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #132980 <https://github.com/rust-lang/rust/issues/132980> for more information
---

error: use of trait associated const without `#[type_const]`
##[error] --> /checkout/tests/crashes/142773.rs:5:36
  |
5 | pub struct EntriesBuffer(Box<[[u8; HashesEntry::LEN]; 5]>);
  |                                    ^^^^^^^^^^^^^^^^
  |
  = note: the declaration in the trait must be marked with `#[type_const]`

error: aborting due to 1 previous error; 2 warnings emitted


------------------------------------------

error: crashtest no longer crashes/triggers ICE, hooray! Please give it a meaningful name, add a doc-comment to the start of the test explaining why it exists and move it to tests/ui or wherever you see fit. Adding 'Fixes #<issueNr>' to your PR description ensures that the corresponding ticket is auto-closed upon merge. If you want to see verbose output, set `COMPILETEST_VERBOSE_CRASHES=1`.

thread '[crashes] tests/crashes/142773.rs' panicked at src/tools/compiletest/src/runtest/crashes.rs:17:18:
fatal error
stack backtrace:
   5: __rustc::rust_begin_unwind
---
---- [crashes] tests/crashes/142773.rs stdout end ----
---- [crashes] tests/crashes/143506.rs stdout ----
------rustc stdout------------------------------

------rustc stderr------------------------------
warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
##[warning] --> /checkout/tests/crashes/143506.rs:2:12
  |
2 | #![feature(generic_const_exprs)]
  |            ^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
---

error: the constant `C` is not of type `u32`
##[error] --> /checkout/tests/crashes/143506.rs:9:11
  |
9 |     foo::<C>();
  |           ^ expected `u32`, found `f32`
  |
note: required by a const generic parameter in `foo`
 --> /checkout/tests/crashes/143506.rs:4:8
  |
4 | fn foo<const N: u32>(a: [(); N as usize]) {}
  |        ^^^^^^^^^^^^ required by this const generic parameter in `foo`

error[E0061]: this function takes 1 argument but 0 arguments were supplied
##[error] --> /checkout/tests/crashes/143506.rs:9:5
  |
9 |     foo::<C>();
  |     ^^^^^^^^-- argument #1 of type `[(); N as usize]` is missing
  |
note: function defined here
 --> /checkout/tests/crashes/143506.rs:4:4
  |
4 | fn foo<const N: u32>(a: [(); N as usize]) {}
  |    ^^^               -------------------
help: provide the argument
  |
9 |     foo::<C>(/* [(); N as usize] */);
  |              ++++++++++++++++++++++

warning: unused variable: `a`
##[warning] --> /checkout/tests/crashes/143506.rs:4:22
  |
4 | fn foo<const N: u32>(a: [(); N as usize]) {}
  |                      ^ help: if this is intentional, prefix it with an underscore: `_a`
  |
  = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default

error: aborting due to 2 previous errors; 3 warnings emitted

For more information about this error, try `rustc --explain E0061`.

------------------------------------------

error: crashtest no longer crashes/triggers ICE, hooray! Please give it a meaningful name, add a doc-comment to the start of the test explaining why it exists and move it to tests/ui or wherever you see fit. Adding 'Fixes #<issueNr>' to your PR description ensures that the corresponding ticket is auto-closed upon merge. If you want to see verbose output, set `COMPILETEST_VERBOSE_CRASHES=1`.

thread '[crashes] tests/crashes/143506.rs' panicked at src/tools/compiletest/src/runtest/crashes.rs:17:18:
fatal error
stack backtrace:
   5: __rustc::rust_begin_unwind
---
---- [crashes] tests/crashes/143506.rs stdout end ----
---- [crashes] tests/crashes/143896.rs stdout ----
------rustc stdout------------------------------

------rustc stderr------------------------------
error[E0261]: use of undeclared lifetime name `'a`
##[error] --> /checkout/tests/crashes/143896.rs:7:38
  |
7 | impl dyn TraitA<'_> where (): TraitA<'a,K = 0> {}
  |                                      ^^ undeclared lifetime
  |
  = note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
help: consider making the bound lifetime-generic with a new `'a` lifetime
  |
7 | impl dyn TraitA<'_> where (): for<'a> TraitA<'a,K = 0> {}
  |                               +++++++
help: consider making the bound lifetime-generic with a new `'a` lifetime
  |
7 | impl dyn TraitA<'_> where for<'a> (): TraitA<'a,K = 0> {}
  |                           +++++++
help: consider introducing lifetime `'a` here
  |
7 | impl<'a> dyn TraitA<'_> where (): TraitA<'a,K = 0> {}
  |     ++++

error[E0207]: the type parameter `T` is not constrained by the impl trait, self type, or predicates
##[error] --> /checkout/tests/crashes/143896.rs:6:6
  |
6 | impl<T> TraitA<'_> for () {}
  |      ^ unconstrained type parameter

error: use of trait associated const without `#[type_const]`
##[error] --> /checkout/tests/crashes/143896.rs:7:41
  |
7 | impl dyn TraitA<'_> where (): TraitA<'a,K = 0> {}
  |                                         ^^^^^
  |
  = note: the declaration in the trait must be marked with `#[type_const]`

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0207, E0261.
For more information about an error, try `rustc --explain E0207`.

------------------------------------------

error: crashtest no longer crashes/triggers ICE, hooray! Please give it a meaningful name, add a doc-comment to the start of the test explaining why it exists and move it to tests/ui or wherever you see fit. Adding 'Fixes #<issueNr>' to your PR description ensures that the corresponding ticket is auto-closed upon merge. If you want to see verbose output, set `COMPILETEST_VERBOSE_CRASHES=1`.

thread '[crashes] tests/crashes/143896.rs' panicked at src/tools/compiletest/src/runtest/crashes.rs:17:18:
fatal error
stack backtrace:
   5: __rustc::rust_begin_unwind
---
---- [crashes] tests/crashes/143896.rs stdout end ----
---- [crashes] tests/crashes/146834.rs stdout ----
------rustc stdout------------------------------

------rustc stderr------------------------------
error[E0658]: use of unstable library feature `contracts`
##[error] --> /checkout/tests/crashes/146834.rs:3:4
  |
3 | #![core::contracts::ensures]
  |    ^^^^^^^^^^^^^^^^^^^^^^^^
---
  |   expected named lifetime parameter
  |  _expected named lifetime parameter
  | |
4 | |
5 | | fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
6 | |     loop {}
7 | | }
  | |_-
  |
  = help: this function's return type contains a borrowed value with an elided lifetime, but the lifetime cannot be derived from the arguments
note: these named lifetimes are available to use
 --> /checkout/tests/crashes/146834.rs:3:1
  |
3 | / #![core::contracts::ensures]
4 | |
5 | | fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
6 | |     loop {}
7 | | }
  | |_^
help: consider using one of the available lifetimes here
  |
3 | #'lifetime ![core::contracts::ensures]
  |  +++++++++

error[E0658]: `#[prelude_import]` is for use by rustc only
##[error] --> /checkout/tests/crashes/146834.rs:3:1
  |
3 | / #![core::contracts::ensures]
4 | |
5 | | fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
6 | |     loop {}
7 | | }
  | |_^
  |
  = help: add `#![feature(prelude_import)]` to the crate attributes to enable
  = note: this compiler was built on 2025-11-09; consider upgrading it if it is out of date

warning: unused `#[macro_use]` import
##[warning] --> /checkout/tests/crashes/146834.rs:3:1
  |
3 | / #![core::contracts::ensures]
4 | |
5 | | fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
6 | |     loop {}
7 | | }
  | |_^
  |
  = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

warning: unused import: `#![core::contracts::ensures]
         
         fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
             loop {}
         }`
 --> /checkout/tests/crashes/146834.rs:3:1
  |
3 | / #![core::contracts::ensures]
4 | |
5 | | fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
6 | |     loop {}
7 | | }
  | |_^

warning: lifetime parameter `'a` only used once
##[warning] --> /checkout/tests/crashes/146834.rs:3:1
  |
3 | / #![core::contracts::ensures]
4 | |
5 | | fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
6 | |     loop {}
7 | | }
  | | ^
  | | |
  | |_this lifetime...
  |   ...is used only here
  |
  = note: requested on the command line with `-W single-use-lifetimes`
help: elide the single-use lifetime
  |
3 - #![core::contracts::ensures]
4 - 
5 - fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
6 -     loop {}
7 - }
  |

warning: lifetime parameter `'b` only used once
##[warning] --> /checkout/tests/crashes/146834.rs:3:1
  |
3 | / #![core::contracts::ensures]
4 | |
5 | | fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
6 | |     loop {}
7 | | }
  | | ^
  | | |
  | |_this lifetime...
  |   ...is used only here
  |
help: elide the single-use lifetime
  |
3 - #![core::contracts::ensures]
4 - 
5 - fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) {
6 -     loop {}
7 - }
  |

error[E0601]: `main` function not found in crate `146834`
##[error] --> /checkout/tests/crashes/146834.rs:7:2
  |
7 | }
  |  ^ consider adding a `main` function to `/checkout/tests/crashes/146834.rs`

error[E0277]: expected a `Fn(&_)` closure, found `()`
##[error] --> /checkout/tests/crashes/146834.rs:3:1
  |
3 | #![core::contracts::ensures]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  | |
  | expected an `Fn(&_)` closure, found `()`
  | required by a bound introduced by this call
  |
  = help: the trait `for<'a> Fn(&'a _)` is not implemented for `()`
note: required by a bound in `build_check_ensures`
 --> /rustc/FAKE_PREFIX/library/core/src/contracts.rs:19:0

error: aborting due to 6 previous errors; 4 warnings emitted

Some errors have detailed explanations: E0106, E0277, E0601, E0658.
For more information about an error, try `rustc --explain E0106`.

------------------------------------------

error: crashtest no longer crashes/triggers ICE, hooray! Please give it a meaningful name, add a doc-comment to the start of the test explaining why it exists and move it to tests/ui or wherever you see fit. Adding 'Fixes #<issueNr>' to your PR description ensures that the corresponding ticket is auto-closed upon merge. If you want to see verbose output, set `COMPILETEST_VERBOSE_CRASHES=1`.

thread '[crashes] tests/crashes/146834.rs' panicked at src/tools/compiletest/src/runtest/crashes.rs:17:18:
fatal error
stack backtrace:
   5: __rustc::rust_begin_unwind

@rust-bors

rust-bors Bot commented Nov 9, 2025

Copy link
Copy Markdown
Contributor

💔 Test for 4187600 failed: CI. Failed jobs:

@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 Nov 11, 2025
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Dec 19, 2025
add several older crashtests

Includes rust-lang#114880, rust-lang#119440, rust-lang#126418, rust-lang#138274, rust-lang#138660.
Since their issue numbers are all smaller than 140000, this has no conflicts with rust-lang#147857.
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Dec 28, 2025
add several older crashtests

Includes rust-lang#114880, rust-lang#119940, rust-lang#138274, rust-lang#138660.
Since their issue numbers are all smaller than 140000, this has no conflicts with rust-lang#147857.
rust-timer added a commit that referenced this pull request Dec 29, 2025
Rollup merge of #149947 - cyrgani:crashtests, r=Mark-Simulacrum

add several older crashtests

Includes #114880, #119940, #138274, #138660.
Since their issue numbers are all smaller than 140000, this has no conflicts with #147857.
@rust-bors

rust-bors Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #161093) made this pull request unmergeable. Please resolve the merge conflicts by rebasing.

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

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. 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.

5 participants