about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-06-28 14:07:43 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-06-29 11:47:39 +1000
commit81436ebd55e3512282bb3954e8fb2a936f1ef495 (patch)
tree74ab2b7109bb0667921500b5a81cfd01b4258eae /compiler/rustc_codegen_gcc
parentd20b1a8f6ba8ea753726fd70ce0e525f3bccffb9 (diff)
downloadrust-81436ebd55e3512282bb3954e8fb2a936f1ef495.tar.gz
rust-81436ebd55e3512282bb3954e8fb2a936f1ef495.zip
Use `SmallVec` for the `bundles` vectors.
They never have a length of more than two. So this commit changes them
to `SmallVec<[_; 2]>`.

Also, we possibly push `None` values and then filter those `None` values
out again with `retain`. So this commit removes the `retain` and instead
only pushes the values if they are `Some(_)`.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions