This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 852e08e
authored
Rollup merge of rust-lang#130282 - compiler-errors:over-overflow, r=BoxyUwU
Do not report an excessive number of overflow errors for an ever-growing deref impl
Check that we don't first hit the recursion limit in `get_field_candidates_considering_privacy` before probing for methods when we have a method lookup failure and we want to see if `.field.method()` exists. We also silence overflow error messages if we're probing for methods for diagnostics.
Also renames some functions to make it clearer that they're only for diagnostics, and sprinkle some `Autoderef::silence_errors` around to silence unnecessary overflow errors that come from diagnostics.
Fixes rust-lang#130224.File tree
7 files changed
+99
-39
lines changed- compiler/rustc_hir_typeck/src
- method
- tests/ui/methods
7 files changed
+99
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1049 | 1049 | | |
1050 | 1050 | | |
1051 | 1051 | | |
1052 | | - | |
| 1052 | + | |
1053 | 1053 | | |
1054 | 1054 | | |
1055 | 1055 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2864 | 2864 | | |
2865 | 2865 | | |
2866 | 2866 | | |
2867 | | - | |
| 2867 | + | |
2868 | 2868 | | |
2869 | 2869 | | |
2870 | 2870 | | |
2871 | 2871 | | |
2872 | 2872 | | |
2873 | | - | |
| 2873 | + | |
2874 | 2874 | | |
2875 | 2875 | | |
2876 | 2876 | | |
| |||
2933 | 2933 | | |
2934 | 2934 | | |
2935 | 2935 | | |
2936 | | - | |
| 2936 | + | |
2937 | 2937 | | |
2938 | 2938 | | |
2939 | 2939 | | |
| |||
2942 | 2942 | | |
2943 | 2943 | | |
2944 | 2944 | | |
2945 | | - | |
| 2945 | + | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
| 2952 | + | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
2946 | 2957 | | |
2947 | 2958 | | |
2948 | 2959 | | |
| |||
2975 | 2986 | | |
2976 | 2987 | | |
2977 | 2988 | | |
2978 | | - | |
| 2989 | + | |
2979 | 2990 | | |
2980 | 2991 | | |
2981 | 2992 | | |
| |||
3000 | 3011 | | |
3001 | 3012 | | |
3002 | 3013 | | |
3003 | | - | |
3004 | | - | |
| 3014 | + | |
| 3015 | + | |
| 3016 | + | |
| 3017 | + | |
3005 | 3018 | | |
3006 | 3019 | | |
3007 | 3020 | | |
3008 | | - | |
3009 | | - | |
3010 | | - | |
3011 | | - | |
3012 | | - | |
3013 | | - | |
3014 | | - | |
3015 | | - | |
3016 | | - | |
| 3021 | + | |
| 3022 | + | |
| 3023 | + | |
| 3024 | + | |
| 3025 | + | |
| 3026 | + | |
| 3027 | + | |
| 3028 | + | |
| 3029 | + | |
| 3030 | + | |
| 3031 | + | |
3017 | 3032 | | |
3018 | 3033 | | |
3019 | 3034 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
672 | 674 | | |
673 | 675 | | |
674 | 676 | | |
675 | | - | |
| 677 | + | |
676 | 678 | | |
677 | 679 | | |
678 | 680 | | |
| |||
2237 | 2239 | | |
2238 | 2240 | | |
2239 | 2241 | | |
| 2242 | + | |
2240 | 2243 | | |
2241 | 2244 | | |
2242 | 2245 | | |
| |||
2352 | 2355 | | |
2353 | 2356 | | |
2354 | 2357 | | |
2355 | | - | |
2356 | | - | |
2357 | | - | |
2358 | | - | |
2359 | | - | |
2360 | | - | |
2361 | | - | |
2362 | | - | |
2363 | | - | |
2364 | | - | |
2365 | | - | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
2366 | 2370 | | |
2367 | 2371 | | |
2368 | 2372 | | |
| |||
2675 | 2679 | | |
2676 | 2680 | | |
2677 | 2681 | | |
2678 | | - | |
2679 | | - | |
2680 | | - | |
| 2682 | + | |
| 2683 | + | |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
2681 | 2688 | | |
2682 | 2689 | | |
2683 | 2690 | | |
| |||
2693 | 2700 | | |
2694 | 2701 | | |
2695 | 2702 | | |
2696 | | - | |
| 2703 | + | |
2697 | 2704 | | |
2698 | 2705 | | |
2699 | 2706 | | |
| |||
3195 | 3202 | | |
3196 | 3203 | | |
3197 | 3204 | | |
3198 | | - | |
| 3205 | + | |
3199 | 3206 | | |
3200 | 3207 | | |
3201 | 3208 | | |
| |||
4221 | 4228 | | |
4222 | 4229 | | |
4223 | 4230 | | |
4224 | | - | |
| 4231 | + | |
4225 | 4232 | | |
4226 | 4233 | | |
4227 | 4234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2533 | 2533 | | |
2534 | 2534 | | |
2535 | 2535 | | |
| 2536 | + | |
2536 | 2537 | | |
2537 | 2538 | | |
2538 | 2539 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments