Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hir: Refactor getters for HIR parents #120872

Merged
merged 2 commits into from
Feb 12, 2024
Merged

Commits on Feb 10, 2024

  1. hir: Introduce TyCtxt::parent_hir_{id,node}

    Remove the FIXME and keep `CRATE_HIR_ID` being its own parent.
    This scheme turned out to be more practical than having an `Option` on closer inspection.
    
    Also make `hir_owner_parent` more readable.
    petrochenkov committed Feb 10, 2024
    Configuration menu
    Copy the full SHA
    e46e3e7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b072838 View commit details
    Browse the repository at this point in the history