It's not about types or consts, but the lack of regions
This commit is contained in:
parent
9e8f53d09a
commit
da16cc1da9
@ -1238,7 +1238,7 @@ fn ty_auto_deref_stability<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>, precedenc
|
|||||||
ty::Adt(..) if ty.has_placeholders() || ty.has_opaque_types() => {
|
ty::Adt(..) if ty.has_placeholders() || ty.has_opaque_types() => {
|
||||||
Position::ReborrowStable(precedence).into()
|
Position::ReborrowStable(precedence).into()
|
||||||
},
|
},
|
||||||
ty::Adt(_, substs) if substs.has_param_types_or_consts() => {
|
ty::Adt(_, substs) if substs.has_non_region_param() => {
|
||||||
TyPosition::new_deref_stable_for_result(precedence, ty)
|
TyPosition::new_deref_stable_for_result(precedence, ty)
|
||||||
},
|
},
|
||||||
ty::Bool
|
ty::Bool
|
||||||
|
Loading…
Reference in New Issue
Block a user