Libsyntax has been updated

This commit is contained in:
GuillaumeGomez
2015-02-03 23:31:06 +01:00
parent 12f1f4c546
commit 8b12d3ddf9
26 changed files with 93 additions and 121 deletions

View File

@@ -28,7 +28,6 @@ use fold::Folder;
use std::collections::HashMap;
use std::rc::Rc;
use std::ops::Deref;
pub trait ItemDecorator {
fn expand(&self,
@@ -791,7 +790,7 @@ pub fn get_single_str_from_tts(cx: &mut ExtCtxt,
cx.span_err(sp, &format!("{} takes 1 argument", name)[]);
}
expr_to_string(cx, ret, "argument must be a string literal").map(|(s, _)| {
s.deref().to_string()
s.to_string()
})
}