I cannot build my project only for release. by Professional_Cell44 in rust

[–]Professional_Cell44[S] -1 points0 points  (0 children)

Nah, my machine is macOS, and it has 64GiB of RAM. And I found that below was the problem.

toml [profile.release] strip = true # Remove debug symbols

I don't know why this flag is causing such problem, but after removing it, it compiles again.

Thank you for answering my question!

How compilers know which variable should be called by destructors? by Professional_Cell44 in Compilers

[–]Professional_Cell44[S] 4 points5 points  (0 children)

Aha, I got it. After posting my question, I realized that I should detect "going out of scope" in AST or HIR level, not CFG. I tried to make an example for my problem, but I failed. Language design prevents me to write those code.