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 committed Aug 24, 2019
2 parents 3b31b25 + 6ffc834 commit 1d44b85
Show file tree
Hide file tree
Showing 6 changed files with 423 additions and 311 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 1d44b85

Please sign in to comment.