9ddea51a73
Don't lint indexing_slicing lints on proc macros This pr fixes https://github.com/rust-lang/rust-clippy/issues/12824 Even though the issue mentions the indexing case only, it was easy to apply the fix to the slicing case as well. changelog: [`out_of_bounds_indexing`, `indexing_slicing`]: Don't lint on procedural macros.