Skip to content

Commit

Permalink
Rollup merge of rust-lang#63855 - killercup:refactor/feature-gates, r…
Browse files Browse the repository at this point in the history
…=Centril

Refactor feature gates

After rust-lang#63824, this goes a few steps further by

- parsing doc comments in the macros to extract descriptions for feature gates, and
- introducing a common `Feature` type to replace the tuples used previously to improve readability.

The descriptions are not yet used, but I felt like this PR is a useful enough refactoring on its own.

r? @Centril
  • Loading branch information
Centril authored Aug 26, 2019
2 parents 59fa966 + 94e8ff4 commit b005a89
Show file tree
Hide file tree
Showing 6 changed files with 419 additions and 309 deletions.
234 changes: 123 additions & 111 deletions src/libsyntax/feature_gate/accepted.rs

Large diffs are not rendered by default.

Loading

0 comments on commit b005a89

Please sign in to comment.