Skip to content

Commit 5c86ec6

Browse files
committed
---
yaml --- r: 174830 b: refs/heads/snap-stage3 c: 9370ae1 h: refs/heads/master v: v3
1 parent f76c3a7 commit 5c86ec6

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: a0f86de49748b472d4d189d9688b0d856c000914
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: cfb63d544858cd8982c5fa67cb22189de5e1d244
4+
refs/heads/snap-stage3: 9370ae1abf316ed4174abe21cf4ea93f8dec55aa
55
refs/heads/try: 08f6380a9f0b866796080094f44fe25ea5636547
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/librustc_typeck/collect.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@ fn convert(ccx: &CollectCtxt, it: &ast::Item) {
555555
debug!("convert: item {} with id {}", token::get_ident(it.ident), it.id);
556556
match it.node {
557557
// These don't define types.
558+
ast::ItemExternCrate(_) | ast::ItemUse(_) |
558559
ast::ItemForeignMod(_) | ast::ItemMod(_) | ast::ItemMac(_) => {}
559560
ast::ItemEnum(ref enum_definition, ref generics) => {
560561
let scheme = ty_of_item(ccx, it);
@@ -1004,6 +1005,7 @@ fn ty_of_item<'a, 'tcx>(ccx: &CollectCtxt<'a, 'tcx>, it: &ast::Item)
10041005
tcx.tcache.borrow_mut().insert(local_def(it.id), scheme.clone());
10051006
return scheme;
10061007
}
1008+
ast::ItemExternCrate(_) | ast::ItemUse(_) |
10071009
ast::ItemImpl(..) | ast::ItemMod(_) |
10081010
ast::ItemForeignMod(_) | ast::ItemMac(_) => panic!(),
10091011
}

branches/snap-stage3/src/librustc_typeck/variance.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,8 @@ impl<'a, 'tcx, 'v> Visitor<'v> for TermsContext<'a, 'tcx> {
380380
visit::walk_item(self, item);
381381
}
382382

383+
ast::ItemExternCrate(_) |
384+
ast::ItemUse(_) |
383385
ast::ItemImpl(..) |
384386
ast::ItemStatic(..) |
385387
ast::ItemConst(..) |
@@ -532,6 +534,8 @@ impl<'a, 'tcx, 'v> Visitor<'v> for ConstraintContext<'a, 'tcx> {
532534
}
533535
}
534536

537+
ast::ItemExternCrate(_) |
538+
ast::ItemUse(_) |
535539
ast::ItemStatic(..) |
536540
ast::ItemConst(..) |
537541
ast::ItemFn(..) |

0 commit comments

Comments
 (0)