mozilla/rust — pull request #13950 by bgamari (2014-05-05 15:26:32+00:00)
Title: middle/check_const: CheckItemRecursion should only recurse into NodeItems

This fixes a bug in `libsyntax` which would crash on ASTs containing references to foreign externs. Previously the included test would fail with,

rustc' failed at 'expected item, found foreign item test_extern::test_extern (id=13)', /opt/exp/rust/src/libsyntax/ast_map.rs:264