diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-04-11 14:22:09 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2025-04-11 16:03:48 +0200 |
| commit | 6fb7d53962623013ce9b4bae7318905a0e4e76ae (patch) | |
| tree | e3576ae31ea4f380805818f2e90c6bbd8a592905 /compiler/rustc_codegen_gcc/example/alloc_example.rs | |
| parent | ac4c69f423e70e18125c7aef892f4a1ac2b4a19a (diff) | |
| download | rust-6fb7d53962623013ce9b4bae7318905a0e4e76ae.tar.gz rust-6fb7d53962623013ce9b4bae7318905a0e4e76ae.zip | |
Check if dropping an expression may have indirect side-effects
It is not enough to check if an expression type implements `Drop` to determine whether it can have a significant side-effect. Also, add tests for unchecked cases which were explicitly handled in the code, such as checking for side effect in a `struct`'s fields, or in its base expression.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_example.rs')
0 files changed, 0 insertions, 0 deletions
