{"action":"opened","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/55776","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/55776/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/55776/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/55776/events","html_url":"https://github.com/rust-lang/rust/issues/55776","id":378601855,"node_id":"MDU6SXNzdWUzNzg2MDE4NTU=","number":55776,"title":"Non-deterministic bytes within newly init, unsafely extended vector","user":{"login":"flagello","id":649779,"node_id":"MDQ6VXNlcjY0OTc3OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/649779?v=4","gravatar_id":"","url":"https://api.github.com/users/flagello","html_url":"https://github.com/flagello","followers_url":"https://api.github.com/users/flagello/followers","following_url":"https://api.github.com/users/flagello/following{/other_user}","gists_url":"https://api.github.com/users/flagello/gists{/gist_id}","starred_url":"https://api.github.com/users/flagello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flagello/subscriptions","organizations_url":"https://api.github.com/users/flagello/orgs","repos_url":"https://api.github.com/users/flagello/repos","events_url":"https://api.github.com/users/flagello/events{/privacy}","received_events_url":"https://api.github.com/users/flagello/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-08T06:56:30Z","updated_at":"2018-11-08T06:56:30Z","closed_at":null,"author_association":"NONE","body":"Nightly-only failure as far as I can see. I am able to trigger the failure in a few runs locally, [while an infinite loop did the trick within the playground](\r\nhttps://play.rust-lang.org/?version=nightly&mode=debug&edition=2015&gist=92eadab21e26625996b08d4a388da2c9).\r\n\r\n```rust\r\n#[allow(non_upper_case_globals)]\r\n#[cfg(test)]\r\nmod tests {\r\n    #[test]\r\n    fn test() {\r\n        let mut a: Vec<u8> = Vec::new();\r\n        let mut b: Vec<u8> = vec![0];\r\n\r\n        const x: usize = 4096;\r\n        const k: usize = 512;\r\n        const z: usize = 64;\r\n        let y = 2;\r\n        let a_len = a.len();\r\n        let b_len = b.len();\r\n\r\n        a.reserve(x);\r\n        b.reserve(k);\r\n\r\n        unsafe { a.set_len(a_len + y * z) };\r\n        unsafe { b.set_len(b_len + y * z) };\r\n\r\n        assert_eq!(a.iter().max(), Some(&0));\r\n        assert_eq!(b.iter().max(), Some(&0));\r\n    }\r\n}\r\n```\r\n\r\n`git clone git@github.com:flagello/rust-nightly-test-case-a.git`\r\n\r\n---\r\n\r\n_Note: I am only on nightly due to the ability to customize `rustfmt`._"}}
{"actor":{"display_login":"flagello"}}