Skip to content

Create a RunCompiler builder to replace the run_compiler function #77286

Closed
@bjorn3

Description

@bjorn3

This argument list is slowly getting out of hand. Maybe we should create a RunCompiler builder pattern struct that doesn't require most calls to use None, None, None?

Anyway, pre-existing, if you rather open an issue about it than fix it here, I'm fine with merging this PR

Originally posted by @oli-obk in #76474 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-driverArea: rustc_driver that ties everything together into the `rustc` compilerC-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions