Commit ebfd39a
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.0 file changed
0 commit comments