1
Fork 0
rust/compiler/rustc_codegen_ssa/src/traits
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
..
abi.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
asm.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
backend.rs PR feedback 2020-09-17 12:18:09 +02:00
builder.rs Remove TrustedLen requirement from BuilderMethods::switch 2020-09-24 19:10:34 +02:00
consts.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
coverageinfo.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
debuginfo.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
declare.rs Remove DeclareMethods 2020-09-18 13:11:59 +02:00
intrinsic.rs Correct file path after some restructures in compiler 2020-09-20 13:48:16 +00:00
misc.rs Remove DeclareMethods 2020-09-18 13:11:59 +02:00
mod.rs Remove DeclareMethods 2020-09-18 13:11:59 +02:00
statics.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
type_.rs Change ty.kind to a method 2020-09-04 17:47:51 +02:00
write.rs Add -Z combine_cgu flag 2020-09-09 17:32:23 +10:00