{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/1428","repository_url":"https://api.github.com/repos/rust-lang/rfcs","labels_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1428/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1428/comments","events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1428/events","html_url":"https://github.com/rust-lang/rfcs/issues/1428","id":123959340,"node_id":"MDU6SXNzdWUxMjM5NTkzNDA=","number":1428,"title":"Expose the type_name intrinsic","user":{"login":"sfackler","id":1455697,"node_id":"MDQ6VXNlcjE0NTU2OTc=","avatar_url":"https://avatars0.githubusercontent.com/u/1455697?v=4","gravatar_id":"","url":"https://api.github.com/users/sfackler","html_url":"https://github.com/sfackler","followers_url":"https://api.github.com/users/sfackler/followers","following_url":"https://api.github.com/users/sfackler/following{/other_user}","gists_url":"https://api.github.com/users/sfackler/gists{/gist_id}","starred_url":"https://api.github.com/users/sfackler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfackler/subscriptions","organizations_url":"https://api.github.com/users/sfackler/orgs","repos_url":"https://api.github.com/users/sfackler/repos","events_url":"https://api.github.com/users/sfackler/events{/privacy}","received_events_url":"https://api.github.com/users/sfackler/received_events","type":"User","site_admin":false},"labels":[{"id":211667901,"node_id":"MDU6TGFiZWwyMTE2Njc5MDE=","url":"https://api.github.com/repos/rust-lang/rfcs/labels/T-libs","name":"T-libs","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2015-12-27T04:21:51Z","updated_at":"2018-07-04T08:11:25Z","closed_at":null,"author_association":"MEMBER","body":"We have an intrinsic which returns a `&'static str` naming a type but it's not exposed in a safe/stable manner anywhere: http://doc.rust-lang.org/1.5.0/std/intrinsics/fn.type_name.html\n\nSomething like this should suffice:\n\n``` rust\npub fn type_name<T: Reflect + ?Sized>() -> &'static str {\n     unsafe { std::intrinsics::type_name::<T>() }\n}\n```\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/comments/402400099","html_url":"https://github.com/rust-lang/rfcs/issues/1428#issuecomment-402400099","issue_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1428","id":402400099,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjQwMDA5OQ==","user":{"login":"mitsuhiko","id":7396,"node_id":"MDQ6VXNlcjczOTY=","avatar_url":"https://avatars1.githubusercontent.com/u/7396?v=4","gravatar_id":"","url":"https://api.github.com/users/mitsuhiko","html_url":"https://github.com/mitsuhiko","followers_url":"https://api.github.com/users/mitsuhiko/followers","following_url":"https://api.github.com/users/mitsuhiko/following{/other_user}","gists_url":"https://api.github.com/users/mitsuhiko/gists{/gist_id}","starred_url":"https://api.github.com/users/mitsuhiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitsuhiko/subscriptions","organizations_url":"https://api.github.com/users/mitsuhiko/orgs","repos_url":"https://api.github.com/users/mitsuhiko/repos","events_url":"https://api.github.com/users/mitsuhiko/events{/privacy}","received_events_url":"https://api.github.com/users/mitsuhiko/received_events","type":"User","site_admin":false},"created_at":"2018-07-04T08:11:25Z","updated_at":"2018-07-04T08:11:25Z","author_association":"CONTRIBUTOR","body":"I would propose to expose it with the full path only for now. It's also the format that comes in from backtraces at the moment and it would make sense to have a parsing function that takes such an identifier and breaks it into the individual elements."}}
{"actor":{"display_login":"mitsuhiko"}}