Commit 64165aa
committed
Auto merge of rust-lang#108476 - saethlin:remove-library-rustc-box, r=thomcc
Remove or document uses of #[rustc_box] in library
r? `@thomcc`
Only one of these uses is tested for in the rustc-perf benchmark suite. The impact there on compile time is somewhat dramatic, but I am inclined to make this change as a simplification to the library and wait for people to complain if it explodes their compilation time. I think in the absence of data or reports from users about what code paths really matter, if we are optimizing for compilation time, it's hard to argue against using `#[rustc_box]` everywhere we currently call `Box::new`.3 files changed
+7
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
287 | | - | |
288 | | - | |
| 286 | + | |
289 | 287 | | |
290 | 288 | | |
291 | 289 | | |
| |||
1242 | 1240 | | |
1243 | 1241 | | |
1244 | 1242 | | |
| 1243 | + | |
1245 | 1244 | | |
1246 | | - | |
1247 | 1245 | | |
1248 | 1246 | | |
1249 | 1247 | | |
| |||
1252 | 1250 | | |
1253 | 1251 | | |
1254 | 1252 | | |
| 1253 | + | |
1255 | 1254 | | |
1256 | 1255 | | |
1257 | 1256 | | |
| |||
1262 | 1261 | | |
1263 | 1262 | | |
1264 | 1263 | | |
| 1264 | + | |
1265 | 1265 | | |
1266 | 1266 | | |
1267 | 1267 | | |
| |||
1616 | 1616 | | |
1617 | 1617 | | |
1618 | 1618 | | |
1619 | | - | |
1620 | 1619 | | |
1621 | 1620 | | |
1622 | 1621 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3131 | 3131 | | |
3132 | 3132 | | |
3133 | 3133 | | |
3134 | | - | |
3135 | | - | |
3136 | | - | |
3137 | | - | |
| 3134 | + | |
3138 | 3135 | | |
3139 | 3136 | | |
3140 | 3137 | | |
| |||
0 commit comments