diff options
| author | Philipp Krones <hello@philkrones.com> | 2022-09-28 14:36:56 +0200 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2022-09-29 12:02:58 +0200 |
| commit | 924c1ce97d33f75d6e9e92df1c523abdc7d90f02 (patch) | |
| tree | 9ef36fc961ecc901b7b58f4d14992c61872cbecb | |
| parent | 67af127f243e5a3abcdf95f395b1029560a63ac1 (diff) | |
| download | rust-924c1ce97d33f75d6e9e92df1c523abdc7d90f02.tar.gz rust-924c1ce97d33f75d6e9e92df1c523abdc7d90f02.zip | |
Update lints after sync
| -rw-r--r-- | src/docs/arithmetic_side_effects.txt | 2 | ||||
| -rw-r--r-- | src/docs/similar_names.txt | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/docs/arithmetic_side_effects.txt b/src/docs/arithmetic_side_effects.txt index b8c0872522e..4ae8bce88ad 100644 --- a/src/docs/arithmetic_side_effects.txt +++ b/src/docs/arithmetic_side_effects.txt @@ -30,4 +30,4 @@ let _n = Decimal::MAX + Decimal::MAX; ``` ### Allowed types -Custom allowed types can be specified through the "arithmetic-side-effects-allowed" filter. +Custom allowed types can be specified through the "arithmetic-side-effects-allowed" filter. \ No newline at end of file diff --git a/src/docs/similar_names.txt b/src/docs/similar_names.txt index 13aca9c0bb7..f9eff21b679 100644 --- a/src/docs/similar_names.txt +++ b/src/docs/similar_names.txt @@ -1,6 +1,10 @@ ### What it does Checks for names that are very similar and thus confusing. +Note: this lint looks for similar names throughout each +scope. To allow it, you need to allow it on the scope +level, not on the name that is reported. + ### Why is this bad? It's hard to distinguish between names that differ only by a single character. |
