• D
    interp: needs_subst -> ensure_monomorphic_enough · 59e621c1
    David Wood 提交于
    This commit adds a `ensure_monomorphic_enough` utility function which
    checks whether a type needs substitution, but only for parameters
    that the `unused_generic_params` query considers used.
    
    `ensure_monomorphic_enough` is then used throughout interpret where
    `needs_subst` checks previously existed (in particular, for some
    pointer casts and for reflection intrinsics more precise).
    Signed-off-by: NDavid Wood <david@davidtw.co>
    59e621c1
cast.rs 14.8 KB