Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: incorrect file_id used for ranges in outgoing calls #18802

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

roife
Copy link
Member

@roife roife commented Dec 31, 2024

fix #18800

#[derive(Debug, Clone)]
pub struct CallItem {
pub target: NavigationTarget,
pub ranges: Vec<FileRange>,
}

Here target refers to the definition of the fn which is called, while ranges indicates the location of the call site.

For example:

fn f() {
    g(); // ranges[0]
}

// another file
fn g() {} // target

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 31, 2024
@Veykril Veykril added this pull request to the merge queue Dec 31, 2024
Merged via the queue into rust-lang:master with commit c86dd17 Dec 31, 2024
9 checks passed
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.

thread 'Worker' panicked with invalid offset when show outgoing call
3 participants