Skip to content

Commit e7ce323

Browse files
committed
Change map::get to map::find in ppaux
1 parent f331cd9 commit e7ce323

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rustc/util/ppaux.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ fn bound_region_to_str(cx: ctxt, br: bound_region) -> str {
2828
}
2929

3030
fn re_scope_id_to_str(cx: ctxt, node_id: ast::node_id) -> str {
31-
alt cx.items.get(node_id) {
32-
ast_map::node_block(blk) {
31+
alt cx.items.find(node_id) {
32+
some(ast_map::node_block(blk)) {
3333
#fmt("<block at %s>",
3434
codemap::span_to_str(blk.span, cx.sess.codemap))
3535
}
36-
ast_map::node_expr(expr) {
36+
some(ast_map::node_expr(expr)) {
3737
alt expr.node {
3838
ast::expr_call(*) {
3939
#fmt("<call at %s>",

0 commit comments

Comments
 (0)