Emit a proper diagnostic for unknown -Zself-profile-events values
Open
Beginner friendly
Nobody has claimed this yet.
A-diagnostics
A-self-profile
C-enhancement
T-compiler
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Currently it only emits a warn!() log, which is not shown by default.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in compiler/rustc_data_structures/src/profiling.rs around lines 596-604 and inspect how unknown -Zself-profile-events values are currently reported. Replace the non-default warn!() logging with a proper diagnostic, then verify that unknown values produce the intended visible diagnostic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100