Change map::get to map::find in ppaux

This commit is contained in:
Tim Chevalier 2012-06-18 13:33:07 -07:00
parent f331cd9324
commit e7ce32310b
1 changed files with 3 additions and 3 deletions

View File

@ -28,12 +28,12 @@ fn bound_region_to_str(cx: ctxt, br: bound_region) -> str {
}
fn re_scope_id_to_str(cx: ctxt, node_id: ast::node_id) -> str {
alt cx.items.get(node_id) {
ast_map::node_block(blk) {
alt cx.items.find(node_id) {
some(ast_map::node_block(blk)) {
#fmt("<block at %s>",
codemap::span_to_str(blk.span, cx.sess.codemap))
}
ast_map::node_expr(expr) {
some(ast_map::node_expr(expr)) {
alt expr.node {
ast::expr_call(*) {
#fmt("<call at %s>",