This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit d34c4ca
authored
Rollup merge of rust-lang#98668 - TaKO8Ki:avoid-many-&str-to-string-conversions, r=Dylan-DPC
Avoid some `&str` to `String` conversions with `MultiSpan::push_span_label`
This patch removes some`&str` to `String` conversions with `MultiSpan::push_span_label`.File tree
17 files changed
+38
-66
lines changed- compiler
- rustc_expand/src
- rustc_infer/src
- infer/error_reporting/nice_region_error
- traits/error_reporting
- rustc_mir_build/src/thir/pattern
- rustc_parse/src/parser
- rustc_passes/src
- rustc_resolve/src
- late
- rustc_trait_selection/src/traits/error_reporting
- rustc_typeck/src
- astconv
- check
- fn_ctxt
- method
- structured_errors
17 files changed
+38
-66
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
Lines changed: 6 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 197 | + | |
201 | 198 | | |
202 | 199 | | |
203 | 200 | | |
204 | 201 | | |
205 | 202 | | |
206 | 203 | | |
207 | 204 | | |
208 | | - | |
| 205 | + | |
209 | 206 | | |
210 | 207 | | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
| 208 | + | |
215 | 209 | | |
216 | 210 | | |
217 | 211 | | |
| |||
523 | 517 | | |
524 | 518 | | |
525 | 519 | | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
| 520 | + | |
| 521 | + | |
530 | 522 | | |
531 | 523 | | |
532 | | - | |
| 524 | + | |
533 | 525 | | |
534 | 526 | | |
535 | 527 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 131 | + | |
| 132 | + | |
135 | 133 | | |
136 | 134 | | |
137 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
| 88 | + | |
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
950 | | - | |
| 950 | + | |
951 | 951 | | |
952 | 952 | | |
953 | 953 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
891 | 891 | | |
892 | 892 | | |
893 | 893 | | |
894 | | - | |
| 894 | + | |
895 | 895 | | |
896 | 896 | | |
897 | 897 | | |
898 | | - | |
| 898 | + | |
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
902 | 902 | | |
903 | | - | |
904 | | - | |
905 | | - | |
906 | | - | |
| 903 | + | |
907 | 904 | | |
908 | 905 | | |
909 | | - | |
| 906 | + | |
910 | 907 | | |
911 | 908 | | |
912 | 909 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
857 | 857 | | |
858 | 858 | | |
859 | 859 | | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | | - | |
| 860 | + | |
| 861 | + | |
865 | 862 | | |
866 | 863 | | |
867 | 864 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2561 | 2561 | | |
2562 | 2562 | | |
2563 | 2563 | | |
2564 | | - | |
| 2564 | + | |
2565 | 2565 | | |
2566 | 2566 | | |
2567 | 2567 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
| 604 | + | |
| 605 | + | |
608 | 606 | | |
609 | 607 | | |
610 | 608 | | |
| |||
1227 | 1225 | | |
1228 | 1226 | | |
1229 | 1227 | | |
1230 | | - | |
| 1228 | + | |
1231 | 1229 | | |
1232 | 1230 | | |
1233 | 1231 | | |
1234 | 1232 | | |
1235 | 1233 | | |
1236 | 1234 | | |
1237 | | - | |
1238 | | - | |
1239 | | - | |
1240 | | - | |
| 1235 | + | |
1241 | 1236 | | |
1242 | 1237 | | |
1243 | 1238 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2204 | 2204 | | |
2205 | 2205 | | |
2206 | 2206 | | |
2207 | | - | |
2208 | | - | |
| 2207 | + | |
2209 | 2208 | | |
2210 | 2209 | | |
2211 | 2210 | | |
| |||
0 commit comments