cleanup borrowck, improve c-variadic handling - #160504
Conversation
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
cleanup borrowck, improve c-variadic handling
This comment has been minimized.
This comment has been minimized.
| DefiningTy::Const(body_def_id.to_def_id(), args) | ||
| } | ||
| } | ||
| BodyOwnerKind::Const { inline: true } => { |
There was a problem hiding this comment.
The commit message could say that inline is already set exactly by checking the above match arm guard
| /// The bound variables for a given defining type. This differs from their usual bound vars | ||
| /// in that closures and coroutine closures have an additional `'env`, while C-variadic | ||
| /// functions have an additional region for their implicit `VaList` input. |
There was a problem hiding this comment.
why don't we generally give them those bound vars earlier?
|
Reminder, once the PR becomes ready for a review, use |
|
Finished benchmarking commit (e60c57e): comparison URL. Overall result: ❌ regressions - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 0.6%, secondary -0.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -0.1%, secondary -0.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 489.838s -> 488.617s (-0.25%) |
The first commits of #160491. Hopefully all of them make sense.
It feels intuitive to me that the
c-variadicregion should be just another late-bound region and tracking region correctly for #160491 is otherwise a mess.r? types