-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.
Description
#[transparent]
on functions and types, basically means never presented to the user (modulo a flag to turn this off). E.g., would be on the unwrap
implementation methods so that that a stack trace doesn't display the noise of the panic and unwrap implementation as the top of the stack trace.
Use on types is to avoid telling the user about things like UnsafeCell
which are usually just noise in error messages for users, they should be transparent wrappers.
Used by std libs in Swift.
cc @gankro
durka, Mark-Simulacrum, Idyllei, apasel422, oli-obk and 13 moregolddranks, Stebalien, Idyllei, JustAPerson, Ixrec and 1 more
Metadata
Metadata
Assignees
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.