-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit f2231d5
authored
Rollup merge of #143228 - nnethercote:macro-stats-build-scripts, r=Kobzol
Handle build scripts better in `-Zmacro-stats` output.
Currently all build scripts are listed as `build_script_build` in the stats header. This commit uses `CARGO_PKG_NAME` to improve that.
I tried it on Bevy, it works well, giving output like this on the build script:
```
MACRO EXPANSION STATS: serde build script
```
and this on the crate itself:
```
MACRO EXPANSION STATS: serde
```
r? `@Kobzol`1 file changed
+11
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
298 | 298 |
| |
299 | 299 |
| |
300 | 300 |
| |
301 | + | ||
302 | + | ||
303 | + | ||
304 | + | ||
305 | + | ||
306 | + | ||
307 | + | ||
308 | + | ||
309 | + | ||
310 | + | ||
301 | 311 |
| |
302 | 312 |
| |
303 | 313 |
| |
| |||
327 | 337 |
| |
328 | 338 |
| |
329 | 339 |
| |
330 | - | ||
340 | + | ||
331 | 341 |
| |
332 | 342 |
| |
333 | 343 |
| |
|
0 commit comments