rust/src/test/ui/polymorphization
bors 22e6099330 Auto merge of #74717 - davidtwco:issue-74636-polymorphized-closures-inherited-params, r=oli-obk
mir: add `used_generic_parameters_needs_subst`

Fixes #74636.

This PR adds a `used_generic_parameters_needs_subst` helper function which checks whether a type needs substitution, but only for parameters that the `unused_generic_params` query considers used. This is used in the MIR interpreter to make the check for some pointer casts and for reflection intrinsics more precise.

I've opened this as a draft PR because this might not be the approach we want to fix this issue and we have to decide what to do about the reflection case.

r? @eddyb
cc @lcnr @wesleywiser
2020-08-01 02:48:34 +00:00
..
const_parameters sess: disable polymorphisation 2020-07-22 15:36:24 +01:00
drop_shims sess: disable polymorphisation 2020-07-22 15:36:24 +01:00
type_parameters sess: disable polymorphisation 2020-07-22 15:36:24 +01:00
generators.rs sess: disable polymorphisation 2020-07-22 15:36:24 +01:00
generators.stderr sess: disable polymorphisation 2020-07-22 15:36:24 +01:00
issue-74636.rs interp: needs_subst -> ensure_monomorphic_enough 2020-07-31 16:36:42 +01:00
lifetimes.rs sess: disable polymorphisation 2020-07-22 15:36:24 +01:00
lifetimes.stderr sess: disable polymorphisation 2020-07-22 15:36:24 +01:00
normalized_sig_types.rs sess: disable polymorphisation 2020-07-22 15:36:24 +01:00
predicates.rs sess: disable polymorphisation 2020-07-22 15:36:24 +01:00
predicates.stderr sess: disable polymorphisation 2020-07-22 15:36:24 +01:00
promoted-function.rs polymorphize GlobalAlloc::Function 2020-07-22 17:02:58 +02:00
too-many-generic-params.rs index: introduce and use FiniteBitSet 2020-07-20 19:35:37 +01:00
unsized_cast.rs sess: disable polymorphisation 2020-07-22 15:36:24 +01:00
unsized_cast.stderr sess: disable polymorphisation 2020-07-22 15:36:24 +01:00