needless_return
Fixes #12907 changelog: Fix [`needless_return`] false negative when returned expression borrows a value