You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…on, 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
Caused by this block of code in my Servo branch, not sure exactly what...
https://github.com/zmike/servo/blob/master/src/components/embedding/core.rs#L86
I'm on x86_64 linux, this is the backtrace from rust_fail:
https://gist.github.com/zmike/9358460
The text was updated successfully, but these errors were encountered: