rust/compiler/rustc_codegen_ssa
Ralf Jung 7c47b1e5f4
Rollup merge of #77161 - est31:swich_len_already_trusted, r=petrochenkov
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.
2020-09-26 12:58:24 +02:00
..
src Rollup merge of #77161 - est31:swich_len_already_trusted, r=petrochenkov 2020-09-26 12:58:24 +02:00
Cargo.toml mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
README.md mv compiler to compiler/ 2020-08-30 18:45:07 +03:00

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.