mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
It's not about types or consts, but the lack of regions
This commit is contained in:
parent
9e8f53d09a
commit
da16cc1da9
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue