Skip to content

rustc_codegen_ssa: streamline interactions between Builder's and CodegenCx, layout, etc. #56122

Closed
@eddyb

Description

@eddyb

It would be nice if Builder deref'd to CodegenCx to avoid typing bx.cx() everywhere.
Also, since Builder now has to implement all the layout traits itself, we could start writing e.g. layout.field(bx, i) instead of layout.field(bx.cx(), i).

There are probably a few more ergonomics / cleanup things we could do here as well.

cc @nikomatsakis @sunfishcode @denismerigoux @bjorn3

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationC-cleanupCategory: PRs that clean code up or issues documenting cleanup.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions