diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2021-02-04 17:36:06 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2021-02-21 16:34:37 -0800 |
| commit | d669882f386e26d214284fbe8f7696519b802778 (patch) | |
| tree | ed34cebfa34e64eced6e6f0bc9a572d99f169bb5 /library/std/src/sys/unix/stack_overflow.rs | |
| parent | 020edd91a911cebf8aeada9f04dff047dc76171e (diff) | |
| download | rust-d669882f386e26d214284fbe8f7696519b802778.tar.gz rust-d669882f386e26d214284fbe8f7696519b802778.zip | |
Do not suggest `;` if expression is side effect free
When a tail expression isn't unit, we previously always suggested adding a trailing `;` to turn it into a statement. This suggestion isn't appropriate for any expression that doesn't have side-effects, as the user will have likely wanted to call something else or do something with the resulting value, instead of just discarding it.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
