Skip to content

Commit b6169c2

Browse files
committed
Add a fixme to remove hacks
1 parent a9676cf commit b6169c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/ide/src/inlay_hints/adjustment.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ fn needs_parens_for_adjustment_hints(expr: &ast::Expr, postfix: bool) -> (bool,
196196
// and "parent" is the parent of the original expression...
197197
//
198198
// For this we utilize mutable mutable trees, which is a HACK, but it works.
199+
//
200+
// FIXME: comeup with a better API for `needs_parens_in`, so that we don't have to do *this*
199201

200202
// Make `&expr`/`expr?`
201203
let dummy_expr = {

0 commit comments

Comments
 (0)