-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Closed
Copy link
Labels
A-diagnosticsdiagnostics / error reportingdiagnostics / error reportingC-featureCategory: feature requestCategory: feature requestE-has-instructionsIssue has some instructions and pointers to code to get startedIssue has some instructions and pointers to code to get startedS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
Description
Example:
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Id(pub i32);
pub fn path(next: &[Id], width: usize, u: Id, v: Id) -> Vec<Id> {
let mut u = u;
let mut path = vec![];
while u != v {
u = next[u.0 as usize * width + v.0 as usize];
path.push(u);
}
return<|> path;
}->
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct Id(pub i32);
pub fn path(next: &[Id], width: usize, u: Id, v: Id) -> Vec<Id> {
let mut u = u;
let mut path = vec![];
while u != v {
u = next[u.0 as usize * width + v.0 as usize];
path.push(u);
}
<|>path
}(not actually too sure where to put the cursor)
If this does get picked up at some point: edge-case warning: the trailing semi might not exist.
I'd honestly be interested in doing this myself
Metadata
Metadata
Assignees
Labels
A-diagnosticsdiagnostics / error reportingdiagnostics / error reportingC-featureCategory: feature requestCategory: feature requestE-has-instructionsIssue has some instructions and pointers to code to get startedIssue has some instructions and pointers to code to get startedS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now