Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#11593 - koka831:fix/10511, r=xFrednet
Use Span#from_expansion instead of in_external_macro - fixes rust-lang#10511 I checked [the reported repository](rust-lang/rust-clippy#10511 (comment)) and found that clippy hangs at [py_sync.rs#L85](https://github.com/rigetti/qcs-sdk-rust/blob/842094068ed6174ba08b52a2fbae39dda77cbd00/crates/python/src/py_sync.rs#L85), where a macro(`py_function_sync_async`) defines type parameters. this macro is used in the same crate, so `in_external_macro` wouldn't catch them. This PR fixes the problem by using `Span#from_expansion`. --- changelog: ICE: [`implicit_hasher`]: No longer lints inside macros, which could cause ICEs [rust-lang#11593](rust-lang/rust-clippy#11593)
- Loading branch information