rust-lang / rust-mode

Emacs configuration for Rust
Apache License 2.0
1.1k stars 176 forks source link

`rust-beginning-of-defun` fails #416

Closed tko closed 3 months ago

tko commented 2 years ago
#[test]
fn it_works() {
    use super::*;
    assert!(false);
}

when cursor is anywhere after the use rust-beginning-of-defun fails with Search failed: "fn "

psibi commented 5 months ago

Can you check if this works with tree sitter: https://github.com/rust-lang/rust-mode?tab=readme-ov-file#tree-sitter

From my testing, it seems to work for me there.

psibi commented 3 months ago

I'm closing this issue for now as I haven't been able to reproduce it recently using tree sitter and haven't heard back. Please feel free to reopen it if you encounter the issue again in the future.