about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2020-09-24 19:10:34 +0200
committerest31 <MTest31@outlook.com>2020-09-24 19:10:34 +0200
commit12ada5cf4bebabd7dc240a3a993eaebbdf2ed3d3 (patch)
tree020abefeac2912f6a80bd110f96d7a5bb045701e /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent893fadd11a52aa26fc19c67ee1b79f03d6a1bed3 (diff)
downloadrust-12ada5cf4bebabd7dc240a3a993eaebbdf2ed3d3.tar.gz
rust-12ada5cf4bebabd7dc240a3a993eaebbdf2ed3d3.zip
Remove TrustedLen requirement from BuilderMethods::switch
The main use case of TrustedLen is allowing APIs to specialize on it,
but no use of it uses that specialization. Instead, only the .len()
function provided by ExactSizeIterator is used, which is already
required to be accurate.

Thus, the TrustedLen requirement on BuilderMethods::switch is redundant.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions