-
Notifications
You must be signed in to change notification settings - Fork 888
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
Don't show deprecation warning without OS #2854
Don't show deprecation warning without OS #2854
Conversation
b4f49fa
to
3d9e1af
Compare
I think instead it'd make more sense to fully expand the inputs with the default host setting instead. That way we're actually going to test the compatibility as intended |
Thanks for the review! I'm not sure I'm understanding, do you mean setting the defaults the way it's done here? Lines 399 to 407 in a9e1989
|
990eb4c
to
a958387
Compare
I'm not sure why the macOS build is failing, but I tried to make some updates here. Let me know if this is what you had in mind! |
a958387
to
cabb3e6
Compare
I think we'd do better to simply ensure we fully resolve the specifiers before calling the function, rather than trying to make more heuristics in the function itself. |
cabb3e6
to
9cd22db
Compare
Thanks for taking a look! I think I misunderstood initially, and I missed the |
9cd22db
to
48aac03
Compare
Makes sense, I have a Windows machine but a test case makes sense either way so I added on here. Let me know if the condition is too specific to the error message, but otherwise it seems to work across architectures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this is tightly coupled to the error message, that's fine because we can fix the test if we reword the message, thank you for your effort.
Closes #2837. Don't show a deprecation warning when an OS isn't present in the
PartialTargetTriple
. This way runningrustup install stable-x86_64
won't throw a warning.Let me know if there's anything I should change here, thanks!