You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you define a macro which contains the rule $()* the compiler seems to go into an infinite loop and quickly consume a lot of memory
When compiling the following code:
macro_rules! test {($()*) => {}}pubfnmain(){test!();}
The compiler freezes and starts consuming memory until it runs out at which point it seems to crash.
Using the above test code, I got this error message but when I encountered this bug in a bigger project, my computer froze for about 1 minute after which the operating system killed the compiler.
fatal runtime error: out of memory
zsh: illegal hardware instruction (core dumped) rustc test.rs
If you define a macro which contains the rule
$()*
the compiler seems to go into an infinite loop and quickly consume a lot of memoryWhen compiling the following code:
The compiler freezes and starts consuming memory until it runs out at which point it seems to crash.
Using the above test code, I got this error message but when I encountered this bug in a bigger project, my computer froze for about 1 minute after which the operating system killed the compiler.
This is the output of rustc --version --verbose
The text was updated successfully, but these errors were encountered: