]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_trans/trans/common.rs
Auto merge of #23011 - nagisa:the-war-of-symbol-and-symbol, r=pnkfelix
[rust.git] / src / librustc_trans / trans / common.rs
index 153242353d49f5e5c9ac2cfefb482df90fc77861..168a294159d4fe7a8d85d34eb9842267f9fa382c 100644 (file)
@@ -49,7 +49,6 @@
 use std::cell::{Cell, RefCell};
 use std::result::Result as StdResult;
 use std::vec::Vec;
-use syntax::ast::Ident;
 use syntax::ast;
 use syntax::ast_map::{PathElem, PathName};
 use syntax::codemap::{DUMMY_SP, Span};
@@ -623,8 +622,8 @@ pub fn tcx(&self) -> &'blk ty::ctxt<'tcx> {
     }
     pub fn sess(&self) -> &'blk Session { self.fcx.ccx.sess() }
 
-    pub fn ident(&self, ident: Ident) -> String {
-        token::get_ident(ident).to_string()
+    pub fn name(&self, name: ast::Name) -> String {
+        token::get_name(name).to_string()
     }
 
     pub fn node_id_to_string(&self, id: ast::NodeId) -> String {