Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

break out the upvar code into modules #55

Open
@nikomatsakis

Description

@nikomatsakis

I think this code would be cleaner if we made an upvar module with submodules like:

  • rustc_typeck::check::upvar::collect_uses
  • rustc_typeck::check::upvar::minimization

and just had the "top-level logic" in rustc_typeck::check::upvar.

I also think we should include a comment with the "abstract algorithm" -- but maybe it should live in the reference, actually, and we should just reference to it from here.

Originally posted by @nikomatsakis in rust-lang/rust#86995 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions