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

Move some methods from tcx.hir() to tcx #118500

Merged
merged 1 commit into from
Dec 13, 2023

Commits on Dec 12, 2023

  1. Move some methods from tcx.hir() to tcx

    Renamings:
    - find -> opt_hir_node
    - get -> hir_node
    - find_by_def_id -> opt_hir_node_by_def_id
    - get_by_def_id -> hir_node_by_def_id
    
    Fix rebase changes using removed methods
    
    Use `tcx.hir_node_by_def_id()` whenever possible in compiler
    
    Fix clippy errors
    
    Fix compiler
    
    Apply suggestions from code review
    
    Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
    
    Add FIXME for `tcx.hir()` returned type about its removal
    
    Simplify with with `tcx.hir_node_by_def_id`
    zetanumbers committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    24f009c View commit details
    Browse the repository at this point in the history