about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/full-path-function.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-30 15:17:29 +0000
committerbors <bors@rust-lang.org>2023-11-30 15:17:29 +0000
commit646b28f5f67e6e862b4e0ce8364de1733da815ff (patch)
treeee86642430393edeca8c55ab79e9ceb6074157aa /tests/rustdoc-js-std/full-path-function.js
parent665fd5219a395ece3868cddcfc9cf1283a5eb40f (diff)
parente3c73f17ecda066052409c0023c38eb7ffb6990a (diff)
downloadrust-646b28f5f67e6e862b4e0ce8364de1733da815ff.tar.gz
rust-646b28f5f67e6e862b4e0ce8364de1733da815ff.zip
Auto merge of #11896 - samueltardieu:issue-11893, r=Alexendoo
`option_if_let_else`: do not trigger on expressions returning `()`

Fix #11893

Trigerring on expressions returning `()` uses the arguments of the `map_or_else()` rewrite only for their side effects. This does lead to code which is harder to read than the original.

changelog: [`option_if_let_else`]: do not trigger on unit expressions
Diffstat (limited to 'tests/rustdoc-js-std/full-path-function.js')
0 files changed, 0 insertions, 0 deletions