Skip to content

Bring runtime symbols statics on par with foreign functions#159527

Open
Urgau wants to merge 4 commits into
rust-lang:mainfrom
Urgau:runtime-symbols-static-cleanup
Open

Bring runtime symbols statics on par with foreign functions#159527
Urgau wants to merge 4 commits into
rust-lang:mainfrom
Urgau:runtime-symbols-static-cleanup

Conversation

@Urgau

@Urgau Urgau commented Jul 18, 2026

Copy link
Copy Markdown
Member

This PR cleanups the static items path when checking the runtime symbols, and brings it on par with the foreign functions check.

It also fixes a bug where static only reported the invalid lint and never the suspicious lint.

Best reviewed commit by commit.

r? @GuillaumeGomez

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 18, 2026
Comment thread tests/ui/lint/runtime-symbols.rs
Comment thread compiler/rustc_lint/src/runtime_symbols.rs
@Urgau
Urgau force-pushed the runtime-symbols-static-cleanup branch from 7c53b6a to fea4343 Compare July 19, 2026 17:30
@rust-bors

This comment has been minimized.

@Urgau
Urgau force-pushed the runtime-symbols-static-cleanup branch from fea4343 to 778a9df Compare July 20, 2026 20:46
@rustbot

rustbot commented Jul 20, 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.

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

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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.

4 participants