Skip to content
Discussion options

You must be logged in to vote

Yes, we allow adding lints for nightly features. The first thing the lint implementation will have to check is if the feature is enabled.

See for example the EMPTY_ENUMS lint:

// Only suggest the `never_type` if the feature is enabled
&& cx.tcx.features().never_type()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stephenlf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants