]> git.lizzy.rs Git - rust.git/commit
auto merge of #16326 : pnkfelix/rust/fsk-add-path-suffix-lookup, r=huonw
authorbors <bors@rust-lang.org>
Sat, 9 Aug 2014 09:51:23 +0000 (09:51 +0000)
committerbors <bors@rust-lang.org>
Sat, 9 Aug 2014 09:51:23 +0000 (09:51 +0000)
commit87134c7d72d0a39f696051a22c05aa2b328a6d00
tree64c50551faef0e4df76fd4b0c0e5ceba788851e3
parenta23d6795a50cf0b51d61d2b9d6d79127876796c1
parentdb0e71f10a157c211863ac844ceb0572967df298
auto merge of #16326 : pnkfelix/rust/fsk-add-path-suffix-lookup, r=huonw

Extended `ast_map::Map` with an iterator over all node id's that match a path suffix.

Extended pretty printer to let users choose particular items to pretty print, either by indicating an integer node-id, or by providing a path suffix.

 * Example 1: the suffix `typeck::check::check_struct` matches the item with the path `rustc::middle::typeck::check::check_struct` when compiling the `rustc` crate.

 * Example 2: the suffix `and` matches `core::option::Option::and` and `core::result::Result::and` when compiling the `core` crate.

Refactored `pprust` slightly to support the pretty printer changes.

(See individual commits for more description.)