{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/25646","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/25646/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/25646/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/25646/events","html_url":"https://github.com/rust-lang/rust/pull/25646","id":78447201,"number":25646,"title":"Make `align_of` behave like `min_align_of`.","user":{"login":"huonw","id":1203825,"avatar_url":"https://avatars.githubusercontent.com/u/1203825?v=3","gravatar_id":"","url":"https://api.github.com/users/huonw","html_url":"https://github.com/huonw","followers_url":"https://api.github.com/users/huonw/followers","following_url":"https://api.github.com/users/huonw/following{/other_user}","gists_url":"https://api.github.com/users/huonw/gists{/gist_id}","starred_url":"https://api.github.com/users/huonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huonw/subscriptions","organizations_url":"https://api.github.com/users/huonw/orgs","repos_url":"https://api.github.com/users/huonw/repos","events_url":"https://api.github.com/users/huonw/events{/privacy}","received_events_url":"https://api.github.com/users/huonw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/final-comment-period","name":"final-comment-period","color":"207de5"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/T-libs","name":"T-libs","color":"bfd4f2"}],"state":"open","locked":false,"assignee":{"login":"brson","id":147214,"avatar_url":"https://avatars.githubusercontent.com/u/147214?v=3","gravatar_id":"","url":"https://api.github.com/users/brson","html_url":"https://github.com/brson","followers_url":"https://api.github.com/users/brson/followers","following_url":"https://api.github.com/users/brson/following{/other_user}","gists_url":"https://api.github.com/users/brson/gists{/gist_id}","starred_url":"https://api.github.com/users/brson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brson/subscriptions","organizations_url":"https://api.github.com/users/brson/orgs","repos_url":"https://api.github.com/users/brson/repos","events_url":"https://api.github.com/users/brson/events{/privacy}","received_events_url":"https://api.github.com/users/brson/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2015-05-20T09:25:16Z","updated_at":"2015-06-11T14:08:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/25646","html_url":"https://github.com/rust-lang/rust/pull/25646","diff_url":"https://github.com/rust-lang/rust/pull/25646.diff","patch_url":"https://github.com/rust-lang/rust/pull/25646.patch"},"body":"This removes a footgun, since it is a reasonable assumption to make that\r\npointers to `T` will be aligned to `align_of::<T>()`. This also matches\r\nthe behaviour of C/C++. `min_align_of` is now deprecated.\r\n\r\nCloses #21611."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/111147555","html_url":"https://github.com/rust-lang/rust/pull/25646#issuecomment-111147555","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/25646","id":111147555,"user":{"login":"nikomatsakis","id":155238,"avatar_url":"https://avatars.githubusercontent.com/u/155238?v=3","gravatar_id":"","url":"https://api.github.com/users/nikomatsakis","html_url":"https://github.com/nikomatsakis","followers_url":"https://api.github.com/users/nikomatsakis/followers","following_url":"https://api.github.com/users/nikomatsakis/following{/other_user}","gists_url":"https://api.github.com/users/nikomatsakis/gists{/gist_id}","starred_url":"https://api.github.com/users/nikomatsakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikomatsakis/subscriptions","organizations_url":"https://api.github.com/users/nikomatsakis/orgs","repos_url":"https://api.github.com/users/nikomatsakis/repos","events_url":"https://api.github.com/users/nikomatsakis/events{/privacy}","received_events_url":"https://api.github.com/users/nikomatsakis/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T14:08:15Z","updated_at":"2015-06-11T14:08:15Z","body":"I feel very strongly that anything called \"align-of\" (with no qualifier) ought to be doing the same thing that you would get with C/C++'s `alignof` operator. I don't have the C or C++ spec handy, but some quick web searching suggests to me that \"min align of\" is indeed that value. (For all I know, the precise semantics of the `alignof` operator are only loosely defined in the spec -- but in either case being compatible with gcc/clang is very likely to meet expectations.)\r\n\r\nTherefore: :+1: "}}