clarify local_crate_exports_generics
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Location
Summary
it seems like it would be obvious what this does from the verbose name, but it actually checks if the local crate is allowed to export generics, based on its crate type. a completely empty rlib crate that doesn't export anything will still return true.
it's also completely undocumented in general.
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 at the TyCtxt::local_crate_exports_generics entry point linked in the issue and read the surrounding implementation and existing rustc_middle documentation. Clarify that the method reports whether the local crate type is allowed to export generics, not whether it actually exports any, and document the empty-rlib behavior. Done means the method's semantics are clear from its documentation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100