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

Adrian Thurston thurston at colm.net
Fri Dec 14 08:23:08 UTC 2018


 

Hi Nami, yes not able to figure out this issue. Could you please provide
a stripped-down example? 

Thanks,
 Adrian 

On 2018-12-06 04:45, Nami WANG wrote: 

> 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 [2] 
> 
> Thanks! 
> -- 
> 
> Best regards, 
> 
> Nami WANG
> 
> namiheike at gmail.com 
> 
> _______________________________________________
> ragel-users mailing list
> ragel-users at colm.net
> http://www.colm.net/cgi-bin/mailman/listinfo/ragel-users [1]
 

Links:
------
[1] http://www.colm.net/cgi-bin/mailman/listinfo/ragel-users
[2]
https://doc.rust-lang.org/book/second-edition/ch10-03-lifetime-syntax.html#the-static-lifetime
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20181214/8647e037/attachment.html>


More information about the ragel-users mailing list