Skip to content

Commit a4f2937

Browse files
committed
---
yaml --- r: 112427 b: refs/heads/try c: 2e35867 h: refs/heads/master i: 112425: 0fc1bd8 112423: c894f41 v: v3
1 parent dd836fc commit a4f2937

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: a72a6ec897e1b8d7e125be9bb4b60d89c79aa4c0
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: b5dd3f05fe95168b5569d0f519636149479eb6ac
5-
refs/heads/try: 6e53cfa61e2d63f4dfa628d1b6592b6a729b3172
5+
refs/heads/try: 2e358672f8aba3d844df4c744199ace4a309f707
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/librustc/middle/borrowck/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ use std::cell::{Cell, RefCell};
2525
use std::ops::{BitOr, BitAnd};
2626
use std::rc::Rc;
2727
use std::strbuf::StrBuf;
28-
use collections::HashMap;
2928
use syntax::ast;
3029
use syntax::ast_map;
3130
use syntax::ast_util;

branches/try/src/librustc/middle/trans/debuginfo.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ pub fn create_function_debug_context(cx: &CrateContext,
640640
}
641641
}
642642
}
643-
ast_map::NodeMethod(method) => {
643+
ast_map::NodeMethod(ref method) => {
644644
(method.ident,
645645
method.decl,
646646
&method.generics,
@@ -667,9 +667,9 @@ pub fn create_function_debug_context(cx: &CrateContext,
667667
"create_function_debug_context: expected an expr_fn_block here")
668668
}
669669
}
670-
ast_map::NodeTraitMethod(trait_method) => {
671-
match *trait_method {
672-
ast::Provided(method) => {
670+
ast_map::NodeTraitMethod(ref trait_method) => {
671+
match **trait_method {
672+
ast::Provided(ref method) => {
673673
(method.ident,
674674
method.decl,
675675
&method.generics,

branches/try/src/librustc/middle/typeck/infer/error_reporting.rs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -674,14 +674,16 @@ impl<'a> ErrorReporting for InferCtxt<'a> {
674674
let parent = self.tcx.map.get_parent(scope_id);
675675
let parent_node = self.tcx.map.find(parent);
676676
let node_inner = match parent_node {
677-
Some(node) => match node {
678-
ast_map::NodeItem(item) => match item.node {
679-
ast::ItemFn(ref fn_decl, ref pur, _, ref gen, _) => {
680-
Some((fn_decl, gen, *pur, item.ident, None, item.span))
681-
},
682-
_ => None
683-
},
684-
ast_map::NodeMethod(m) => {
677+
Some(ref node) => match *node {
678+
ast_map::NodeItem(ref item) => {
679+
match item.node {
680+
ast::ItemFn(ref fn_decl, ref pur, _, ref gen, _) => {
681+
Some((fn_decl, gen, *pur, item.ident, None, item.span))
682+
},
683+
_ => None
684+
}
685+
}
686+
ast_map::NodeMethod(ref m) => {
685687
Some((&m.decl, &m.generics, m.fn_style,
686688
m.ident, Some(m.explicit_self.node), m.span))
687689
},

0 commit comments

Comments
 (0)