{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang-nursery/rust-clippy/issues/2874","repository_url":"https://api.github.com/repos/rust-lang-nursery/rust-clippy","labels_url":"https://api.github.com/repos/rust-lang-nursery/rust-clippy/issues/2874/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang-nursery/rust-clippy/issues/2874/comments","events_url":"https://api.github.com/repos/rust-lang-nursery/rust-clippy/issues/2874/events","html_url":"https://github.com/rust-lang-nursery/rust-clippy/issues/2874","id":335914966,"node_id":"MDU6SXNzdWUzMzU5MTQ5NjY=","number":2874,"title":"Clippy cannot find 'std' with non-standard libdir","user":{"login":"o01eg","id":397177,"node_id":"MDQ6VXNlcjM5NzE3Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/397177?v=4","gravatar_id":"","url":"https://api.github.com/users/o01eg","html_url":"https://github.com/o01eg","followers_url":"https://api.github.com/users/o01eg/followers","following_url":"https://api.github.com/users/o01eg/following{/other_user}","gists_url":"https://api.github.com/users/o01eg/gists{/gist_id}","starred_url":"https://api.github.com/users/o01eg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/o01eg/subscriptions","organizations_url":"https://api.github.com/users/o01eg/orgs","repos_url":"https://api.github.com/users/o01eg/repos","events_url":"https://api.github.com/users/o01eg/events{/privacy}","received_events_url":"https://api.github.com/users/o01eg/received_events","type":"User","site_admin":false},"labels":[{"id":149309557,"node_id":"MDU6TGFiZWwxNDkzMDk1NTc=","url":"https://api.github.com/repos/rust-lang-nursery/rust-clippy/labels/L-bug%20:beetle:","name":"L-bug :beetle:","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-26T17:10:49Z","updated_at":"2018-10-04T06:54:49Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When I try even hello world project I got error:\r\n\r\n```\r\n$ cargo clippy --verbose\r\n    Checking tst001 v0.1.0 (file:///tmp/tst001)\r\n     Running `/usr/bin/clippy-driver rustc --crate-name tst001 src/main.rs --crate-type bin --emit=dep-info,metadata -C debuginfo=2 -C metadata=9d53d8442a8c6217 -C extra-filename=-9d53d8442a8c6217 --out-dir /tmp/tst001/target/debug/deps -C incremental=/tmp/tst001/target/debug/incremental -L dependency=/tmp/tst001/target/debug/deps`\r\nerror[E0463]: can't find crate for `std`\r\n\r\nerror: Could not compile `tst001`.\r\n```\r\nClippy version: 0.0.210\r\nRustc version:\r\n```\r\nrustc 1.28.0-dev (773ce53ce 2018-06-26)\r\nbinary: rustc\r\ncommit-hash: 773ce53ce7b3acb97cfbd3d189dc3fbf33ec05c6\r\ncommit-date: 2018-06-26\r\nhost: x86_64-unknown-linux-gnu\r\nrelease: 1.28.0-dev\r\nLLVM version: 6.0\r\n```\r\n\r\nRustc built with non-standart libdir and libstd placed there:\r\n```\r\n/usr/lib64/rust-9999/libstd-c9650cebf997ec41.so\r\n/usr/lib64/rust-9999/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c9650cebf997ec41.rlib\r\n/usr/lib64/rust-9999/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c9650cebf997ec41.so\r\n```\r\n\r\nRustc successfully builds programs but clippy fails to check it."},"comment":{"url":"https://api.github.com/repos/rust-lang-nursery/rust-clippy/issues/comments/426905748","html_url":"https://github.com/rust-lang-nursery/rust-clippy/issues/2874#issuecomment-426905748","issue_url":"https://api.github.com/repos/rust-lang-nursery/rust-clippy/issues/2874","id":426905748,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjkwNTc0OA==","user":{"login":"o01eg","id":397177,"node_id":"MDQ6VXNlcjM5NzE3Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/397177?v=4","gravatar_id":"","url":"https://api.github.com/users/o01eg","html_url":"https://github.com/o01eg","followers_url":"https://api.github.com/users/o01eg/followers","following_url":"https://api.github.com/users/o01eg/following{/other_user}","gists_url":"https://api.github.com/users/o01eg/gists{/gist_id}","starred_url":"https://api.github.com/users/o01eg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/o01eg/subscriptions","organizations_url":"https://api.github.com/users/o01eg/orgs","repos_url":"https://api.github.com/users/o01eg/repos","events_url":"https://api.github.com/users/o01eg/events{/privacy}","received_events_url":"https://api.github.com/users/o01eg/received_events","type":"User","site_admin":false},"created_at":"2018-10-04T06:54:49Z","updated_at":"2018-10-04T06:54:49Z","author_association":"CONTRIBUTOR","body":"Would be good if it could be removed because I've tried to add panics to `or_else` branches and it looks like gets its value from `option_env!(\"SYSROOT\")` but in compilation logs I gets different sysroot:\r\n\r\n```\r\nrustc command: \"LD_LIBRARY_PATH\"=\"/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2/lib:/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps:/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2/lib:/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-tools/release/build/backtrace-sys-53a8f6542068b62c/out\" \"/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2/bin/rustc\" \"--edition=2018\" \"--crate-name\" \"clippy_driver\" \"tools/clippy/src/driver.rs\" \"--color\" \"always\" \"--crate-type\" \"bin\" \"--emit=dep-info,link\" \"-C\" \"opt-level=2\" \"-C\" \"metadata=5be02e1874c1f6e1\" \"-C\" \"extra-filename=-5be02e1874c1f6e1\" \"--out-dir\" \"/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps\" \"--target\" \"x86_64-unknown-linux-gnu\" \"-L\" \"dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps\" \"-L\" \"dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps\" \"--extern\" \"clippy=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps/libclippy-e843d026bc5653f9.so\" \"--extern\" \"clippy_lints=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_lints-a50a4bef572b65e1.rlib\" \"--extern\" \"regex=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-f67f10ff25c1a30c.rlib\" \"--extern\" \"rustc_tools_util=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/librustc_tools_util-a4c7a68e27e3eb06.rlib\" \"--extern\" \"semver=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsemver-6dcaed672aa8a0bb.rlib\" \"-L\" \"native=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/build/backtrace-sys-3f0854e9df9d1851/out\" \"--cfg\" \"stage2\" \"--sysroot\" \"/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2\" \"-Clinker=x86_64-pc-linux-gnu-gcc\" \"-C\" \"debug-assertions=y\"\r\nsysroot: \"/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2\"\r\nlibdir: \"/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2/lib\"\r\n```"}}
{"actor":{"display_login":"o01eg"}}