Update UnresolvedSet to use (and expose) SmallVector::truncate() instead
of SmallVector::set_size(). The latter is going to made private in a
future commit to avoid misuse.
Currently depends on https://reviews.llvm.org/D115383. It seems to improve readability to use truncate() instead of resize() (known to shrink the size), and it keeps an assertion in place (not sure of value?) that this doesn't grow. I can't imagine the former's performance characteristics are important here, so I could be convinced to just use resize()...
Blocker for https://reviews.llvm.org/D115380.
Two things to confirm here.
First is that the destructors are trivial. From clang/include/clang/AST/DeclAccessPair.h:
(If they hadn't been trivial, then hypothetically there could been other code somewhere that ran the destructors later...)
Second is that set_size() was only used for truncation. I confirmed that that three ways: