Fix invalid probe path
This commit is contained in:
parent
c11fe553df
commit
66057a7f72
1 changed files with 6 additions and 0 deletions
|
@ -962,6 +962,12 @@ impl<'a, 'gcx, 'tcx> ProbeContext<'a, 'gcx, 'tcx> {
|
||||||
for step in steps.iter() {
|
for step in steps.iter() {
|
||||||
match self.pick_step(step) {
|
match self.pick_step(step) {
|
||||||
Some(Ok(mut elems)) => ret.append(&mut elems),
|
Some(Ok(mut elems)) => ret.append(&mut elems),
|
||||||
|
Some(Err(elem)) => {
|
||||||
|
match self.looking_for {
|
||||||
|
LookingFor::MethodName(_) => return Some(Err(elem)),
|
||||||
|
LookingFor::ReturnType(_) => {}
|
||||||
|
}
|
||||||
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue