{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust-clippy/issues/3718","repository_url":"https://api.github.com/repos/rust-lang/rust-clippy","labels_url":"https://api.github.com/repos/rust-lang/rust-clippy/issues/3718/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust-clippy/issues/3718/comments","events_url":"https://api.github.com/repos/rust-lang/rust-clippy/issues/3718/events","html_url":"https://github.com/rust-lang/rust-clippy/issues/3718","id":404459442,"node_id":"MDU6SXNzdWU0MDQ0NTk0NDI=","number":3718,"title":"ICE in https://github.com/stainless-steel/sql","user":{"login":"phansch","id":2042399,"node_id":"MDQ6VXNlcjIwNDIzOTk=","avatar_url":"https://avatars3.githubusercontent.com/u/2042399?v=4","gravatar_id":"","url":"https://api.github.com/users/phansch","html_url":"https://github.com/phansch","followers_url":"https://api.github.com/users/phansch/followers","following_url":"https://api.github.com/users/phansch/following{/other_user}","gists_url":"https://api.github.com/users/phansch/gists{/gist_id}","starred_url":"https://api.github.com/users/phansch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phansch/subscriptions","organizations_url":"https://api.github.com/users/phansch/orgs","repos_url":"https://api.github.com/users/phansch/repos","events_url":"https://api.github.com/users/phansch/events{/privacy}","received_events_url":"https://api.github.com/users/phansch/received_events","type":"User","site_admin":false},"labels":[{"id":884791444,"node_id":"MDU6TGFiZWw4ODQ3OTE0NDQ=","url":"https://api.github.com/repos/rust-lang/rust-clippy/labels/L-crash%20:boom:","name":"L-crash :boom:","color":"e559c0","default":false},{"id":889570783,"node_id":"MDU6TGFiZWw4ODk1NzA3ODM=","url":"https://api.github.com/repos/rust-lang/rust-clippy/labels/T-macros","name":"T-macros","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-01-29T19:52:27Z","updated_at":"2019-02-18T22:10:03Z","closed_at":null,"author_association":"COLLABORATOR","body":"<!--\r\nHi there! Whether you've come to make a suggestion for a new lint, an improvement to an existing lint or to report a bug or a false positive in Clippy, you've come to the right place.\r\n\r\nFor bug reports and false positives, please include the output of `cargo clippy -V` in the report.\r\n\r\nThank you for using Clippy!\r\n\r\nWrite your comment below this line: -->\r\n\r\nFound via the first ever Clippy crater run: https://crater-reports.s3.amazonaws.com/clippy-test-run/index.html\r\n\r\nSpecifically at commit https://github.com/stainless-steel/sql/commit/384a9ac6ff5c234acc82a3ee7bc37b79c4f2177f.\r\n\r\n```\r\ngit clone https://github.com/stainless-steel/sql\r\ngit checkout 384a9ac6ff5c234acc82a3ee7bc37b79c4f2177f\r\nRUSTC_BACKTRACE=Full cargo clippy -j 1\r\n```\r\n\r\n```\r\nclippy 0.0.212 (b2601be 2018-11-27)\r\n```\r\n\r\n<details>\r\n  <summary>Full Backtrace</summary>\r\n\r\n```\r\n    Checking sql v0.4.3 (/home/phansch/code/repros/sql)\r\nwarning: you don't need to add `&` to all patterns\r\n  --> src/grammar/definition/column.rs:42:21\r\n   |\r\n42 |           buffer.push(match some!(self.kind) {\r\n   |  _____________________^\r\n43 | |             &Type::Binary => \"BLOB\",\r\n44 | |             &Type::Float => \"REAL\",\r\n45 | |             &Type::Integer => \"INTEGER\",\r\n46 | |             &Type::String => \"TEXT\",\r\n47 | |         });\r\n   | |_________^\r\n   |\r\n   = note: #[warn(clippy::match_ref_pats)] on by default\r\n   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats\r\nthread 'main' panicked at 'byte index 12 is out of bounds of `}`', src/libcore/str/mod.rs:2092:9\r\nstack backtrace:\r\n   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace\r\n             at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49\r\n   1: std::sys_common::backtrace::_print\r\n             at src/libstd/sys_common/backtrace.rs:71\r\n   2: std::panicking::default_hook::{{closure}}\r\n             at src/libstd/sys_common/backtrace.rs:59\r\n             at src/libstd/panicking.rs:211\r\n   3: std::panicking::default_hook\r\n             at src/libstd/panicking.rs:227\r\n   4: rustc::util::common::panic_hook\r\n   5: std::panicking::rust_panic_with_hook\r\n             at src/libstd/panicking.rs:495\r\n   6: std::panicking::continue_panic_fmt\r\n             at src/libstd/panicking.rs:398\r\n   7: rust_begin_unwind\r\n             at src/libstd/panicking.rs:325\r\n   8: core::panicking::panic_fmt\r\n             at src/libcore/panicking.rs:95\r\n   9: core::str::slice_error_fail\r\n             at src/libcore/str/mod.rs:0\r\n  10: core::str::traits::<impl core::slice::SliceIndex<str> for core::ops::range::RangeTo<usize>>::index::{{closure}}\r\n  11: <core::iter::Map<I, F> as core::iter::iterator::Iterator>::fold\r\n  12: <alloc::vec::Vec<T> as alloc::vec::SpecExtend<T, I>>::from_iter\r\n  13: <rustc_errors::emitter::EmitterWriter as rustc_errors::emitter::Emitter>::emit\r\n  14: rustc_errors::Handler::emit_db\r\n  15: rustc_errors::diagnostic_builder::DiagnosticBuilder::emit\r\n  16: clippy_lints::utils::span_lint_and_then\r\n  17: <clippy_lints::matches::MatchPass as rustc::lint::LateLintPass<'a, 'tcx>>::check_expr\r\n  18: <rustc::lint::context::LateContext<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_expr\r\n  19: rustc::hir::intravisit::walk_expr\r\n  20: <rustc::lint::context::LateContext<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_expr\r\n  21: <rustc::lint::context::LateContext<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_block\r\n  22: <rustc::lint::context::LateContext<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_expr\r\n  23: <rustc::lint::context::LateContext<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_body\r\n  24: <rustc::lint::context::LateContext<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_nested_body\r\n  25: <rustc::lint::context::LateContext<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_fn\r\n  26: rustc::hir::intravisit::walk_impl_item\r\n  27: <rustc::lint::context::LateContext<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_impl_item\r\n  28: rustc::hir::intravisit::walk_impl_item_ref\r\n  29: rustc::hir::intravisit::walk_item\r\n  30: <rustc::lint::context::LateContext<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_item\r\n  31: <rustc::lint::context::LateContext<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_mod\r\n  32: rustc::hir::intravisit::walk_item\r\n  33: <rustc::lint::context::LateContext<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_item\r\n  34: <rustc::lint::context::LateContext<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_mod\r\n  35: rustc::hir::intravisit::walk_item\r\n  36: <rustc::lint::context::LateContext<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_item\r\n  37: <rustc::lint::context::LateContext<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_mod\r\n  38: rustc::hir::intravisit::walk_item\r\n  39: <rustc::lint::context::LateContext<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_item\r\n  40: <rustc::lint::context::LateContext<'a, 'tcx> as rustc::hir::intravisit::Visitor<'tcx>>::visit_mod\r\n  41: rustc::hir::intravisit::walk_crate\r\n  42: rustc::lint::context::check_crate\r\n  43: rustc::util::common::time\r\n  44: rustc::ty::context::tls::enter_context\r\n  45: <std::thread::local::LocalKey<T>>::with\r\n  46: rustc::ty::context::TyCtxt::create_and_enter\r\n  47: rustc_driver::driver::compile_input\r\n  48: rustc_driver::run_compiler_with_pool\r\n  49: <scoped_tls::ScopedKey<T>>::set\r\n  50: rustc_driver::run_compiler\r\n  51: <scoped_tls::ScopedKey<T>>::set\r\n  52: syntax::with_globals\r\n  53: __rust_maybe_catch_panic\r\n             at src/libpanic_unwind/lib.rs:102\r\n  54: rustc_driver::run\r\n  55: clippy_driver::main\r\n  56: std::rt::lang_start::{{closure}}\r\n  57: std::panicking::try::do_call\r\n             at src/libstd/rt.rs:59\r\n             at src/libstd/panicking.rs:310\r\n  58: __rust_maybe_catch_panic\r\n             at src/libpanic_unwind/lib.rs:102\r\n  59: std::rt::lang_start_internal\r\n             at src/libstd/panicking.rs:289\r\n             at src/libstd/panic.rs:398\r\n             at src/libstd/rt.rs:58\r\n  60: main\r\n  61: __libc_start_main\r\n  62: <unknown>\r\nquery stack during panic:\r\nend of query stack\r\n\r\nerror: internal compiler error: unexpected panic\r\n\r\nnote: the compiler unexpectedly panicked. this is a bug.\r\n\r\nnote: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports\r\n\r\nnote: rustc 1.32.0 (9fda7c223 2019-01-16) running on x86_64-unknown-linux-gnu\r\n\r\nnote: compiler flags: -C debuginfo=2 -C incremental --crate-type lib\r\n\r\nnote: some of the compiler flags provided by cargo are hidden\r\n\r\nerror: Could not compile `sql`.\r\n\r\nTo learn more, run the command again with --verbose.\r\n```\r\n\r\n</details>"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust-clippy/issues/comments/464899321","html_url":"https://github.com/rust-lang/rust-clippy/issues/3718#issuecomment-464899321","issue_url":"https://api.github.com/repos/rust-lang/rust-clippy/issues/3718","id":464899321,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2NDg5OTMyMQ==","user":{"login":"jfirebaugh","id":98601,"node_id":"MDQ6VXNlcjk4NjAx","avatar_url":"https://avatars2.githubusercontent.com/u/98601?v=4","gravatar_id":"","url":"https://api.github.com/users/jfirebaugh","html_url":"https://github.com/jfirebaugh","followers_url":"https://api.github.com/users/jfirebaugh/followers","following_url":"https://api.github.com/users/jfirebaugh/following{/other_user}","gists_url":"https://api.github.com/users/jfirebaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/jfirebaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfirebaugh/subscriptions","organizations_url":"https://api.github.com/users/jfirebaugh/orgs","repos_url":"https://api.github.com/users/jfirebaugh/repos","events_url":"https://api.github.com/users/jfirebaugh/events{/privacy}","received_events_url":"https://api.github.com/users/jfirebaugh/received_events","type":"User","site_admin":false},"created_at":"2019-02-18T22:10:03Z","updated_at":"2019-02-18T22:10:03Z","author_association":"NONE","body":"@flip1995 Is this the same ICE as #3719 / #3772?"}}
{"actor":{"display_login":"jfirebaugh"}}