rust-lang / rust-lang/rust

Investigate linker warnings

Open
#135,828 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-linkage A-linkers C-tracking-issue L-linker_messages T-bootstrap T-compiler
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

https://github.com/rust-lang/rust/pull/119286 unsilences linker warnings by default, and then promptly silences them again for rust-lang/rust itself. We should investigate and fix them.

So far I have seen the following kinds of warnings:

and they are silenced in these places:

@rustbot label S-tracking-issue

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the listed linker warnings in the affected tests and builds, then inspect the warning suppressions in src/bootstrap/src/core/build_steps/test.rs and src/bootstrap/src/core/builder/cargo.rs at the referenced lines. Compare the linked pull request and comments to identify each warning's cause; done means the warnings are addressed rather than silenced.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.