{"action":"opened","issue":{"url":"https://api.github.com/repos/carllerche/bytes/issues/21","labels_url":"https://api.github.com/repos/carllerche/bytes/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/carllerche/bytes/issues/21/comments","events_url":"https://api.github.com/repos/carllerche/bytes/issues/21/events","html_url":"https://github.com/carllerche/bytes/issues/21","id":74673854,"number":21,"title":"Build fails on latest nightly","user":{"login":"fhartwig","id":83271,"avatar_url":"https://avatars.githubusercontent.com/u/83271?v=3","gravatar_id":"","url":"https://api.github.com/users/fhartwig","html_url":"https://github.com/fhartwig","followers_url":"https://api.github.com/users/fhartwig/followers","following_url":"https://api.github.com/users/fhartwig/following{/other_user}","gists_url":"https://api.github.com/users/fhartwig/gists{/gist_id}","starred_url":"https://api.github.com/users/fhartwig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhartwig/subscriptions","organizations_url":"https://api.github.com/users/fhartwig/orgs","repos_url":"https://api.github.com/users/fhartwig/repos","events_url":"https://api.github.com/users/fhartwig/events{/privacy}","received_events_url":"https://api.github.com/users/fhartwig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-09T13:31:44Z","updated_at":"2015-05-09T13:31:44Z","closed_at":null,"body":"The build currently fails on the latest nightly because of https://github.com/rust-lang/rust/commit/d131f335579b8c080a2416a65ca703169fae560b\r\n\r\nThe full compiler error:\r\n```\r\nsrc/alloc/mod.rs:67:18: 67:32 error: mutating transmuted &mut T from &T may cause undefined behavior,consider instead using an UnsafeCell, #[deny(mutable_transmutes)] on by default\r\nsrc/alloc/mod.rs:67         unsafe { mem::transmute(self.bytes()) }\r\n                                     ^~~~~~~~~~~~~~\r\nsrc/str/bytes.rs:117:18: 117:32 error: mutating transmuted &mut T from &T may cause undefined behavior,consider instead using an UnsafeCell, #[deny(mutable_transmutes)] on by default\r\nsrc/str/bytes.rs:117         unsafe { mem::transmute(self.obj()) }\r\n                                      ^~~~~~~~~~~~~~\r\nerror: aborting due to 2 previous errors\r\n```\r\nI'd fix it myself, but I probably shouldn't try to fix unsafe code that I don't fully understand."}}