Skip to content

Use Span#from_expansion instead of in_external_macro #11593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 1, 2023

Conversation

koka831
Copy link
Contributor

@koka831 koka831 commented Oct 1, 2023

I checked the reported repository and found that clippy hangs at 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
#11593

@rustbot
Copy link
Collaborator

rustbot commented Oct 1, 2023

r? @xFrednet

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Oct 1, 2023
@xFrednet
Copy link
Member

xFrednet commented Oct 1, 2023

LGTM, thank you!

@bors r+

@bors
Copy link
Contributor

bors commented Oct 1, 2023

📌 Commit 6f1a78f has been approved by xFrednet

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Oct 1, 2023

⌛ Testing commit 6f1a78f with merge aee3daf...

@bors
Copy link
Contributor

bors commented Oct 1, 2023

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: xFrednet
Pushing aee3daf to master...

@bors bors merged commit aee3daf into rust-lang:master Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ICE: failed to create span for type parameters
4 participants