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

Streamline HirCollector #130419

Merged
merged 3 commits into from
Oct 3, 2024
Merged

Commits on Sep 25, 2024

  1. Remove HirCollector::sess.

    It's redundant w.r.t. `HirCollector::tcx`. This removes the unnecessary
    `'a` lifetime.
    nnethercote committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    701ccd3 View commit details
    Browse the repository at this point in the history
  2. Remove HirCollector::map.

    Because `rustc_middle::hir::map::Map` is a trivial wrapper around
    `TyCtxt`, and `HirCollector` has a `TyCtxt` field.
    nnethercote committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    711c91d View commit details
    Browse the repository at this point in the history
  3. Rename AstValidator::session as AstValidator::sess.

    Because `sess` is the standard name used everywhere else.
    nnethercote committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    0882ad5 View commit details
    Browse the repository at this point in the history