Skip to content

InferCtxt::resolve_regions_and_report_errors no longer exists #2572

Closed

Description

@ada4a

This method is referred to in https://rustc-dev-guide.rust-lang.org/type-inference.html#solving-region-constraints, but the link is dead. But I'm not sure which method to update this to:

  • There is ObligationCtxt::resolve_regions_and_report_errors, which does have the same name, but its description doesn't seem to match up what the dev-guide says. Plus it's a method on ObligationCtxt, whereas all the other functions in the section come from InferCtxt, or at least rustc_infer.
  • And then there is InferCtxt::resolve_regions_with_normalize, whose documentation does align with the description in the section much more closely, especially the ICE-when-used-more-than-once part. But its previous name was just resolve_regions (changed in this commit).

Activity

  1. added
    needs-triageThis issue needs triage to classify its nature and status
    on Sep 4, 2025
  2. tshepang commented on Sep 5, 2025

    @tshepang
    Member

    I found rust-lang/rust@a19adef, which says ObligationCtxt is the new home of the method.

  3. ada4a commented on Sep 5, 2025

    @ada4a
    ContributorAuthor

    Thank you! Opened a PR

  4. tshepang commented on Sep 5, 2025

    @tshepang
    Member

    also noticed the last link in that section does not go where it is intended to... would you care to fix

  5. ada4a commented on Sep 5, 2025

    @ada4a
    ContributorAuthor

    There you go: #2577

  6. tshepang commented on Sep 5, 2025

    @tshepang
    Member

    too quick, thank you 💃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageThis issue needs triage to classify its nature and status

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions