Skip to content

Add convenience wrappers for type_dependent_defs #59094

Closed
@oli-obk

Description

@oli-obk

Most uses of that method mostly directly unwrap or just want to know the DefId. So we could use several kind of convenience wrappers:

  • fn opt_type_dependent_def(&self, id: HirId) -> Option<Def>
  • fn type_dependent_def(&self, id: HirId) -> Def
  • fn type_dependent_def_id(&self, id: HirId) -> DefId

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-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.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions