-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Orphan rules in coherence do not account for multidispatch #18222
Comments
lnicola
pushed a commit
to lnicola/rust
that referenced
this issue
Oct 17, 2024
When providing a custom rustfmt command, join it with the project root instead of the workspace root. This fixes rust-analyzer getting the wrong invocation path in projects containing subprojects. This makes the behaviour consistent with how a custom path provided in rust-analyzer.procMacro.server behaves already. Resolves issue rust-lang#18222
lnicola
pushed a commit
to lnicola/rust
that referenced
this issue
Oct 17, 2024
fix: Join rustfmt overrideCommand with project root When providing a custom rustfmt command, join it with the project root instead of the workspace root. This fixes rust-analyzer getting the wrong invocation path in projects containing subprojects. This makes the behaviour consistent with how a custom path provided in rust-analyzer.procMacro.server behaves already. Resolves issue rust-lang#18222
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current orphan rules orphan rulees do not account for multidispatch. They should accept an impl if at least one input type is local to the current crate. Currently they require the self type specifically to be local. This is just a simple oversight.
The text was updated successfully, but these errors were encountered: