rust-lang / rust-lang/rust-mode

imenu expression does not pick up async functions

Open
#396 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Emacs Lisp
Stars
1.3k
Forks
198
PR merge metrics
No merged PRs in 30d

Description

Hi and thank you for rust mode! It works very well for the most part.

I was looking for a function with imenu the other day and realized it was not in the list because it was an async fn.

I thought I had a solution until i realized the regex used to construct the imenu expression is calculated.

I will look into a solution.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the calculated regex used to build the imenu expression and compare its matching against async fn declarations. Done means async functions appear in imenu without regressing existing function entries; the issue names no file or test, so the implementation and validation points must first be located in rust-mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
emacs-lisp, rust
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.