diff options
| author | Camelid <camelidcamel@gmail.com> | 2021-03-03 20:04:27 -0800 |
|---|---|---|
| committer | Camelid <camelidcamel@gmail.com> | 2021-03-03 20:07:15 -0800 |
| commit | c79af862401465a7241e6920ba31f34adafa44fd (patch) | |
| tree | 453fa0178564f71886bd3a942cc7c6e42ae868c4 /compiler/rustc_mir/src | |
| parent | 939b14334dfec68d85b01b62c1be0172cee03339 (diff) | |
| download | rust-c79af862401465a7241e6920ba31f34adafa44fd.tar.gz rust-c79af862401465a7241e6920ba31f34adafa44fd.zip | |
Pass `CrateNum` by value instead of by reference
It's more idiomatic to pass a small Copy type by value and `CrateNum` is half the size of `&CrateNum` on 64-bit systems. The memory use change is almost certainly insignificant, but why not!
Diffstat (limited to 'compiler/rustc_mir/src')
0 files changed, 0 insertions, 0 deletions
