-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit 337be99
authored
Rollup merge of #120144 - petrochenkov:unty, r=davidtwco
privacy: Stabilize lint `unnameable_types`
This is the last piece of ["RFC #2145: Type privacy and private-in-public lints"](#48054).
Having unstable lints is not very useful because you cannot even dogfood them in the compiler/stdlib in this case (#113284).
The worst thing that may happen when a lint is removed are some `removed_lints` warnings, but I haven't heard anyone suggesting removing this specific lint.
This lint is allow-by-default and is supposed to be enabled explicitly.
Some false positives are expected, because sometimes unnameable types are a legitimate pattern.
This lint also have some unnecessary false positives, that can be fixed - see #120146 and #120149.
Closes #48054.File tree
8 files changed
+14
-29
lines changed- compiler
- rustc_feature/src
- rustc_lint_defs/src
- rustc_lint/src
- tests/ui
- feature-gates
- privacy
8 files changed
+14
-29
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
355 | 355 |
| |
356 | 356 |
| |
357 | 357 |
| |
358 | + | ||
359 | + | ||
358 | 360 |
| |
359 | 361 |
| |
360 | 362 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
615 | 615 |
| |
616 | 616 |
| |
617 | 617 |
| |
618 | - | ||
619 | - | ||
620 | 618 |
| |
621 | 619 |
| |
622 | 620 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1337 | 1337 |
| |
1338 | 1338 |
| |
1339 | 1339 |
| |
1340 | - | ||
1341 | - | ||
1340 | + | ||
1341 | + | ||
1342 | + | ||
1342 | 1343 |
| |
1343 | 1344 |
| |
1344 | 1345 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4311 | 4311 |
| |
4312 | 4312 |
| |
4313 | 4313 |
| |
4314 | - | ||
4315 | 4314 |
| |
4316 | 4315 |
| |
4317 | 4316 |
| |
| |||
4328 | 4327 |
| |
4329 | 4328 |
| |
4330 | 4329 |
| |
4330 | + | ||
4331 | + | ||
4332 | + | ||
4333 | + | ||
4334 | + | ||
4331 | 4335 |
| |
4332 | 4336 |
| |
4333 | 4337 |
| |
4334 | - | ||
4335 | 4338 |
| |
4336 | 4339 |
| |
4337 | 4340 |
| |
|
Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 0 additions & 14 deletions
This file was deleted.
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | - | ||
2 | 1 |
| |
3 | 2 |
| |
4 | 3 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | - | ||
2 | + | ||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 | - | ||
8 | + | ||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | - | ||
14 | + | ||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 | - | ||
20 | + | ||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
|
0 commit comments