Skip to content

documentation about feature gates #98

Closed
@nikomatsakis

Description

@nikomatsakis

I find myself referencing this forge article a lot:

https://forge.rust-lang.org/feature-guide.html
EDIT (mark-i-m): this moved to https://rust-lang.github.io/rustc-guide/implementing_new_features.html

It's ok, but not great. Some things I would like to see covered in rustc-guide instead (and then perhaps remove that article):

  • how to add a feature gate in the code
    • how to add a test covering your feature gate
  • how to change for simple syntactic things
  • how to do more advanced gates by looking at sess.features.your_feature_here as a boolean

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyDifficulty: might be a good place for a beginner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions