Ensure that peeling does not recurse into macros by samueltardieu · Pull Request #14527 · rust-lang/rust-clippy (original) (raw)

We do not want to remove casts done inside macros. Also, when printing the suggestion, take it from the same context as the origin expression (the root context).

Problems found while working on #14526, but should be merged even if #14526 is not.

changelog: none