Change map::get to map::find in ppaux
This commit is contained in:
parent
f331cd9324
commit
e7ce32310b
|
@ -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>",
|
||||
|
|
Loading…
Reference in New Issue