Closed chbaker0 closed 2 months ago
This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.
Concerns or objections to the proposal should be discussed on Zulip and formally registered here by adding a comment with the following syntax:
@rustbot concern reason-for-concern
<description of the concern>
Concerns can be lifted with:
@rustbot resolve reason-for-concern
See documentation at https://forge.rust-lang.org
cc @rust-lang/compiler @rust-lang/compiler-contributors
From the zulip discussion and my own reflexion, this should go ahead provided the questions around --emit metadata
get answered.
@rustbot second
@rustbot label -final-comment-period +major-change-accepted
Proposal
The list of artifact types passed to
--emit=
does not affect the contents of those artifacts (with one exception). Iffoo.rlib
depends onbar.rlib
which was generated with--emit=link
, then overwritten with e.g.--emit=link,dep-info
, a downstream rustc invocation should still be able to use the newerbar.rlib
.The one exception is with
--emit=metadata,...
: ifmetadata
is passed alone the.rmeta
output does not contain MIR, so it is not suitable for building.rlib
dependents. However, this results in an obvious compile error likeerror: missing optimized MIR for an item in the crate foo
, and cannot cause the incorrectness that the SVH check prevents.Excluding the
--emit
list from the SVH allows more flexibility when building Rust code in third-party build systems.Mentors or Reviewers
TBD
Process
The main points of the Major Change Process are as follows:
@rustbot second
.-C flag
, then full team check-off is required.@rfcbot fcp merge
on either the MCP or the PR.You can read more about Major Change Proposals on forge.
Comments
This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.