Skip to content

Enforce #![warn(unreachable_pub)] in compiletest source#154741

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
Zalathar:unreachable-pub
Apr 3, 2026
Merged

Enforce #![warn(unreachable_pub)] in compiletest source#154741
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
Zalathar:unreachable-pub

Conversation

@Zalathar
Copy link
Copy Markdown
Member

@Zalathar Zalathar commented Apr 3, 2026

The actual public API surface of compiletest is restricted to two specific modules, cli and rustdoc_gui_test.

Other items have no reason to be pub.

There should be no change to compiletest behaviour.

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 3, 2026

Some changes occurred in src/tools/compiletest

cc @jieyouxu

compiletest directives have been modified. Please add or update docs for the
new or modified directive in src/doc/rustc-dev-guide/.

@rustbot rustbot added A-compiletest Area: The compiletest test runner 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. labels Apr 3, 2026
@rustbot rustbot added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Apr 3, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 3, 2026

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

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @jieyouxu, @oli-obk, @wesleywiser, bootstrap
  • @jieyouxu, @oli-obk, @wesleywiser, bootstrap expanded to 8 candidates
  • Random selection from Mark-Simulacrum, clubby789, wesleywiser

Copy link
Copy Markdown
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

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

Thanks!
r? me @bors r+ rollup

View changes since this review

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Apr 3, 2026

📌 Commit 14c7788 has been approved by jieyouxu

It is now in the queue for this repository.

@rust-bors rust-bors bot added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Apr 3, 2026
@rust-bors rust-bors bot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 3, 2026
rust-bors bot pushed a commit that referenced this pull request Apr 3, 2026
Rollup of 6 pull requests

Successful merges:

 - #154696 (rustdoc_missing_doc_code_examples: lint on macro_rules macros)
 - #154698 (Improve workings of the `desc` query modifier and custom query cycle handlers)
 - #154713 (Stop compiling when we get resolving crate failure)
 - #154736 (Add a regression test for the duplicated `crate` keyword in path suggestions)
 - #154739 (ci: update upload-artifact action to v7)
 - #154741 (Enforce `#![warn(unreachable_pub)]` in compiletest source)

Failed merges:

 - #154605 (Make `span_suggestions` always verbose)
rust-timer added a commit that referenced this pull request Apr 3, 2026
Rollup merge of #154741 - Zalathar:unreachable-pub, r=jieyouxu

Enforce `#![warn(unreachable_pub)]` in compiletest source

The actual public API surface of compiletest is restricted to two specific modules, `cli` and `rustdoc_gui_test`.

Other items have no reason to be `pub`.

There should be no change to compiletest behaviour.
@rust-bors rust-bors bot merged commit 1dd0f35 into rust-lang:main Apr 3, 2026
11 checks passed
@rustbot rustbot added this to the 1.96.0 milestone Apr 3, 2026
@Zalathar Zalathar deleted the unreachable-pub branch April 3, 2026 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants