Closed davidlattimore closed 1 month 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
@rustbot second
@rustbot label -final-comment-period +major-change-accepted
Proposal
-Z default-hidden-visibility
with-Z default-visibility
, which takes one of several different visibility levels as an argument.protected
visibility rather thandefault
visibility.protected
visibility means that those symbols cannot be interposed by the executable or by other shared objects earlier in the load order. This allows the compiler to emit direct references to those symbols when used within the same shared object that defines them. This is more efficient.-Z default-visibility
option, however I'm a little uncomfortable with naming one of the options "default" if it may eventually not be the default. i.e. if we change the default toprotected
.Tracking issue for
default-hidden-visibility
: https://github.com/rust-lang/compiler-team/issues/656PR that makes this change, but as a separate flag: https://github.com/rust-lang/rust/pull/130005
Original issue that proposed changing to
protected
, but without a flag: https://github.com/rust-lang/rust/issues/105518Mentors or Reviewers
None
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.