about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2023-01-09 13:37:37 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2023-01-09 13:37:37 +0000
commitb6169c2a2e5a24e9905a2614e6fe469fb37f50c9 (patch)
tree0ea8bdc2dcf932aa229315ef82aaf1c49d2ed8a1
parenta9676cfbe3f81515483fb563f20c74e27cfa7c41 (diff)
downloadrust-b6169c2a2e5a24e9905a2614e6fe469fb37f50c9.tar.gz
rust-b6169c2a2e5a24e9905a2614e6fe469fb37f50c9.zip
Add a fixme to remove hacks
-rw-r--r--crates/ide/src/inlay_hints/adjustment.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ide/src/inlay_hints/adjustment.rs b/crates/ide/src/inlay_hints/adjustment.rs
index 9f6984b59e9..bdd7c05e008 100644
--- a/crates/ide/src/inlay_hints/adjustment.rs
+++ b/crates/ide/src/inlay_hints/adjustment.rs
@@ -196,6 +196,8 @@ fn needs_parens_for_adjustment_hints(expr: &ast::Expr, postfix: bool) -> (bool,
     // and "parent" is the parent of the original expression...
     //
     // For this we utilize mutable mutable trees, which is a HACK, but it works.
+    //
+    // FIXME: comeup with a better API for `needs_parens_in`, so that we don't have to do *this*
 
     // Make `&expr`/`expr?`
     let dummy_expr = {