{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/592","labels_url":"https://api.github.com/repos/rust-lang/rfcs/issues/592/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/592/comments","events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/592/events","html_url":"https://github.com/rust-lang/rfcs/pull/592","id":54690699,"number":592,"title":"RFC: CStr, the dereferenced complement to CString","user":{"login":"mzabaluev","id":1198919,"avatar_url":"https://avatars.githubusercontent.com/u/1198919?v=3","gravatar_id":"","url":"https://api.github.com/users/mzabaluev","html_url":"https://github.com/mzabaluev","followers_url":"https://api.github.com/users/mzabaluev/followers","following_url":"https://api.github.com/users/mzabaluev/following{/other_user}","gists_url":"https://api.github.com/users/mzabaluev/gists{/gist_id}","starred_url":"https://api.github.com/users/mzabaluev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzabaluev/subscriptions","organizations_url":"https://api.github.com/users/mzabaluev/orgs","repos_url":"https://api.github.com/users/mzabaluev/repos","events_url":"https://api.github.com/users/mzabaluev/events{/privacy}","received_events_url":"https://api.github.com/users/mzabaluev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"milestone":null,"comments":23,"created_at":"2015-01-18T08:55:36Z","updated_at":"2015-02-11T18:47:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rfcs/pulls/592","html_url":"https://github.com/rust-lang/rfcs/pull/592","diff_url":"https://github.com/rust-lang/rfcs/pull/592.diff","patch_url":"https://github.com/rust-lang/rfcs/pull/592.patch"},"body":"Change the `Deref` target of `CString` to a token type `CStr`.\r\nAdd helper functions and macros to produce `CStr` references out of static string data.\r\n\r\n[Rendered](https://github.com/mzabaluev/rust-rfcs/blob/c-str-deref/text/0000-c-str-deref.md)"},"comment":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/comments/73938998","html_url":"https://github.com/rust-lang/rfcs/pull/592#issuecomment-73938998","issue_url":"https://api.github.com/repos/rust-lang/rfcs/issues/592","id":73938998,"user":{"login":"aturon","id":709807,"avatar_url":"https://avatars.githubusercontent.com/u/709807?v=3","gravatar_id":"","url":"https://api.github.com/users/aturon","html_url":"https://github.com/aturon","followers_url":"https://api.github.com/users/aturon/followers","following_url":"https://api.github.com/users/aturon/following{/other_user}","gists_url":"https://api.github.com/users/aturon/gists{/gist_id}","starred_url":"https://api.github.com/users/aturon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aturon/subscriptions","organizations_url":"https://api.github.com/users/aturon/orgs","repos_url":"https://api.github.com/users/aturon/repos","events_url":"https://api.github.com/users/aturon/events{/privacy}","received_events_url":"https://api.github.com/users/aturon/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T18:47:55Z","updated_at":"2015-02-11T18:47:55Z","body":"@mzabaluev \r\n\r\n> if `CStr` is temporarily made a DST, could there be any usages of `&CStr` that will break when that becomes a thin reference?\r\n\r\nI think only for unsafe code that depended on the exact representation. I will try to get some second opinions on this though, it's an important question.\r\n\r\n> Should `CStr` be left unstable until the question of unsized types gets resolved?\r\n\r\nI don't think so -- we want to stabilize `CString` soon, and I would really like to use the overall approach you're suggesting."}}