Skip to content

"Conventions used in the compiler" #12

Closed
@nikomatsakis

Description

@nikomatsakis

Some of this material exists already scattered about, and/or maybe this overlaps with the glossary, but I think it'd be helpful to try and capture some common conventions.

Here are some things I'm thinking about:

  • How to format code (document the test infrastructure #47)
    • Um... kind of a mess. Hopefully we'll move to rustfmt.
  • Naming conventions (maybe this should just be in the glossary, actually?)
    • the cx suffix -- short for "context"
    • 'tcx and 'gcx -- mostly direct elsewhere for detailed explanation?
  • When to add/avoid adding dependencies from crates.io? What is the vetting process?
    • Whitelisting?
  • What else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-mediumDifficulty: might require some prior knowledge or code reading

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions