Skip to content

Commit ebfd39a

Browse files
authored
Rollup merge of #150477 - el-ev:issue150459, r=Urgau
Fix enum variant suggestion consuming trailing parenthesis - Closes rust-lang/rust#150459 Previously the logic incorrectly assumed the variant itself was the function being called when the parent node was a function all. This change adds a check to ensure the replacement span is only expanded if the path expression is actually the callee of the parent expression.
2 parents 041aa1d + 0267c0e commit ebfd39a

0 file changed

File tree

    0 commit comments

    Comments
     (0)