-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Unnecessary error for weak dependency features #10540
Comments
We discussed this issue, and we decided it is best to stay with the current syntax. The We understand that the current syntax is not ideal, and was forced by need of backwards compatibility. I opened #10556 with a possible option for the future. |
This is not what this issue is about. The syntax is fine, the error is not. The error is there for people who might accidentally use this feature (which is probably close to no one), but I think it's counter productive in the way it works... and is entirely optional anyway. Cargo would work just fine without emitting this error in the first place. |
Can this be reopened considering it has been misunderstood entirely? |
When discussing syntax, we are also referring to the semantics of that syntax. We are not wanting to allow |
When the long term goal are the semantics I'm proposing here anyway (independent of syntax), then why artificially cripple |
Problem
I just tried out the weak dependency features support in Rust 1.60. And I'm getting the following error:
This error is unnecessary and should probably be removed. The whole point of the weak dependency features is to fix the old system where you accidentally bring in dependencies. Ideally the default would be changed, but can't due to backwards compatibility, so
?/
is the alternative that was chosen. Now in order to not accidentally bring in dependencies I don't want, I want to use?/
everywhere, but apparently this error prevents me from doing so.Steps
?/
with a dependency that is not optional.Possible Solution(s)
Don't show the error.
Notes
No response
Version
The text was updated successfully, but these errors were encountered: