about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-08-28 10:42:11 +0000
committerbors <bors@rust-lang.org>2017-08-28 10:42:11 +0000
commit5caca6fa0213cadca1584db43dd71fb5f82b41b9 (patch)
tree829208be36495621f723ebc1555c6b104c5375d6 /src/rustllvm/PassWrapper.cpp
parenta0c3bd2d23f6d08ecf9b4191ee4fff5866a120d1 (diff)
parentf1b91f4037dc4b3e70912e5a5082be969ddd8e75 (diff)
downloadrust-5caca6fa0213cadca1584db43dd71fb5f82b41b9.tar.gz
rust-5caca6fa0213cadca1584db43dd71fb5f82b41b9.zip
Auto merge of #44114 - daboross:patch-1, r=dtolnay
Clarify that VecDeque::swap can panic

The previous documentation mentioned this, but ambiguously used the term "fail".

This clarifies that the function will panic if the index is out of bounds, instead of silently failing and not doing anything.

If there's anything else I can do to improve this PR, I'd be happy to do so! Just saw this when reading through the docs in passing - it was slightly unclear what "fail" meant.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions