Skip to content

Commit 0f1b2fe

Browse files
authored
Rollup merge of #148405 - Kivooeo:static-span, r=JonathanBrouwer
Fix suggestion when there were a colon already in generics Finally found time to fix rust-lang/rust#144215 I don't feel like this `colon_flag` is perfect solution and that it can be refactored, but I'd say that this is pretty good as it, I was tried to refactor this a little, but the thing is the scope where `param.colon_span` lives is very limited, so there is not much time to check was there colon or not, I tried to rewrite this into more functional style to address this, but it becomes way more unreadable than this one or even less performant, maybe some comments could push readability of this fix further, maybe a comment for enum or `colon_flag`?
2 parents 3fac975 + a3c4843 commit 0f1b2fe

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)