File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
branches/try/src/rustc/middle Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
- refs/heads/try: ee2f0dd63838a7d42007ee848a4a532dd97fdb54
5
+ refs/heads/try: bf0d4cc035333dba65f650227ead9a669570e128
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
Original file line number Diff line number Diff line change @@ -1476,6 +1476,8 @@ class Resolver {
1476
1476
if has_constructor {
1477
1477
child_name_bindings. define_value( def, dummy_sp( ) ) ;
1478
1478
}
1479
+
1480
+ self . structs. insert( def_id, has_constructor) ;
1479
1481
}
1480
1482
def_self( * ) | def_arg( * ) | def_local( * ) |
1481
1483
def_prim_ty( * ) | def_ty_param( * ) | def_binding( * ) |
@@ -4409,7 +4411,7 @@ class Resolver {
4409
4411
// let bar = Bar { ... } // no type parameters
4410
4412
4411
4413
match self . resolve_path( path, TypeNS , false, visitor) {
4412
- some( def_ty( class_id) )
4414
+ some( def_ty( class_id) ) | some ( def_class ( class_id , _ ) )
4413
4415
if self . structs. contains_key( class_id) => {
4414
4416
let has_constructor = self . structs. get( class_id) ;
4415
4417
let class_def = def_class( class_id, has_constructor) ;
You can’t perform that action at this time.
0 commit comments