<div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I've got an embedded-with-rust ragel file which runs forever.</div><div><br></div><div>After some digging, I narrowed down the issue and seems that the static lifetime annotations in rust are the problem.</div><div><br></div><div>Apparently, codes like</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">fn some_fn() -> &'static str { "foo" }</blockquote><div>would cause an infinite-loop in ragel.</div><div><br></div><div>I'd like to provide a case if you guys couldn't repro the issue.</div><div><br></div><div>ref for static lifetimes in rust: <a href="https://doc.rust-lang.org/book/second-edition/ch10-03-lifetime-syntax.html#the-static-lifetime">https://doc.rust-lang.org/book/second-edition/ch10-03-lifetime-syntax.html#the-static-lifetime</a><br></div><div><div><br></div><div><div>Thanks!</div><div><br class="gmail-Apple-interchange-newline"></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div>Best regards,</div><div><br></div><div>Nami WANG<br><div><a href="mailto:namiheike@gmail.com" target="_blank">namiheike@gmail.com</a></div></div></div></div></div></div></div></div></div></div></div></div></div></div>