-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expose the type_name intrinsic #1428
Copy link
Copy link
Closed
rust-lang/rust
#60066Labels
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.T-libs-apiRelevant to the library API team, which will review and decide on the RFC.Relevant to the library API team, which will review and decide on the RFC.disposition-mergeThis RFC is in PFCP or FCP with a disposition to merge it.This RFC is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this RFC.The final comment period is finished for this RFC.
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.T-libs-apiRelevant to the library API team, which will review and decide on the RFC.Relevant to the library API team, which will review and decide on the RFC.disposition-mergeThis RFC is in PFCP or FCP with a disposition to merge it.This RFC is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this RFC.The final comment period is finished for this RFC.
Type
Fields
Give feedbackNo fields configured for issues without a type.
We have an intrinsic which returns a
&'static strnaming a type but it's not exposed in a safe/stable manner anywhere: http://doc.rust-lang.org/std/intrinsics/fn.type_name.htmlSomething like this should suffice: