{"action":"created","issue":{"url":"https://api.github.com/repos/nikomatsakis/rust-memory-model/issues/47","repository_url":"https://api.github.com/repos/nikomatsakis/rust-memory-model","labels_url":"https://api.github.com/repos/nikomatsakis/rust-memory-model/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/nikomatsakis/rust-memory-model/issues/47/comments","events_url":"https://api.github.com/repos/nikomatsakis/rust-memory-model/issues/47/events","html_url":"https://github.com/nikomatsakis/rust-memory-model/issues/47","id":328063192,"node_id":"MDU6SXNzdWUzMjgwNjMxOTI=","number":47,"title":"stack address","user":{"login":"nikomatsakis","id":155238,"node_id":"MDQ6VXNlcjE1NTIzOA==","avatar_url":"https://avatars0.githubusercontent.com/u/155238?v=4","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},"labels":[{"id":435574330,"node_id":"MDU6TGFiZWw0MzU1NzQzMzA=","url":"https://api.github.com/repos/nikomatsakis/rust-memory-model/labels/K-Code-Example","name":"K-Code-Example","color":"d93f0b","default":false},{"id":426804680,"node_id":"MDU6TGFiZWw0MjY4MDQ2ODA=","url":"https://api.github.com/repos/nikomatsakis/rust-memory-model/labels/T-lang","name":"T-lang","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-05-31T09:31:07Z","updated_at":"2018-06-05T13:47:03Z","closed_at":null,"author_association":"OWNER","body":"Code sometimes has a need to get an address from the stack — often for debugging, but sometimes for other reasons. Consider this snippet of code from rayon-rs/rayon#571:\r\n\r\n```rust\r\nlet base = 0;\r\nlet addr = &base as *const _ as u64;\r\n```\r\n\r\nthe goal here is just to get \"some stack pointer\" to use as a (quite weak) seed for a PRNG. This feels... sketchy to me, I thought it was worth noting."},"comment":{"url":"https://api.github.com/repos/nikomatsakis/rust-memory-model/issues/comments/394715084","html_url":"https://github.com/nikomatsakis/rust-memory-model/issues/47#issuecomment-394715084","issue_url":"https://api.github.com/repos/nikomatsakis/rust-memory-model/issues/47","id":394715084,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDcxNTA4NA==","user":{"login":"RalfJung","id":330628,"node_id":"MDQ6VXNlcjMzMDYyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/330628?v=4","gravatar_id":"","url":"https://api.github.com/users/RalfJung","html_url":"https://github.com/RalfJung","followers_url":"https://api.github.com/users/RalfJung/followers","following_url":"https://api.github.com/users/RalfJung/following{/other_user}","gists_url":"https://api.github.com/users/RalfJung/gists{/gist_id}","starred_url":"https://api.github.com/users/RalfJung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RalfJung/subscriptions","organizations_url":"https://api.github.com/users/RalfJung/orgs","repos_url":"https://api.github.com/users/RalfJung/repos","events_url":"https://api.github.com/users/RalfJung/events{/privacy}","received_events_url":"https://api.github.com/users/RalfJung/received_events","type":"User","site_admin":false},"created_at":"2018-06-05T13:47:03Z","updated_at":"2018-06-05T13:47:03Z","author_association":"COLLABORATOR","body":"@stjepang I assume you meant `let y = &b as ...` in both cases?"}}
{"actor":{"display_login":"RalfJung"}}