少なくともMIRの時点ではunreachableに置換されるらしい(古いコンパイラでの挙動は違うかもしれないが) https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=df534b004dd85e17c0544b47d99c3372 …
-
-
Show this thread
-
・match *x {} が unreachable に置換される ・xは未使用変数になるので最適化で除去される
Show this thread
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.