about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src
diff options
context:
space:
mode:
authorThe8472 <git@infinite-source.de>2020-09-03 22:15:47 +0200
committerThe8472 <git@infinite-source.de>2020-09-03 22:15:47 +0200
commit2f23a0fccad2f4d85d2ec923f0ac40b4b42211a8 (patch)
tree1a29a504c97885e651353f41d4b3f0fa5aac5719 /compiler/rustc_data_structures/src
parent8e5fe5569b5ffd59f57e0dab4380ba04b063330e (diff)
downloadrust-2f23a0fccad2f4d85d2ec923f0ac40b4b42211a8.tar.gz
rust-2f23a0fccad2f4d85d2ec923f0ac40b4b42211a8.zip
fix debug assertion
The InPlaceIterable debug assert checks that the write pointer
did not advance beyond the read pointer. But TrustedRandomAccess
never advances the read pointer, thus triggering the assert.
Skip the assert if the source pointer did not change during iteration.
Diffstat (limited to 'compiler/rustc_data_structures/src')
0 files changed, 0 insertions, 0 deletions