-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Private traits can be implemented cross-crate #11593
Comments
That's bad. |
bors
added a commit
that referenced
this issue
Jan 19, 2014
Turns out we were just forgetting to encode the privacy for trais, and everything without privacy defaults to public! Closes #11593
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Oct 6, 2023
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)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should not compile but it does.
test.rs:
test2.rs:
The text was updated successfully, but these errors were encountered: