Skip to content

rustc_metadata: Deduplicate code between encode_info_for_item and encode_info_for_foreign_item #77393

Closed
@petrochenkov

Description

@petrochenkov

The set of data to record for regular items and foreign items is pretty similar, but slightly different.
When metadata encoding is done independently for them, issues like #77375 arise.

encode_info_for_trait_item and encode_info_for_impl_item are also similar, and also slightly different (all in different directions), so they may be included into the refactoring as well.

Metadata

Metadata

Assignees

Labels

A-metadataArea: Crate metadataC-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions