Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

Inlay hints is giving wrong hints for recursive functions #420

Open
@SeanningTatum

Description

@SeanningTatum

Problem

Inlay hints is not giving proper hints for recursive functions

Actual

fn quick_sort(array: &mut Vec<i64>, low: usize, high: usize)  {
        let pivot = partition(array, low, high); => usize
        quick_sort(array, low, pivot.checked_sub(1).unwrap_or(0)); <- (high, default)
        quick_sort(array, pivot + 1, high); <- (low)
}

Expected

fn quick_sort(array: &mut Vec<i64>, low: usize, high: usize)  {
        let pivot = partition(array, low, high); => usize
        quick_sort(array, low, pivot.checked_sub(1).unwrap_or(0)); <- (array, low, high)
        quick_sort(array, pivot + 1, high); <- (array, low, high)
}

Attachments

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions