1
Fork 0

Fix invalid probe path

This commit is contained in:
Guillaume Gomez 2016-10-30 18:25:45 +01:00
parent c11fe553df
commit 66057a7f72

View file

@ -962,6 +962,12 @@ impl<'a, 'gcx, 'tcx> ProbeContext<'a, 'gcx, 'tcx> {
for step in steps.iter() {
match self.pick_step(step) {
Some(Ok(mut elems)) => ret.append(&mut elems),
Some(Err(elem)) => {
match self.looking_for {
LookingFor::MethodName(_) => return Some(Err(elem)),
LookingFor::ReturnType(_) => {}
}
}
_ => {}
}
}