@@ -1252,7 +1252,7 @@ impl<'a> Resolver<'a> {
12521252                                   sp) ; 
12531253
12541254                name_bindings. define_type 
1255-                     ( DefTy ( local_def ( item. id ) ) ,  sp,  is_public) ; 
1255+                     ( DefTy ( local_def ( item. id ) ,   false ) ,  sp,  is_public) ; 
12561256                parent
12571257            } 
12581258
@@ -1264,7 +1264,7 @@ impl<'a> Resolver<'a> {
12641264                                   sp) ; 
12651265
12661266                name_bindings. define_type 
1267-                     ( DefTy ( local_def ( item. id ) ) ,  sp,  is_public) ; 
1267+                     ( DefTy ( local_def ( item. id ) ,   true ) ,  sp,  is_public) ; 
12681268
12691269                for  variant in  ( * enum_definition) . variants . iter ( )  { 
12701270                    self . build_reduced_graph_for_variant ( 
@@ -1287,7 +1287,7 @@ impl<'a> Resolver<'a> {
12871287                let  name_bindings = self . add_child ( ident,  parent. clone ( ) ,  forbid,  sp) ; 
12881288
12891289                // Define a name in the type namespace. 
1290-                 name_bindings. define_type ( DefTy ( local_def ( item. id ) ) ,  sp,  is_public) ; 
1290+                 name_bindings. define_type ( DefTy ( local_def ( item. id ) ,   false ) ,  sp,  is_public) ; 
12911291
12921292                // If this is a newtype or unit-like struct, define a name 
12931293                // in the value namespace as well 
@@ -1732,7 +1732,7 @@ impl<'a> Resolver<'a> {
17321732
17331733        match  def { 
17341734          DefMod ( def_id)  | DefForeignMod ( def_id)  | DefStruct ( def_id)  |
1735-           DefTy ( def_id)  => { 
1735+           DefTy ( def_id,  _ )  => { 
17361736            let  type_def = child_name_bindings. type_def . borrow ( ) . clone ( ) ; 
17371737            match  type_def { 
17381738              Some ( TypeNsDef  {  module_def :  Some ( module_def) ,  .. } )  => { 
@@ -1823,7 +1823,7 @@ impl<'a> Resolver<'a> {
18231823                                                  is_public, 
18241824                                                  DUMMY_SP ) 
18251825          } 
1826-           DefTy ( _ )  => { 
1826+           DefTy ( .. )  => { 
18271827              debug ! ( "(building reduced graph for external \  
18281828,  final_ident) ; 
18291829
@@ -4320,7 +4320,7 @@ impl<'a> Resolver<'a> {
43204320
43214321                        // If it's a typedef, give a note 
43224322                        match  def { 
4323-                             DefTy ( _ )  => { 
4323+                             DefTy ( .. )  => { 
43244324                                self . session . span_note ( 
43254325                                                trait_reference. path . span , 
43264326                                                format ! ( "`type` aliases cannot \  
@@ -4381,7 +4381,7 @@ impl<'a> Resolver<'a> {
43814381                Some ( ref  t)  => match  t. node  { 
43824382                    TyPath ( ref  path,  None ,  path_id)  => { 
43834383                        match  this. resolve_path ( id,  path,  TypeNS ,  true )  { 
4384-                             Some ( ( DefTy ( def_id) ,  lp) )  if  this. structs . contains_key ( & def_id)  => { 
4384+                             Some ( ( DefTy ( def_id,  _ ) ,  lp) )  if  this. structs . contains_key ( & def_id)  => { 
43854385                                let  def = DefStruct ( def_id) ; 
43864386                                debug ! ( "(resolving struct) resolved `{}` to type {:?}" , 
43874387                                       token:: get_ident( path. segments
@@ -5440,7 +5440,7 @@ impl<'a> Resolver<'a> {
54405440        if  allowed == Everything  { 
54415441            // Look for a field with the same name in the current self_type. 
54425442            match  self . def_map . borrow ( ) . find ( & node_id)  { 
5443-                  Some ( & DefTy ( did) ) 
5443+                  Some ( & DefTy ( did,  _ ) ) 
54445444                | Some ( & DefStruct ( did) ) 
54455445                | Some ( & DefVariant ( _,  did,  _) )  => match  self . structs . find ( & did)  { 
54465446                    None  => { } 
@@ -5582,7 +5582,7 @@ impl<'a> Resolver<'a> {
55825582                        // structs, which wouldn't result in this error.) 
55835583                        match  self . with_no_errors ( |this|
55845584                            this. resolve_path ( expr. id ,  path,  TypeNS ,  false ) )  { 
5585-                             Some ( ( DefTy ( struct_id) ,  _) ) 
5585+                             Some ( ( DefTy ( struct_id,  _ ) ,  _) ) 
55865586                              if  self . structs . contains_key ( & struct_id)  => { 
55875587                                self . resolve_error ( expr. span , 
55885588                                        format ! ( "`{}` is a structure name, but \  
0 commit comments