-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking issue for the define_in_every_cgu_used feature #141339
Copy link
Copy link
Closed
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)Area: Attributes (`#[…]`, `#![…]`)A-codegenArea: Code generationArea: Code generationA-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language teamRelevant to the language team
Metadata
Metadata
Assignees
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)Area: Attributes (`#[…]`, `#![…]`)A-codegenArea: Code generationArea: Code generationA-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language teamRelevant to the language team
Type
Fields
Give feedbackNo fields configured for issues without a type.
The feature gate for the issue is
#![feature(define_in_every_cgu_used)].#[unsafe(define_in_every_cgu_used)]is an attribute that can be applied tostaticitem definitions. It causes codegen to generate a full definition for the item instead of just an external declaration in every codegen unit where the symbol is referenced. It can be used to implement several Objective-C ABIs and reduce the overhead of interoperating with Objective-C code.Original issue: #53929
Zulip:
Steps
Unresolved Questions
privateorlinkonce_odr)?rustc_attribute used only as an implementation detail for objc macros in the standard library without the goal of ever stabilizing the attribute?Implementation history
Experimental branch: master...jbatez:rust:define_in_every_cgu_used