-
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-api[DEPRECATED; DO NOT USE][DEPRECATED; DO NOT USE]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.
Description
Activity
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-api[DEPRECATED; DO NOT USE][DEPRECATED; DO NOT USE]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.
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: