about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-30 16:20:47 +0000
committerbors <bors@rust-lang.org>2023-12-30 16:20:47 +0000
commitc99224726ced0d1502a2ef622c108bd43f0c4081 (patch)
treef1af10911cbc61499b2223fa1dcb7aff93381b7a /tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs
parent174a0d7be6f18bf6470a46d107e4b3f0b870c315 (diff)
parent0848e120b266517c661aed984838e4e6ca5afdd6 (diff)
downloadrust-c99224726ced0d1502a2ef622c108bd43f0c4081.tar.gz
rust-c99224726ced0d1502a2ef622c108bd43f0c4081.zip
Auto merge of #12054 - y21:issue12037, r=Jarcho
add external macro checks to `iter_without_into_iter` and `into_iter_without_iter`

Fixes #12037

I think it's useful to still lint on local macros, since the user should still be able to add another impl with the `IntoIterator` or `iter` method. I think it's also fairly common to write a macro for generating many impls (e.g. for many similar types), so it'd be nice if we can continue linting in those cases.
For that reason I went with `in_external_macro`.

I also added a test for `#[allow]`ing the lint while I was at it.

changelog: [`iter_without_into_iter`]: don't lint if the `iter` method is defined in an external macro
changelog: [`into_iter_without_iter`]: don't lint if the `IntoIterator` impl is defined in an external macro
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs')
0 files changed, 0 insertions, 0 deletions