-
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
Stabilize flags for doctest cross compilation #137096
base: master
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
ab9d4c8
to
a676b04
Compare
This PR modifies cc @jieyouxu The Miri subtree was changed cc @rust-lang/miri |
This comment has been minimized.
This comment has been minimized.
a676b04
to
8aaa90b
Compare
☔ The latest upstream changes (presumably #138830) made this pull request unmergeable. Please resolve the merge conflicts. |
a0799de
to
ddc6525
Compare
@fmease @GuillaumeGomez Just checking if this can be put on the team's radar? |
On my review list now. :) |
I think they've been around for enough time. Let's start an FCP then. @rfcbot fcp merge |
Team member @GuillaumeGomez has proposed to merge this. The next step is review by the rest of the tagged team members: Concerns:
Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
In playing around with this, I noticed a slight annoyance when using
I'm wondering if it would make sense to somehow silence that warning when using I'm also wondering if it is the right choice to run in the same process. I could see arguments either way. Let me know if you have any opinion on that. |
This comment has been minimized.
This comment has been minimized.
This renames `--runtool` and `--runtool-arg` to `--test-runtool` and `--test-runtool-arg` to maintain consistency with other `--test-*` arguments.
This removes the `--enable-per-target-ignores` and enables it unconditionally.
803831d
to
f535922
Compare
…<try> Stabilize flags for doctest cross compilation This makes the following changes in preparation for supporting doctest cross-compiling in cargo: - Renames `--runtool` and `--runtool-arg` to `--test-runtool` and `--test-runtool-arg` to maintain consistency with other `--test-*` arguments. - Stabilizes the `--test-runtool` and `--test-runtool-arg`. These are needed in order to support cargo's `target.runner` option which specifies a runner to execute a cross-compiled doctest (for example, qemu). - Stabilizes the `--enable-per-target-ignores` flag by removing it and making it unconditionally enabled. This makes it possible to disable a doctest on a per-target basis, which I think will be helpful for rolling out this feature. These changes were suggested in https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/stabilizing.20doctest.20xcompile/near/409281127 The intent is to stabilize the doctest-xcompile feature in cargo. This will help ensure that for projects that do cross-compile testing that their doctests are also covered. Currently there is a somewhat surprising behavior that they are ignored. Closes rust-lang#64245
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
…<try> Stabilize flags for doctest cross compilation This makes the following changes in preparation for supporting doctest cross-compiling in cargo: - Renames `--runtool` and `--runtool-arg` to `--test-runtool` and `--test-runtool-arg` to maintain consistency with other `--test-*` arguments. - Stabilizes the `--test-runtool` and `--test-runtool-arg`. These are needed in order to support cargo's `target.runner` option which specifies a runner to execute a cross-compiled doctest (for example, qemu). - Stabilizes the `--enable-per-target-ignores` flag by removing it and making it unconditionally enabled. This makes it possible to disable a doctest on a per-target basis, which I think will be helpful for rolling out this feature. These changes were suggested in https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/stabilizing.20doctest.20xcompile/near/409281127 The intent is to stabilize the doctest-xcompile feature in cargo. This will help ensure that for projects that do cross-compile testing that their doctests are also covered. Currently there is a somewhat surprising behavior that they are ignored. Closes rust-lang#64245 try-job: x86_64-msvc-1
This comment has been minimized.
This comment has been minimized.
@rfcbot concern forwarding-multi-args-mechanism I'd like to block this FCP on a concern I have. Together with the unstable
(All of them can be passed multiple times) I'd like to see this rectified. |
This comment has been minimized.
This comment has been minimized.
@fmease Can you say more about what you would like to see rectified?
|
Right, it's not something I expect you personally to need to answer, it's more directed toward the team, something I wanted to bring attention to because I only realized this yesterday while reviewing and I don't know if the others were aware of that already of not. To make this more actionable, I think I simply want confirmation from the other T-rustdoc members that we should do something here, namely either
|
This makes the following changes in preparation for supporting doctest cross-compiling in cargo:
--runtool
and--runtool-arg
to--test-runtool
and--test-runtool-arg
to maintain consistency with other--test-*
arguments.--test-runtool
and--test-runtool-arg
. These are needed in order to support cargo'starget.runner
option which specifies a runner to execute a cross-compiled doctest (for example, qemu).--enable-per-target-ignores
flag by removing it and making it unconditionally enabled. This makes it possible to disable a doctest on a per-target basis, which I think will be helpful for rolling out this feature.These changes were suggested in https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/stabilizing.20doctest.20xcompile/near/409281127
The intent is to stabilize the doctest-xcompile feature in cargo. This will help ensure that for projects that do cross-compile testing that their doctests are also covered. Currently there is a somewhat surprising behavior that they are ignored.
Closes #64245
try-job: x86_64-msvc-1