Skip to content

feat: inlay hints on try-expr - #22981

Open
A4-Tacks wants to merge 1 commit into
rust-lang:masterfrom
A4-Tacks:try-expr-hints
Open

feat: inlay hints on try-expr#22981
A4-Tacks wants to merge 1 commit into
rust-lang:masterfrom
A4-Tacks:try-expr-hints

Conversation

@A4-Tacks

@A4-Tacks A4-Tacks commented Aug 1, 2026

Copy link
Copy Markdown
Member

Show try-expr inlay hints (e.g foo()?; -> foo().try?;).

Similar to inlay_hints/range_exclusive.rs

Some people complain that the ? operation in Rust is not obvious and is easily overlooked when reading the code

Although I do not agree with this viewpoint, I have opened a PR

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 1, 2026
Show try-expr inlay hints (e.g `foo()?;` -> `foo().try?;`).

Similar to `inlay_hints/range_exclusive.rs`

Some people complain that the `?` operation in Rust is not obvious and is easily overlooked when reading the code

Although I do not agree with this viewpoint, I have opened a PR
@Veykril

Veykril commented Aug 8, 2026

Copy link
Copy Markdown
Member

Some people complain that the ? operation in Rust is not obvious and is easily overlooked when reading the code

I feel like this is better served by those folks adjusting their syntax highlighting then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants