{"action":"opened","issue":{"url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/686","repository_url":"https://api.github.com/repos/Manishearth/rust-clippy","labels_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/686/labels{/name}","comments_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/686/comments","events_url":"https://api.github.com/repos/Manishearth/rust-clippy/issues/686/events","html_url":"https://github.com/Manishearth/rust-clippy/issues/686","id":134597220,"number":686,"title":"ICE in `enum_glob_use`","user":{"login":"mcarton","id":3751788,"avatar_url":"https://avatars.githubusercontent.com/u/3751788?v=3","gravatar_id":"","url":"https://api.github.com/users/mcarton","html_url":"https://github.com/mcarton","followers_url":"https://api.github.com/users/mcarton/followers","following_url":"https://api.github.com/users/mcarton/following{/other_user}","gists_url":"https://api.github.com/users/mcarton/gists{/gist_id}","starred_url":"https://api.github.com/users/mcarton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcarton/subscriptions","organizations_url":"https://api.github.com/users/mcarton/orgs","repos_url":"https://api.github.com/users/mcarton/repos","events_url":"https://api.github.com/users/mcarton/events{/privacy}","received_events_url":"https://api.github.com/users/mcarton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-18T14:38:25Z","updated_at":"2016-02-18T14:38:25Z","closed_at":null,"body":"```rust\r\n#![feature(plugin)]\r\n#![plugin(clippy)]\r\n\r\nmod tests {\r\n    use super::*;\r\n}\r\n```\r\n\r\nproduces\r\n\r\n```\r\nerror: internal compiler error: unexpected panic\r\nnote: the compiler unexpectedly panicked. this is a bug.\r\nnote: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports\r\nthread 'rustc' panicked at 'couldn't find node id 0 in the AST map', ../src/librustc/front/map/mod.rs:383\r\nstack backtrace:\r\n   1:     0x7f427c003760 - sys::backtrace::tracing::imp::write::hef3f5235812bde76Qwu\r\n   2:     0x7f427c00c6bb - panicking::default_handler::_$u7b$$u7b$closure$u7d$$u7d$::closure.43471\r\n   3:     0x7f427c00c213 - panicking::default_handler::hb72e26fd774dcea5E3y\r\n   4:     0x7f427bfd509c - sys_common::unwind::begin_unwind_inner::hcccaf464c9787883Flt\r\n   5:     0x7f427bfd5b38 - sys_common::unwind::begin_unwind_fmt::h522f8632783201c5Lkt\r\n   6:     0x7f427929f6b8 - front::map::Map<'ast>::get_if_local::h2ef219601d51bc0eOCe\r\n   7:     0x7f426f952390 - enum_glob_use::EnumGlobUse::lint_item::h281ed1ce473f6fb73Sd\r\n                        at /home/martin/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.42/src/enum_glob_use.rs:47\r\n   8:     0x7f426f896467 - enum_glob_use::EnumGlobUse.LateLintPass::check_mod::h524de66907771adcqSd\r\n                        at /home/martin/.multirust/toolchains/nightly/cargo/registry/src/github.com-88ac128001ac3a9a/clippy-0.0.42/src/enum_glob_use.rs:34\r\n   9:     0x7f42794cf6aa - lint::context::LateContext<'a, 'tcx>.hir_visit..Visitor<'v>::visit_mod::h5eb8589b7340079fAav\r\n  10:     0x7f42794cb1f7 - lint::context::LateContext<'a, 'tcx>.hir_visit..Visitor<'v>::visit_item::h5dba0597da03fddf9Yu\r\n  11:     0x7f42794cf74b - lint::context::LateContext<'a, 'tcx>.hir_visit..Visitor<'v>::visit_mod::h5eb8589b7340079fAav\r\n  12:     0x7f42794f0688 - lint::context::check_crate::h38b43621c57cfa18eWv\r\n  13:     0x7f427c525d15 - driver::phase_3_run_analysis_passes::_$u7b$$u7b$closure$u7d$$u7d$::closure.28316\r\n  14:     0x7f427c51f574 - middle::ty::context::ctxt<'tcx>::create_and_enter::h12643393989740813000\r\n  15:     0x7f427c51b6d1 - driver::phase_3_run_analysis_passes::h16655559552673494589\r\n  16:     0x7f427c4ec59a - driver::compile_input::hdb23a384796401a8Bca\r\n  17:     0x7f427c4dbac2 - run_compiler::hed51cbd6d1d8009fHOc\r\n  18:     0x7f427c4d8f91 - sys_common::unwind::try::try_fn::h9037273685980418776\r\n  19:     0x7f427c00108b - __rust_try\r\n  20:     0x7f427bff96bd - sys_common::unwind::inner_try::h97bd458fb1ab729eHit\r\n  21:     0x7f427c4d97e0 - boxed::F.FnBox<A>::call_box::h8520664474928706484\r\n  22:     0x7f427c00ac80 - sys::thread::Thread::new::thread_start::hbf912636ac462411Y0x\r\n  23:     0x7f42747d44a3 - start_thread\r\n  24:     0x7f427bc8913c - clone\r\n  25:                0x0 - <unknown>\r\n```\r\n\r\nSpotted in the *range_map* crate.\r\ncc @oli-obk."}}