{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/43351","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/43351/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/43351/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/43351/events","html_url":"https://github.com/rust-lang/rust/pull/43351","id":244237233,"number":43351,"title":"For small types, just swap directly","user":{"login":"scottmcm","id":18526288,"avatar_url":"https://avatars2.githubusercontent.com/u/18526288?v=4","gravatar_id":"","url":"https://api.github.com/users/scottmcm","html_url":"https://github.com/scottmcm","followers_url":"https://api.github.com/users/scottmcm/followers","following_url":"https://api.github.com/users/scottmcm/following{/other_user}","gists_url":"https://api.github.com/users/scottmcm/gists{/gist_id}","starred_url":"https://api.github.com/users/scottmcm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottmcm/subscriptions","organizations_url":"https://api.github.com/users/scottmcm/orgs","repos_url":"https://api.github.com/users/scottmcm/repos","events_url":"https://api.github.com/users/scottmcm/events{/privacy}","received_events_url":"https://api.github.com/users/scottmcm/received_events","type":"User","site_admin":false},"labels":[{"id":583436937,"url":"https://api.github.com/repos/rust-lang/rust/labels/S-waiting-on-author","name":"S-waiting-on-author","color":"d3dddd","default":false}],"state":"closed","locked":false,"assignee":{"login":"BurntSushi","id":456674,"avatar_url":"https://avatars3.githubusercontent.com/u/456674?v=4","gravatar_id":"","url":"https://api.github.com/users/BurntSushi","html_url":"https://github.com/BurntSushi","followers_url":"https://api.github.com/users/BurntSushi/followers","following_url":"https://api.github.com/users/BurntSushi/following{/other_user}","gists_url":"https://api.github.com/users/BurntSushi/gists{/gist_id}","starred_url":"https://api.github.com/users/BurntSushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BurntSushi/subscriptions","organizations_url":"https://api.github.com/users/BurntSushi/orgs","repos_url":"https://api.github.com/users/BurntSushi/repos","events_url":"https://api.github.com/users/BurntSushi/events{/privacy}","received_events_url":"https://api.github.com/users/BurntSushi/received_events","type":"User","site_admin":false},"assignees":[{"login":"BurntSushi","id":456674,"avatar_url":"https://avatars3.githubusercontent.com/u/456674?v=4","gravatar_id":"","url":"https://api.github.com/users/BurntSushi","html_url":"https://github.com/BurntSushi","followers_url":"https://api.github.com/users/BurntSushi/followers","following_url":"https://api.github.com/users/BurntSushi/following{/other_user}","gists_url":"https://api.github.com/users/BurntSushi/gists{/gist_id}","starred_url":"https://api.github.com/users/BurntSushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BurntSushi/subscriptions","organizations_url":"https://api.github.com/users/BurntSushi/orgs","repos_url":"https://api.github.com/users/BurntSushi/repos","events_url":"https://api.github.com/users/BurntSushi/events{/privacy}","received_events_url":"https://api.github.com/users/BurntSushi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-07-20T03:42:57Z","updated_at":"2017-08-03T18:45:20Z","closed_at":"2017-08-03T18:45:20Z","pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/43351","html_url":"https://github.com/rust-lang/rust/pull/43351","diff_url":"https://github.com/rust-lang/rust/pull/43351.diff","patch_url":"https://github.com/rust-lang/rust/pull/43351.patch"},"body":"In `mem::swap`, don't `ptr::swap_nonoverlapping` for things smaller than its block size.  That lets debug mode not run the simd loop and means the load/store instructions in release are generated with full alignment information.  (Swap on u64 in stable has align 8, but [in nightly it has align 1](https://play.rust-lang.org/?gist=10ca383a1737fac699a1a820e34dfe59&version=nightly).)\r\n\r\nInspired by @oyvindln in https://github.com/rust-lang/rust/issues/43299#issuecomment-316222855."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/320056502","html_url":"https://github.com/rust-lang/rust/pull/43351#issuecomment-320056502","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/43351","id":320056502,"user":{"login":"aidanhs","id":1050652,"avatar_url":"https://avatars1.githubusercontent.com/u/1050652?v=4","gravatar_id":"","url":"https://api.github.com/users/aidanhs","html_url":"https://github.com/aidanhs","followers_url":"https://api.github.com/users/aidanhs/followers","following_url":"https://api.github.com/users/aidanhs/following{/other_user}","gists_url":"https://api.github.com/users/aidanhs/gists{/gist_id}","starred_url":"https://api.github.com/users/aidanhs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidanhs/subscriptions","organizations_url":"https://api.github.com/users/aidanhs/orgs","repos_url":"https://api.github.com/users/aidanhs/repos","events_url":"https://api.github.com/users/aidanhs/events{/privacy}","received_events_url":"https://api.github.com/users/aidanhs/received_events","type":"User","site_admin":false},"created_at":"2017-08-03T18:45:20Z","updated_at":"2017-08-03T18:45:20Z","body":"I'm going to close this to keep the queue clean, but if you manage to come back to this @scottmcm just let us know and we'll reopen."}}
{"actor":{"display_login":"aidanhs"}}