-
-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminate most rule registration boilerplate.
Introduce a register_rules function that can find and register all @rules and the SubsystemRules they depend on. This can be used to both reduce boilerplate and also make rule development less surprising. Using register_rules it now becomes rarer to edit rules and encounter errors due to forgetting to register rules for the various introduced subsystems and @rule functions. Also streamline the Rule interface and the `def rules()` semantics; now all rules are Rules save for UnionRule which can be dealt away with later to leave users only exposed to registering Rules. [ci skip-rust-tests]
- Loading branch information
Showing
5 changed files
with
66 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters