As above code shown, allow is a macro to ignore some clippy warning, I tried to find its implementation by rust-analyzer but failed with message no definition found for allow.
It's not a macro. It's a built-in compiler attribute, and it's analyzed by the linter passes.
Most attributes are just that, metadata attached to code. Some atributes may be macros, but most aren't, particularly the built-in ones. If you really want to understand in detail how they work, you should read the source of the compiler, but that shouldn't be necessary.