mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +00:00
Apply nits
This commit is contained in:
parent
760fbdf64e
commit
2701a4175f
1 changed files with 3 additions and 3 deletions
|
@ -320,11 +320,11 @@ fn is_mixed_projection_predicate<'tcx>(
|
||||||
&& (term_param_ty.index as usize) < generics.parent_count
|
&& (term_param_ty.index as usize) < generics.parent_count
|
||||||
{
|
{
|
||||||
// The inner-most self type is a type parameter from the current function.
|
// The inner-most self type is a type parameter from the current function.
|
||||||
let mut projection_ty = projection_predicate.projection_term;
|
let mut projection_term = projection_predicate.projection_term;
|
||||||
loop {
|
loop {
|
||||||
match *projection_ty.self_ty().kind() {
|
match *projection_term.self_ty().kind() {
|
||||||
ty::Alias(ty::Projection, inner_projection_ty) => {
|
ty::Alias(ty::Projection, inner_projection_ty) => {
|
||||||
projection_ty = inner_projection_ty.into();
|
projection_term = inner_projection_ty.into();
|
||||||
},
|
},
|
||||||
ty::Param(param_ty) => {
|
ty::Param(param_ty) => {
|
||||||
return (param_ty.index as usize) >= generics.parent_count;
|
return (param_ty.index as usize) >= generics.parent_count;
|
||||||
|
|
Loading…
Add table
Reference in a new issue