Open SeanningTatum opened 11 months ago
Inlay hints is not giving proper hints for recursive functions
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) }
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) }
This looks like a rust_analyzer bug.
Maybe related to https://github.com/rust-lang/rust-analyzer/issues/15167?
Problem
Inlay hints is not giving proper hints for recursive functions
Actual
Expected
Attachments