Skip to content

Commit ebd0364

Browse files
committed
---
yaml --- r: 169308 b: refs/heads/master c: 7ee5863 h: refs/heads/master v: v3
1 parent e89d84f commit ebd0364

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 9989288438e979ea256fa746e2fe3f7cdc00b001
2+
refs/heads/master: 7ee58632023c4941408264eeef34a68277773408
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 5b3cd3900ceda838f5798c30ab96ceb41f962534
55
refs/heads/try: 5204084bd2e46af7cc6e0147430e44dd0d657bbb

trunk/src/librustc_typeck/collect.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ impl<'a, 'tcx> AstConv<'tcx> for CollectCtxt<'a, 'tcx> {
160160
}
161161

162162
match self.tcx.map.find(id.node) {
163-
Some(ast_map::NodeItem(item)) => ty_of_item(self, &*item),
163+
Some(ast_map::NodeItem(item)) => {
164+
ty_of_item(self, &*item)
165+
}
164166
Some(ast_map::NodeForeignItem(foreign_item)) => {
165167
let abi = self.tcx.map.get_foreign_abi(id.node);
166168
ty_of_foreign_item(self, &*foreign_item, abi)
@@ -819,8 +821,8 @@ fn get_trait_def<'a, 'tcx>(ccx: &CollectCtxt<'a, 'tcx>,
819821
}
820822

821823
fn trait_def_of_item<'a, 'tcx>(ccx: &CollectCtxt<'a, 'tcx>,
822-
it: &ast::Item)
823-
-> Rc<ty::TraitDef<'tcx>>
824+
it: &ast::Item)
825+
-> Rc<ty::TraitDef<'tcx>>
824826
{
825827
let def_id = local_def(it.id);
826828
let tcx = ccx.tcx;

0 commit comments

Comments
 (0)