rust-lang / rust-lang/rustc_public

Expose `DefId::is_local`

Open
#124 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
125
Forks
19
PR merge metrics
No merged PRs in 30d

Description

We are currently missing DefId::is_local; we have the Crate.is_local field but it's not public and I'm not sure how to do DefId → Crate

Contributor guide

No contributing guide indexed for this repository

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 reading the public DefId and Crate APIs referenced in the issue, then trace the existing path between them. Confirm how rustc's DefId::is_local behavior should be represented in rustc_public and identify the relevant tests or validation command. Done means the operation is publicly available with behavior matching the referenced rustc API.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.