]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/check/wf.rs
Remove random Idents outside of libsyntax
[rust.git] / src / librustc_typeck / check / wf.rs
index 2c931e7830d59ba04b9f1eb28899acda39865738..70983b89ed5c820af31228e032d26fc829e4ec27 100644 (file)
@@ -55,7 +55,7 @@ fn tcx(&self) -> &ty::ctxt<'tcx> {
     /// the types first.
     fn check_item_well_formed(&mut self, item: &hir::Item) {
         let ccx = self.ccx;
-        debug!("check_item_well_formed(it.id={}, it.ident={})",
+        debug!("check_item_well_formed(it.id={}, it.name={})",
                item.id,
                ccx.tcx.item_path_str(DefId::local(item.id)));
 
@@ -324,7 +324,7 @@ fn param_ty(&self,
                 -> ty::ParamTy
     {
         let name = match space {
-            TypeSpace => ast_generics.ty_params[index].ident.name,
+            TypeSpace => ast_generics.ty_params[index].name,
             SelfSpace => special_idents::type_self.name,
             FnSpace => self.tcx().sess.bug("Fn space occupied?"),
         };