-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow dead TyGenericParams (YAGNI but maybe...)
- Loading branch information
1 parent
1c39f40
commit 1e5b3b5
Showing
1 changed file
with
1 addition
and
0 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
I've mostly quit using
#[allow(dead_code)]
because it's easy to introduce a new use of the formerly-dead item but forget to remove the attribute, which is then misleading. Instead, I add a leading underscore (e.g._TyGenericParams
), so it's still visible in the code and docs, but anyone introducing a use of the item will also have to remove the underscore (or else doRewrite::_TyGenericParams(...)
, which stands out in code review).