diff options
| author | Catherine Flores <catherine.3.flores@gmail.com> | 2024-12-14 19:50:55 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-14 19:50:55 +0000 |
| commit | 62407104fbdfe6b5642c56c97b6c3693ca8a1207 (patch) | |
| tree | e7b20ed2ab87767886360b8144a24eac167e244e /compiler/rustc_codegen_gcc | |
| parent | 5ac1805e76b3f0587072501643a7c26785d18e0c (diff) | |
| parent | b8cd51313e0113835c68b2b312f78e9104336f99 (diff) | |
| download | rust-62407104fbdfe6b5642c56c97b6c3693ca8a1207.tar.gz rust-62407104fbdfe6b5642c56c97b6c3693ca8a1207.zip | |
allow needless_option_take to report for more cases (#13684)
changelog: ``` changelog: [`needless_option_take`]: now lints for all temporary expressions of type Option<T>. ``` fixes #13671 In general, needless_option_take should report whenever take() is called on a temporary value, not just when the temporary value is created by as_ref(). Also, we stop emitting machine applicable fixes in these cases, since sometimes the intention of the user is to actually clear the original option, in cases such as `option.as_mut().take()`.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
