diff options
| author | bors <bors@rust-lang.org> | 2015-07-28 21:14:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-07-28 21:14:28 +0000 |
| commit | 55ede7ed8e4f3752c371f7d04da4695ba9aa1c26 (patch) | |
| tree | cde06ced567bd6cc6ad6abb68fa37818158fec33 /src/libsyntax/ext/source_util.rs | |
| parent | ba9224f35451e5d5ef7647bd2b40e5da80ce2735 (diff) | |
| parent | 00a5e66f818ad9d79cc4425f5564c7b07e3213a6 (diff) | |
| download | rust-55ede7ed8e4f3752c371f7d04da4695ba9aa1c26.tar.gz rust-55ede7ed8e4f3752c371f7d04da4695ba9aa1c26.zip | |
Auto merge of #27234 - oli-obk:move_get_name_get_ident_to_impl, r=eddyb
this has quite some fallout. but also made lots of stuff more readable imo [breaking-change] for plugin authors
Diffstat (limited to 'src/libsyntax/ext/source_util.rs')
| -rw-r--r-- | src/libsyntax/ext/source_util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/source_util.rs b/src/libsyntax/ext/source_util.rs index 22517dc5f1b..8da36b2c1e1 100644 --- a/src/libsyntax/ext/source_util.rs +++ b/src/libsyntax/ext/source_util.rs @@ -76,7 +76,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).to_string()) + .map(|x| x.to_string()) .collect::<Vec<String>>() .join("::"); base::MacEager::expr(cx.expr_str( |
