File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -658,12 +658,17 @@ impl<'hir> Generics<'hir> {
658658 && segment. args ( ) . parenthesized == GenericArgsParentheses :: ParenSugar
659659 && let [ binding] = segment. args ( ) . bindings
660660 && let TypeBindingKind :: Equality { term : Term :: Ty ( ret_ty) } = binding. kind
661- && let TyKind :: TraitObject ( _, _, TraitObjectSyntax :: Dyn | TraitObjectSyntax :: DynStar ) = ret_ty. kind
662- && ret_ty. span . can_be_used_for_suggestions ( ) {
663- Some ( ret_ty. span )
664- } else {
665- None
666- } ;
661+ && let TyKind :: TraitObject (
662+ _,
663+ _,
664+ TraitObjectSyntax :: Dyn | TraitObjectSyntax :: DynStar ,
665+ ) = ret_ty. kind
666+ && ret_ty. span . can_be_used_for_suggestions ( )
667+ {
668+ Some ( ret_ty. span )
669+ } else {
670+ None
671+ } ;
667672
668673 span_for_parentheses. map_or_else (
669674 || {
You can’t perform that action at this time.
0 commit comments