提交 e7ce3231 编写于 作者: T Tim Chevalier

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

上级 f331cd93
......@@ -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>",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册