{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/50516","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/50516/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/50516/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/50516/events","html_url":"https://github.com/rust-lang/rust/issues/50516","id":320932019,"number":50516,"title":"std::fs:create_dir not failing on existing directory on aarch64, debug","user":{"login":"yrashk","id":452,"avatar_url":"https://avatars0.githubusercontent.com/u/452?v=4","gravatar_id":"","url":"https://api.github.com/users/yrashk","html_url":"https://github.com/yrashk","followers_url":"https://api.github.com/users/yrashk/followers","following_url":"https://api.github.com/users/yrashk/following{/other_user}","gists_url":"https://api.github.com/users/yrashk/gists{/gist_id}","starred_url":"https://api.github.com/users/yrashk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yrashk/subscriptions","organizations_url":"https://api.github.com/users/yrashk/orgs","repos_url":"https://api.github.com/users/yrashk/repos","events_url":"https://api.github.com/users/yrashk/events{/privacy}","received_events_url":"https://api.github.com/users/yrashk/received_events","type":"User","site_admin":false},"labels":[{"id":55301954,"url":"https://api.github.com/repos/rust-lang/rust/labels/O-ARM","name":"O-ARM","color":"6e6ec0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-07T19:47:53Z","updated_at":"2018-05-07T21:54:24Z","closed_at":null,"author_association":"NONE","body":"I have this piece of code:\r\n\r\nsrc/main.rs:\r\n```\r\nuse std::fs::create_dir;\r\n\r\nfn main() {\r\n   create_dir(\"hello\").expect(\"1\");\r\n   create_dir(\"hello\").expect(\"2\");\r\n}\r\n```\r\n\r\nWhen I tried to run it on aarch64, debug mode, I get empty output. However, I would expect the second `except` to fail (provided `hello` didn't exist before).\r\n\r\nIn fact, when I run the same code with `cargo run --release`, this is the behavior I get:\r\n\r\n```\r\n$ cargo run --release\r\n    Finished release [optimized] target(s) in 0.04s\r\n     Running `target/release/dir-exists-aarch64`\r\nthread 'main' panicked at '2: Os { code: 17, kind: AlreadyExists, message: \"File exists\" }', libcore/result.rs:945:5\r\nnote: Run with `RUST_BACKTRACE=1` for a backtrace.\r\n```\r\n\r\nI've tried it on both stable and nightly:\r\n\r\n```\r\nrustc 1.25.0 (84203cac6 2018-03-25)\r\nbinary: rustc\r\ncommit-hash: 84203cac67e65ca8640b8392348411098c856985\r\ncommit-date: 2018-03-25\r\nhost: aarch64-unknown-linux-gnu\r\nrelease: 1.25.0\r\nLLVM version: 6.0\r\n```\r\n\r\n```\r\nrustc 1.27.0-nightly (428ea5f6b 2018-05-06)\r\nbinary: rustc\r\ncommit-hash: 428ea5f6b9e7c6e5ee3294fe9f105e77e89ab407\r\ncommit-date: 2018-05-06\r\nhost: aarch64-unknown-linux-gnu\r\nrelease: 1.27.0-nightly\r\nLLVM version: 6.0\r\n```\r\n\r\nAny thoughts?"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/387218930","html_url":"https://github.com/rust-lang/rust/issues/50516#issuecomment-387218930","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/50516","id":387218930,"user":{"login":"yrashk","id":452,"avatar_url":"https://avatars0.githubusercontent.com/u/452?v=4","gravatar_id":"","url":"https://api.github.com/users/yrashk","html_url":"https://github.com/yrashk","followers_url":"https://api.github.com/users/yrashk/followers","following_url":"https://api.github.com/users/yrashk/following{/other_user}","gists_url":"https://api.github.com/users/yrashk/gists{/gist_id}","starred_url":"https://api.github.com/users/yrashk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yrashk/subscriptions","organizations_url":"https://api.github.com/users/yrashk/orgs","repos_url":"https://api.github.com/users/yrashk/repos","events_url":"https://api.github.com/users/yrashk/events{/privacy}","received_events_url":"https://api.github.com/users/yrashk/received_events","type":"User","site_admin":false},"created_at":"2018-05-07T21:54:24Z","updated_at":"2018-05-07T21:54:24Z","author_association":"NONE","body":"I don't even know where to start on this, to be honest (besides comparing LLVM 5 and 6)... any suggestions?"}}
{"actor":{"display_login":"yrashk"}}