diff options
| author | bors <bors@rust-lang.org> | 2024-04-20 15:06:02 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-04-20 15:06:02 +0000 |
| commit | c642d0cab63546ce094b75f2d31e0639d9b12399 (patch) | |
| tree | 16b9f31fec070f63eae19eaf855e1e71f38848f0 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 8eafeeb47ac5605f17eb473e1c011060e49751d9 (diff) | |
| parent | de258cc6becde010381502ae0e80b4aca4064e3c (diff) | |
| download | rust-c642d0cab63546ce094b75f2d31e0639d9b12399.tar.gz rust-c642d0cab63546ce094b75f2d31e0639d9b12399.zip | |
Auto merge of #12696 - smoelius:fix-is_test_module_or_function, r=Alexendoo
Fix `is_test_module_or_function` The rustdoc comment for `is_test_module_or_function` states: https://github.com/rust-lang/rust-clippy/blob/2795a6018944a5918b7d276267165484f5d62d6a/clippy_utils/src/lib.rs#L2561-L2566 Given `item`, the function calls `is_in_test_function` with `item.hir_id()`. However, `is_in_test_function` considers only `item`'s parents, not `item` itself. This PR fixes the problem. The `test_with_disallowed_name` test fails without the fix, but passes once applied. changelog: none
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
