{"action":"opened","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/26541","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/26541/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/26541/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/26541/events","html_url":"https://github.com/rust-lang/rust/issues/26541","id":90637892,"number":26541,"title":"Call parameter type does not match function signature (with LTO enabled)","user":{"login":"BurntSushi","id":456674,"avatar_url":"https://avatars.githubusercontent.com/u/456674?v=3","gravatar_id":"","url":"https://api.github.com/users/BurntSushi","html_url":"https://github.com/BurntSushi","followers_url":"https://api.github.com/users/BurntSushi/followers","following_url":"https://api.github.com/users/BurntSushi/following{/other_user}","gists_url":"https://api.github.com/users/BurntSushi/gists{/gist_id}","starred_url":"https://api.github.com/users/BurntSushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BurntSushi/subscriptions","organizations_url":"https://api.github.com/users/BurntSushi/orgs","repos_url":"https://api.github.com/users/BurntSushi/repos","events_url":"https://api.github.com/users/BurntSushi/events{/privacy}","received_events_url":"https://api.github.com/users/BurntSushi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-24T10:40:09Z","updated_at":"2015-06-24T10:40:09Z","closed_at":null,"body":"This seems to be an LTO related bug that the benchmarks game maintainer has come across from this page: https://alioth.debian.org/tracker/index.php?func=detail&aid=315089&group_id=100815&atid=413122 (ctrl-f for \"Call parameter type\"). Specifically, these are the steps:\r\n\r\n```\r\n$ cargo new regex-deps\r\n$ printf '[dependencies]\\nregex = \"=0.1.38\"\\n' >> regex-deps/Cargo.toml\r\n$ cargo build --release --manifest-path regex-deps/Cargo.toml\r\nUpdating registry `https://github.com/rust-lang/crates.io-index`\r\nCompiling regex-syntax v0.1.2\r\nCompiling libc v0.1.8\r\nCompiling memchr v0.1.3\r\nCompiling aho-corasick v0.2.1\r\nCompiling regex v0.1.38\r\nCompiling regex-deps v0.1.0 (file:///testzone/regex-deps)\r\n$ rustc -C opt-level=3 -C lto -L ./regex-deps/target/release/deps/ regex-dna.rs -o regex-dna\r\nCall parameter type does not match function signature!\r\nIllegal instruction (core dumped)\r\n```\r\n\r\nrustc version: `rustc 1.0.0 (a59de37e9 2015-05-13) (built 2015-05-14)`\r\n\r\nIf `-C lto` is removed from the final `rustc` command, then compilation succeeds.\r\n\r\nI am **not** able to reproduce this myself, and I suspect there probably isn't enough info here for this to be a helpful bug report. But I'm reporting it anyway in case anyone knows something."}}