@eddyb noticed these cases:
pub fn foo(x: bool) { // WARN function cannot return without recurring
if x {
foo(x);
} else {
loop {}
}
}
Try It
pub fn foo(x: bool) { // WARN function cannot return without recursing
if x {
foo(!x);
} else {
panic!("foo");
}
}
Try It
@eddyb thinks the way to resolve this is to reimplement the lint on top of the dataflow analysis stuff.
https://discordapp.com/channels/442252698964721669/443151243398086667/492702651759329280
@eddyb noticed these cases:
Try It
Try It
@eddyb thinks the way to resolve this is to reimplement the lint on top of the
dataflowanalysis stuff.https://discordapp.com/channels/442252698964721669/443151243398086667/492702651759329280