about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorMorten Lohne <lohnemorten@gmail.com>2023-08-10 01:14:19 +0200
committerMorten Lohne <lohnemorten@gmail.com>2023-08-10 02:26:11 +0200
commit75d5f107ddbac9e0872f1551e70dfbf5d441f3e0 (patch)
tree5852900623a156c606969f65ec39d31a169e8e50 /compiler/rustc_codegen_gcc
parent27a43f083480a3a2a02a544a8ab6030aaab73a53 (diff)
downloadrust-75d5f107ddbac9e0872f1551e70dfbf5d441f3e0.tar.gz
rust-75d5f107ddbac9e0872f1551e70dfbf5d441f3e0.zip
Bugfix: 'can_have_side_effects()' would return 'false' for struct/enum/array/tuple literals unless *all* sub-expressions had side effects. This would easily allow side effects to slip through, and also wrongly label empty literals as having side effects. Add some tests for the last point
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions