{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/35887","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/35887/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/35887/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/35887/events","html_url":"https://github.com/rust-lang/rust/issues/35887","id":172352791,"number":35887,"title":"Can't compile a file named \"rust.rs\" on Linux","user":{"login":"c410-f3r","id":17877264,"avatar_url":"https://avatars.githubusercontent.com/u/17877264?v=3","gravatar_id":"","url":"https://api.github.com/users/c410-f3r","html_url":"https://github.com/c410-f3r","followers_url":"https://api.github.com/users/c410-f3r/followers","following_url":"https://api.github.com/users/c410-f3r/following{/other_user}","gists_url":"https://api.github.com/users/c410-f3r/gists{/gist_id}","starred_url":"https://api.github.com/users/c410-f3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c410-f3r/subscriptions","organizations_url":"https://api.github.com/users/c410-f3r/orgs","repos_url":"https://api.github.com/users/c410-f3r/repos","events_url":"https://api.github.com/users/c410-f3r/events{/privacy}","received_events_url":"https://api.github.com/users/c410-f3r/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-22T01:06:15Z","updated_at":"2016-08-22T07:07:29Z","closed_at":null,"body":"It is not possible to compile a file whose name is equal to a directory already created in the same folder:\r\n\r\n```\r\n$ rustc rust.rs\r\nerror: linking with `cc` failed: exit code: 1\r\nnote: \"cc\" \"-Wl,--as-needed\" \"-Wl,-z,noexecstack\" \"-m64\" \"-L\" \"/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib\" \"rust.0.o\" \"-o\" \"rust\" \"-Wl,--gc-sections\" \"-pie\" \"-nodefaultlibs\" \"-L\" \"/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib\" \"-Wl,-Bstatic\" \"-Wl,-Bdynamic\" \"/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-39b92f95.rlib\" \"/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-39b92f95.rlib\" \"/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-39b92f95.rlib\" \"/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/librand-39b92f95.rlib\" \"/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcollections-39b92f95.rlib\" \"/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_unicode-39b92f95.rlib\" \"/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-39b92f95.rlib\" \"/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-39b92f95.rlib\" \"/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-39b92f95.rlib\" \"/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-39b92f95.rlib\" \"-l\" \"dl\" \"-l\" \"pthread\" \"-l\" \"gcc_s\" \"-l\" \"pthread\" \"-l\" \"c\" \"-l\" \"m\" \"-l\" \"rt\" \"-l\" \"util\" \"-l\" \"compiler-rt\"\r\nnote: /usr/bin/ld: cannot open output file rust: Is a directory\r\ncollect2: error: ld returned 1 exit status\r\n\r\nerror: aborting due to previous error\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/241330415","html_url":"https://github.com/rust-lang/rust/issues/35887#issuecomment-241330415","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/35887","id":241330415,"user":{"login":"dashed","id":139499,"avatar_url":"https://avatars.githubusercontent.com/u/139499?v=3","gravatar_id":"","url":"https://api.github.com/users/dashed","html_url":"https://github.com/dashed","followers_url":"https://api.github.com/users/dashed/followers","following_url":"https://api.github.com/users/dashed/following{/other_user}","gists_url":"https://api.github.com/users/dashed/gists{/gist_id}","starred_url":"https://api.github.com/users/dashed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dashed/subscriptions","organizations_url":"https://api.github.com/users/dashed/orgs","repos_url":"https://api.github.com/users/dashed/repos","events_url":"https://api.github.com/users/dashed/events{/privacy}","received_events_url":"https://api.github.com/users/dashed/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T07:07:29Z","updated_at":"2016-08-22T07:07:29Z","body":"There could be a nicer error message to indicate to the user that there is a directory with the same name as the program."}}
{"actor":{"display_login":"dashed"}}