Skip to content

Conversation

@samueltardieu
Copy link
Member

@samueltardieu samueltardieu commented Jan 7, 2026

The libtest harness generates an array with all the tests on the stack. However, it is generated with no location information, so we cannot tell the user anything useful.

This commit is not accompanied by a test, as it would require running Clippy on the result of libtest harness with a lot of tests, which would take a very long time. A note has been added to the source to indicate not to remove the check.

changelog: [large_stack_arrays]: do not warn for code auto-generated by libtest harness

Fixes #13774

The libtest harness generates an array with all the tests on the stack.
However, it is generated with no location information, so we cannot tell
the user anything useful.

This commit is not accompanied by a test, as it would require running
Clippy on the result of libtest harness with a lot of tests, which would
take a very long time. A note has been added to the source to indicate
not to remove the check.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 7, 2026
@rustbot
Copy link
Collaborator

rustbot commented Jan 7, 2026

r? @dswij

rustbot has assigned @dswij.
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

@dswij dswij added this pull request to the merge queue Jan 7, 2026
Merged via the queue into rust-lang:master with commit 98ced04 Jan 7, 2026
11 of 13 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 7, 2026
@samueltardieu samueltardieu deleted the issues/13774 branch January 7, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No span for clippy::large_stack_arrays

3 participants