Replace the get method by the deref one on InternedString
This commit is contained in:
parent
966e6c0c37
commit
d58c0a7597
24 changed files with 123 additions and 104 deletions
|
@ -22,6 +22,7 @@ use util::small_vector::SmallVector;
|
|||
|
||||
use std::old_io::File;
|
||||
use std::rc::Rc;
|
||||
use std::ops::Deref;
|
||||
|
||||
// These macros all relate to the file system; they either return
|
||||
// the column/row/filename of the expression, or they include
|
||||
|
@ -73,7 +74,7 @@ pub fn expand_mod(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree])
|
|||
base::check_zero_tts(cx, sp, tts, "module_path!");
|
||||
let string = cx.mod_path()
|
||||
.iter()
|
||||
.map(|x| token::get_ident(*x).get().to_string())
|
||||
.map(|x| token::get_ident(*x).deref().to_string())
|
||||
.collect::<Vec<String>>()
|
||||
.connect("::");
|
||||
base::MacExpr::new(cx.expr_str(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue