[ragel-users] rust's static lifetime annotation breaks ragel

Nami WANG namiheike at gmail.com
Wed Dec 5 21:45:47 UTC 2018


Hi,

I've got an embedded-with-rust ragel file which runs forever.

After some digging, I narrowed down the issue and seems that the static
lifetime annotations in rust are the problem.

Apparently, codes like

> fn some_fn() -> &'static str { "foo" }

would cause an infinite-loop in ragel.

I'd like to provide a case if you guys couldn't repro the issue.

ref for static lifetimes in rust:
https://doc.rust-lang.org/book/second-edition/ch10-03-lifetime-syntax.html#the-static-lifetime

Thanks!

-- 
Best regards,

Nami WANG
namiheike at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20181206/33e9344e/attachment.html>


More information about the ragel-users mailing list