Removed deprecated functions map and flat_map for vectors and slices.

This commit is contained in:
Marvin Löbel 2014-03-28 20:42:34 +01:00
parent 86890b9e7c
commit c356e3ba6a
58 changed files with 278 additions and 325 deletions

View file

@ -71,7 +71,9 @@ pub fn expand_mod(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree])
-> base::MacResult {
base::check_zero_tts(cx, sp, tts, "module_path!");
let string = cx.mod_path()
.iter()
.map(|x| token::get_ident(*x).get().to_str())
.collect::<Vec<~str>>()
.connect("::");
base::MRExpr(cx.expr_str(sp, token::intern_and_get_ident(string)))
}