7f8ff84b51
polymorphization: various improvements This PR includes a handful of polymorphisation-related changes: - @Mark-Simulacrum's suggestions [from this comment](https://github.com/rust-lang/rust/pull/74633#issuecomment-668684433): - Use a `FiniteBitSet<u32>` over a `FiniteBitSet<u64>` as most functions won't have 64 generic parameters. - Don't encode polymorphisation results in metadata when every parameter is used (in this case, just invoking polymorphisation will probably be quicker). - @lcnr's suggestion [from this comment](https://github.com/rust-lang/rust/pull/74717#discussion_r463690015). - Add an debug assertion in `ensure_monomorphic_enough` to make sure that polymorphisation did what we expect. r? @lcnr |
||
---|---|---|
.. | ||
intrinsics | ||
cast.rs | ||
eval_context.rs | ||
intern.rs | ||
intrinsics.rs | ||
machine.rs | ||
memory.rs | ||
mod.rs | ||
operand.rs | ||
operator.rs | ||
place.rs | ||
step.rs | ||
terminator.rs | ||
traits.rs | ||
util.rs | ||
validity.rs | ||
visitor.rs |