about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2020-10-24 14:12:01 +0200
committerGitHub <noreply@github.com>2020-10-24 14:12:01 +0200
commitd9acd7d148f9293f93c5e7d006f93a2265f04b7a (patch)
tree2407e7e968c747a46bc7ce0456166ac580e92738 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentfb92b70f95205f98a8f863cdf94734b9647ff20d (diff)
parent9202fbdbdbd60adb62839c3230738274e30f15fc (diff)
downloadrust-d9acd7d148f9293f93c5e7d006f93a2265f04b7a.tar.gz
rust-d9acd7d148f9293f93c5e7d006f93a2265f04b7a.zip
Rollup merge of #78109 - cuviper:exhausted-rangeinc, r=dtolnay
Check for exhaustion in RangeInclusive::contains and slicing

When a range has finished iteration, `is_empty` returns true, so it
should also be the case that `contains` returns false.

Fixes #77941.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions