Previously, type aliases for Option<*const T> caused a panic, as deconstruct_hir_ty would match the HIR alias with the MIR type Option<T> and then get confused due to the mismatched number of type arguments. With this fix, deconstruct_hir_ty will no longer match the HIR alias with the MIR type as the two have different DefIds.
Previously, type aliases for
Option<*const T>
caused a panic, asdeconstruct_hir_ty
would match the HIR alias with the MIR typeOption<T>
and then get confused due to the mismatched number of type arguments. With this fix,deconstruct_hir_ty
will no longer match the HIR alias with the MIR type as the two have differentDefId
s.