-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Attempt to fix Issue #9451 #10084
Attempt to fix Issue #9451 #10084
Conversation
Running `generate_targets()` *before* running the `-Zbuild-std requires --target` check should, in theory, allow `--per-package-target` to play more nicely with `-Zbuild-std` than it does currently.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. Please see the contribution instructions for more information. |
So it seems the only failure is in the rustfmt check, not in the builds — which suggests that, although the code isn't formatted the way rustfmt would like after my changes, it's still perfectly functional. Shouldn't be a problem when merging at this point. |
Thanks for the PR! FWIW per-package-target is still "broken" in that the target calculation part of We don't merge PRs unless they're green on CI, so if you could reformat the code with rustfmt I'll r+ |
Can this also get a test? |
Copied and pasted from upstream and then, instead of cutting and pasting the other stuff around the problematic check, cut and paste the check itself from the line it was on before down to a later one. Hopefully rustfmt doesn't freak out this time.
Alright @alexcrichton rustfmt is now successful. All the other checks haven't finished running yet as of this writing but given that they have all succeeded before the CI should be green at this point. |
Will you be able to write a test for this as @ehuss requested? |
Working on it right now |
Update: What I did to test this was attempt to compile this with the manifest file set to use the So I tried instead to see what would happen if I commented out the check in question and then tested the compiler that way. You'd expect |
Running
generate_targets()
before running the-Zbuild-std requires --target
check should, in theory, allow--per-package-target
to play more nicely with-Zbuild-std
than it does currently.