Skip to content

Commit 7c7f763

Browse files
committed
---
yaml --- r: 166906 b: refs/heads/master c: 35dd33c h: refs/heads/master v: v3
1 parent 407e5ef commit 7c7f763

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
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: 9a58808785499d730aaa0b1c914b34c204d2a487
2+
refs/heads/master: 35dd33c7e24798e8acc030fc5bbf2ca372616bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 023dfb0c898d851dee6ace2f8339b73b5287136b
55
refs/heads/try: f5d619caf9f32458680fae55526b99582ca682dd

trunk/src/librustc_resolve/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2866,6 +2866,10 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
28662866
// Continue.
28672867
}
28682868
Some(ref value_target) => {
2869+
self.check_for_conflicting_import(&dest_import_resolution.value_target,
2870+
import_directive.span,
2871+
*ident,
2872+
ValueNS);
28692873
dest_import_resolution.value_target = Some(value_target.clone());
28702874
}
28712875
}
@@ -2874,6 +2878,10 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
28742878
// Continue.
28752879
}
28762880
Some(ref type_target) => {
2881+
self.check_for_conflicting_import(&dest_import_resolution.type_target,
2882+
import_directive.span,
2883+
*ident,
2884+
TypeNS);
28772885
dest_import_resolution.type_target = Some(type_target.clone());
28782886
}
28792887
}

0 commit comments

Comments
 (0)